|
Real-Time Java AOCS Framework v1.0 API Specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--RtjAocsFramework.BasicObjects.RootObject
|
+--RtjAocsFramework.BasicObjects.AocsObject
|
+--RtjAocsFramework.ModeManagement.ModeManager
|
+--RtjAocsFramework.ModeManagement.FollowerModeManager
This class encapsulates a follower mode manager that uses the "reactive mode update" mechanism: its mode is the same as the mode of a master mode manager. The follower mode manager acts as a listener for the mode events fired by the master mode manager. Whenever it received a mode event that indicates a mode change in the master, it updates its own mode to be the same as that of the master.
The implementers are treated as instances of RootObject. Hence, this class should not be used by itself (except for testing) but should instead be placed in wrapper that performs the (potentially unsafe) type casts between RootObject and the type of the implementers.
Copyright: see the Copyright Notice.
ModeEvent| Field Summary |
| Fields inherited from class RtjAocsFramework.ModeManagement.ModeManager |
currentMode, nModes, nStrategies |
| Fields inherited from interface RtjAocsFramework.TelemetryManagement.Telemeterable |
DEBUG_TM, LONG_TM, NORMAL_TM, NTMFORMATS, SHORT_TM |
| Constructor Summary | |
FollowerModeManager()
Default constructor: the object should not be used before being initialized. |
|
FollowerModeManager(int nStrategies,
ModeManager master,
int numberOfListeners)
Constructor for class FollowerModeManager. |
|
| Method Summary | |
void |
processModeEvent(ModeEvent evt)
This mode is triggered by the reception of a mode event. |
void |
setDefaultMode(int n)
Calling this method causes a configuration error. |
void |
setMasterModeManager(ModeManager master)
Initialization method to set the master mode manager. |
void |
setNumberOfModes(int n)
Calling this method causes a configuration error. |
| Methods inherited from class RtjAocsFramework.BasicObjects.RootObject |
getClassId, getInstanceId, setClassId |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FollowerModeManager(int nStrategies,
ModeManager master,
int numberOfListeners)
nStrategies - number of strategies associated to each mode.master - master mode manager.numberOfListeners - maximum number of listeners to mode events.public FollowerModeManager()
| Method Detail |
public void setDefaultMode(int n)
setDefaultMode in class ModeManagerpublic void setNumberOfModes(int n)
setNumberOfModes in class ModeManagerpublic void setMasterModeManager(ModeManager master)
public void processModeEvent(ModeEvent evt)
processModeEvent in interface ModeListener
|
Real-Time Java AOCS Framework v1.0 API Specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||