|
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.TelecommandManagement.Telecommand
Base class for all telecommands. Class telecommand is a concrete class with overridable methods and should conceptually be seen as an interface class. The implementations of its methods are trivial default that are intended to be overridden by concrete telecommand classes.
The telecommand class is derived from class RootObject and from a single inheritance tree. Concrete telecommand classes therefore have a single virtual table pointer associated to them which simplifies the implementation of the telecommand loading mechanism and keeps the telecommand size small.
Since telecommand objects are to be constructed dynamically by the application, they are not designed as Java beans.
Copyright: see the Copyright Notice.
| Constructor Summary | |
Telecommand(int timeTag)
Create a telecommand with the given time tag. |
|
| Method Summary | |
boolean |
canExecute()
Performs a check that the operational conditions are appropriate to the execution of the telecommand. |
short |
execute()
A call to this method causes the actions associated to the telecommand to be executed. |
short |
getTelecommandId()
Returns the identifier associated to the telecommand. |
short |
getTelecommandTypeId()
Returns the identifier associated to the telecommand type. |
int |
getTimeTag()
Return the time tag associated to the telecommand. |
boolean |
isEnabled()
|
void |
setEnable(boolean enableStatus)
Telecommands can be enabled and disabled. |
| Methods inherited from class RtjAocsFramework.BasicObjects.RootObject |
getClassId, getInstanceId, setClassId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Telecommand(int timeTag)
| Method Detail |
public short execute()
Telecommands are intended to be light-weight objects since they may have to be uplinked with their code. For this reason, they are derived from class RootObject rather than from class AocsObject and hence they do not have access to a default handler for failures. Concrete telecommand classes will therefore have to take care of their own error reporting but in general telecommands report their execution status through the return code of method execute().
The default implementation of this method reports a successful execution code.
public boolean canExecute()
public short getTelecommandId()
The telecommand identifier allows a telecommand to be identified independently of its address in memory.
Note that telecommand transactions have a single identifier associated to them.
public short getTelecommandTypeId()
The telecommand type identifier allows the type of a telecommand to be identified independently of its address in memory.
Note that telecommand transactions have a single type identifier associated to them.
public int getTimeTag()
public void setEnable(boolean enableStatus)
public boolean isEnabled()
|
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 | ||||||||||