|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Module<ParentModulator extends Modulator>
A Module has 5 ActionMethods = [initModule(), start(), runOnce(), stop(), releaseModule()] and 8 formal states. A Module has a ParentModulator which it may use to perform any system interactions, as permitted by the type interface of the PM.
| Nested Class Summary | |
|---|---|
static class |
Module.State
|
| Method Summary | |
|---|---|
void |
failDuringInitOrStartup()
|
ParentModulator |
getParentModulator()
The Module must have a valid parentModulator whenever it is inside a module action callback. |
Module.State |
getState()
|
void |
initModule()
Modulator must be set when initModule is called. |
boolean |
isStopRequested()
|
void |
markStopRequested()
|
void |
releaseModule()
Required pre-state is POST_STOP_OR_FAILED_STARTUP. |
void |
runOnce()
Required pre-state is WAIT_TO_RUN_OR_STOP. |
void |
setParentModulator(ParentModulator pm)
|
void |
start()
Required pre-state is WAIT_TO_START. |
void |
stop()
Required pre-state is WAIT_TO_RUN_OR_STOP. |
| Method Detail |
|---|
Module.State getState()
void setParentModulator(ParentModulator pm)
ParentModulator getParentModulator()
void initModule()
void start()
void runOnce()
void stop()
void releaseModule()
void markStopRequested()
boolean isStopRequested()
void failDuringInitOrStartup()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||