|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.upb.swtpra05.group03.shuttle.PeriodicalWakeUpControl
| Field Summary | |
private ShuttleControlInterface |
agent
The shuttle control |
protected static java.lang.Integer |
INITIAL_WAKE_UP_TIME
Identifies initial wake up times |
private static java.util.logging.Logger |
log
Logger for debugging |
private java.util.Map |
wakeUpTimes
The wake up times of added frequencies |
| Constructor Summary | |
PeriodicalWakeUpControl()
Constructor |
|
| Method Summary | |
void |
addFrequency(java.lang.Integer frequency)
Adds the given wake up frequency. |
void |
init(ModuleContainerInterface container)
Initializes this module. |
boolean |
isPeriodicalWakeUp(java.lang.Integer wakeUpTime,
java.lang.Integer frequency)
Returns if given wake up time is a periodical wake up time of given frequency. |
void |
newMessageReceived(de.upb.swtpra.kernel.message.Message msg)
React on the received message of the shuttle or not. |
protected void |
wakeUpCall(de.upb.swtpra.kernel.message.WakeUpCallMessage msg)
Handles wake up calls. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final java.util.logging.Logger log
protected static final java.lang.Integer INITIAL_WAKE_UP_TIME
private ShuttleControlInterface agent
private java.util.Map wakeUpTimes
| Constructor Detail |
public PeriodicalWakeUpControl()
| Method Detail |
public void init(ModuleContainerInterface container)
Module
init in interface Modulecontainer - The module manager which contain all modulespublic void newMessageReceived(de.upb.swtpra.kernel.message.Message msg)
ShuttleModule
newMessageReceived in interface ShuttleModulemsg - The received message of the shuttleprotected void wakeUpCall(de.upb.swtpra.kernel.message.WakeUpCallMessage msg)
msg - The WakeUpCallMessagepublic void addFrequency(java.lang.Integer frequency)
PeriodicalWakeUpControlInterface
addFrequency in interface PeriodicalWakeUpControlInterfacefrequency -
public boolean isPeriodicalWakeUp(java.lang.Integer wakeUpTime,
java.lang.Integer frequency)
PeriodicalWakeUpControlInterface
isPeriodicalWakeUp in interface PeriodicalWakeUpControlInterfacewakeUpTime - wake up time to testfrequency - frequency to test
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||