|
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.UnitManagement.UnitManager
This class encapsulates an unit manager. The unit manager is an active component whose responsibility is the management of the unit proxies that acquire or send data to the real hardware. The unit manager performs functional and housekeeping actions upon unit proxies (upon the hardware) defined by a developer. The action is mode dependent, it means that the developer has a freedom to design several strategies how to handle (trigger) units, and system can change them. Additionally, the unit manager maintains a list of commands that are executed on particular smart units.
Copyright: see the Copyright Notice.
| Field Summary |
| Fields inherited from interface RtjAocsFramework.TelemetryManagement.Telemeterable |
DEBUG_TM, LONG_TM, NORMAL_TM, NTMFORMATS, SHORT_TM |
| Constructor Summary | |
UnitManager()
Create a new UnitManager object. |
|
| Method Summary | |
void |
addCommand(UnitCommand uc)
Load an unit command. |
int |
getTelemetryImageLength()
Return the length in bits of the telemetry image that would be written by the object in response to a call to method writeToTelemetry. |
UnitModeManager |
getUnitModeManager()
Get the concrete mode manager that is currently set. |
boolean |
initialize()
No initialization actions are associated to this active object. |
boolean |
isConfigured()
Check the configuration of the super class, mode manager, and the list of commands. |
void |
reset()
Reset super object state and performs a local reset. |
void |
resetConfiguration()
Reset configuration of the super object and performs the local reset of the configuration. |
void |
runOneCycle(int deadline)
Process all elementary actions and commands on external units. |
void |
setCommandListSize(int listSize)
UnitManager class must be statically configured prior to initializing an individual UnitManager. |
void |
setUnitModeManager(UnitModeManager mm)
Set a concrete mode manager that provides a mode switch for units. |
boolean |
terminate()
No termination actions are associated to this active object. |
void |
writeToTelemetry(TelemetryStream stream)
Causes the object to write its own state to the telemetry stream. |
| 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 UnitManager()
| Method Detail |
public boolean isConfigured()
isConfigured in interface ConfigurableisConfigured in class AocsObjectpublic void reset()
reset in interface Resettablereset in class AocsObjectpublic void resetConfiguration()
resetConfiguration in interface ConfigurableresetConfiguration in class AocsObjectpublic void setCommandListSize(int listSize)
listSize - the number of unit commands supported by this UnitManagerpublic void addCommand(UnitCommand uc)
public void runOneCycle(int deadline)
runOneCycle in interface ActiveObjectdeadline - deadline by which the object must have returned. This
parameter allows implementation of cooperative scheduling.public boolean initialize()
initialize in interface ActiveObjectpublic boolean terminate()
terminate in interface ActiveObjectpublic void setUnitModeManager(UnitModeManager mm)
mm - concrete mode managerpublic UnitModeManager getUnitModeManager()
public int getTelemetryImageLength()
getTelemetryImageLength in interface TelemeterablegetTelemetryImageLength in class AocsObjectpublic void writeToTelemetry(TelemetryStream stream)
writeToTelemetry in interface TelemeterablewriteToTelemetry in class AocsObjectstream - the telemetry stream
|
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 | ||||||||||