de.upb.swtpra05.group03.shuttle
Class ParkingFeeDrawer

java.lang.Object
  extended byde.upb.swtpra05.group03.shuttle.ParkingFeeDrawer
All Implemented Interfaces:
Module, ShuttleModule

public class ParkingFeeDrawer
extends java.lang.Object
implements ShuttleModule

Draws the parking fee from the accounting in the parking fee frequency.

Version:
$Revision: 1.3 $

Field Summary
private  AccountingInterface accounting
          The accounting
private  int amount
          parking fee amount
private  ExecutionInterface execution
          The execution
private  java.lang.Integer frequency
          parking fee frequency
private static java.util.logging.Logger log
          Logger for debugging
private  PeriodicalWakeUpControlInterface periodical
          The periodical wake up control
 
Constructor Summary
ParkingFeeDrawer()
          Constructor
 
Method Summary
private  void gameConstants(de.upb.swtpra.kernel.message.GameConstantsMessage msg)
           
 void init(ModuleContainerInterface container)
          Initializes this module.
 void newMessageReceived(de.upb.swtpra.kernel.message.Message msg)
          React on the received message of the shuttle or not.
private  void wakeUpCall(de.upb.swtpra.kernel.message.WakeUpCallMessage msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final java.util.logging.Logger log
Logger for debugging


amount

private int amount
parking fee amount


frequency

private java.lang.Integer frequency
parking fee frequency


execution

private ExecutionInterface execution
The execution


accounting

private AccountingInterface accounting
The accounting


periodical

private PeriodicalWakeUpControlInterface periodical
The periodical wake up control

Constructor Detail

ParkingFeeDrawer

public ParkingFeeDrawer()
Constructor

Method Detail

init

public void init(ModuleContainerInterface container)
Description copied from interface: Module
Initializes this module. References to other modules should be set here to avoid circle dependencies.

Specified by:
init in interface Module
Parameters:
container - The module manager which contain all modules

newMessageReceived

public void newMessageReceived(de.upb.swtpra.kernel.message.Message msg)
Description copied from interface: ShuttleModule
React on the received message of the shuttle or not.

Specified by:
newMessageReceived in interface ShuttleModule
Parameters:
msg - The received message of the shuttle

gameConstants

private void gameConstants(de.upb.swtpra.kernel.message.GameConstantsMessage msg)
Parameters:
msg - The GameConstantsMessage

wakeUpCall

private void wakeUpCall(de.upb.swtpra.kernel.message.WakeUpCallMessage msg)
Parameters:
msg - The WakeUpCallMessage