|
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
|
+--RtjAocsFramework.TelecommandManagement.TransactionTelecommand
A transaction telecommand is a telecommand that is intended to be part of a sequence of telecommands that can be treated as a transaction. This means that in case of failure of a telecommand in the sequence, telecommands that have already been executed can be unexecuted and the system can be returned to the state in which it was at the time the transaction began. Transaction telecommand are therefore endowed with an unExecute method that undoes the effects of their actions.
Copyright: see the Copyright Notice.
| Constructor Summary | |
TransactionTelecommand(int timeTag)
Create a telecommand with the given time tag. |
|
| Method Summary | |
boolean |
canExecute()
Recursively calls canExecute on all telecommands in the transaction and returns true if all canExecute return true. |
short |
execute()
Recursively execute all the telecommands in the telecommand transaction. |
TransactionTelecommand |
getNextTransactionTelecommand()
|
TransactionTelecommand |
getPreviousTransactionTelecommand()
|
TelecommandManager |
getTelecommandManager()
|
boolean |
isEnabled()
Recursively calls isEnabled on all telecommands in the transaction and returns true if all calls to isEnabled return true. |
void |
setNextTransactionTelecommand(TransactionTelecommand t)
Set t as the next telecommand in the transaction and update the link to the previous telecommand in t. |
void |
setPreviousTransactionTelecommand(TransactionTelecommand t)
Set t as the previous telecommand in the transaction and update the link to the next telecommand in t. |
void |
setTelecommandManager(TelecommandManager m)
|
short |
unExecute()
Recursively undo the effects of all the telecommands so far executed as part of the same transaction. |
| Methods inherited from class RtjAocsFramework.TelecommandManagement.Telecommand |
getTelecommandId, getTelecommandTypeId, getTimeTag, setEnable |
| 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 TransactionTelecommand(int timeTag)
| Method Detail |
public short execute()
execute in class TelecommandTelecommand.execute()public short unExecute()
public boolean canExecute()
canExecute in class TelecommandTelecommand.canExecute()public boolean isEnabled()
isEnabled in class Telecommandpublic TransactionTelecommand getNextTransactionTelecommand()
public void setNextTransactionTelecommand(TransactionTelecommand t)
public TransactionTelecommand getPreviousTransactionTelecommand()
public void setPreviousTransactionTelecommand(TransactionTelecommand t)
public TelecommandManager getTelecommandManager()
public void setTelecommandManager(TelecommandManager m)
|
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 | ||||||||||