|
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.TelecommandManagement.TelecommandManager
Encapsulation of a telecommand manager. The telecommand manager is an active component that is responsible for the execution of the telecommands. It maintains a list of pending telecommands and, when it is activated, it goes through the list and processes all telecommands in sequence.
The telecommand manager is a source of telecommand events. It fires telecommand events when a telecommand has been loaded and when a telecommand has been executed.
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 | |
TelecommandManager()
Construct - without configuring - a telecommand manager. |
|
TelecommandManager(int maxNumberPendingTc,
int tcIntStackSize,
int tcRealStackSize,
int maxNumberOfTelecommandListeners)
Construct a telecommand manager with the specified integer and real stack sizes and with the specified maximum number of pending telecommands. |
|
| Method Summary | |
void |
addTelecommandListener(TelecommandListener l)
Initialization method to register listeners to telecommand events. |
int |
getNumberOfPendingTelecommands()
Return the number of pending telecommands. |
RecoveryAction |
getTelecommandListFullRecoveryAction()
|
TelecommandLoader |
getTelecommandLoader()
|
RecoveryAction |
getTelecommandStackErrorRecoveryAction()
|
int |
getTelemetryImageLength()
Return the length (in bits) of the telemetry image of the object. |
boolean |
initialize()
Initialize an active object before it is scheduled. |
boolean |
isConfigured()
Return false if some configuration data are missing. |
void |
loadTelecommand(Telecommand telecommand)
Add a telecommand to the list of pending telecommands. |
int |
popInt()
Method available to transaction telecommands to retrieve one integer from the internal stack of the telecommand manager. |
double |
popReal()
Method available to transaction telecommands to retrieve one integer from the internal stack of the telecommand manager. |
void |
pushInt(int value)
Method available to transaction telecommands to save one integer on the internal stack of the telecommand manager. |
void |
pushReal(double value)
Method available to transaction telecommands to save one floating point datum on the internal stack of the telecommand manager. |
void |
removeTelecommandListener(TelecommandListener l)
Initialization method to unregister telecommand event listeners. |
void |
reset()
Reset the internal stack and reset the list of pending telecommands (this also implies releasing the resources allocated to the pending telecommands in the telecommand loader). |
void |
resetConfiguration()
Unload the telecommand loader, the recovery actions and reset the lists of pending telecommands and of listeners to telecommands events. |
void |
runOneCycle(int deadline)
Process all pending telecommands. |
void |
setIntegerStackSize(int n)
Configuration method to set the size of the integer stack used by transaction telecommands to save their internal state. |
void |
setMaxNumberOfTelecommandListeners(int n)
Initialization method to set the maximum number of listeners to telecommand events. |
void |
setMaxNumberPendingTc(int n)
Configuration method to set the maximum number of pending telecommands that the telecommand manager can hold. |
void |
setRealStackSize(int n)
Configuration method to set the size of the floating point stack used by transaction telecommands to save their internal state. |
void |
setTelecommandListFullRecoveryAction(RecoveryAction r)
|
void |
setTelecommandLoader(TelecommandLoader l)
|
void |
setTelecommandStackErrorRecoveryAction(RecoveryAction r)
|
boolean |
terminate()
Perfrom any shutdown actions before an active is de-scheduled. |
void |
writeToTelemetry(TelemetryStream tmStream)
Direct 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 TelecommandManager(int maxNumberPendingTc,
int tcIntStackSize,
int tcRealStackSize,
int maxNumberOfTelecommandListeners)
public TelecommandManager()
| Method Detail |
public void setMaxNumberOfTelecommandListeners(int n)
public void setMaxNumberPendingTc(int n)
public void setIntegerStackSize(int n)
public void setRealStackSize(int n)
public void resetConfiguration()
resetConfiguration in interface ConfigurableresetConfiguration in class AocsObjectpublic void reset()
reset in interface Resettablereset in class AocsObjectpublic boolean isConfigured()
ConfigurableTypically, a false value indicates that a plug-in component is missing or that the object has not been initialized. This is a negative check only: a return value of true cannot guarantee that the object is correctly configured.
Calls to resetConfiguration on an object A are normally not propagated objects of type AocsObject that are contained or otherwise aggregated to A. The rationale for this policy is that all objects of type AocsObject implement interface configurable and therefore their configuration status should be checked externally (probably through the configuration check service of the system manager).
isConfigured in interface ConfigurableisConfigured in class AocsObjectpublic void pushInt(int value)
public int popInt()
public void pushReal(double value)
public double popReal()
public int getNumberOfPendingTelecommands()
public void loadTelecommand(Telecommand telecommand)
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()
ActiveObject
initialize in interface ActiveObjectpublic boolean terminate()
ActiveObject
terminate in interface ActiveObjectpublic void addTelecommandListener(TelecommandListener l)
public void removeTelecommandListener(TelecommandListener l)
public void setTelecommandLoader(TelecommandLoader l)
public TelecommandLoader getTelecommandLoader()
public void setTelecommandListFullRecoveryAction(RecoveryAction r)
public RecoveryAction getTelecommandListFullRecoveryAction()
public void setTelecommandStackErrorRecoveryAction(RecoveryAction r)
public RecoveryAction getTelecommandStackErrorRecoveryAction()
public void writeToTelemetry(TelemetryStream tmStream)
Telemeterable
writeToTelemetry in interface TelemeterablewriteToTelemetry in class AocsObjectpublic int getTelemetryImageLength()
Telemeterable
getTelemetryImageLength in interface TelemeterablegetTelemetryImageLength in class AocsObject
|
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 | ||||||||||