|
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.TelecommandManagement.TestTelecommandLoader
Telecommand loader to be used for off-line tests. Telecommands are loaded as raw telecommands through method loadRawTelecommand. A raw telecommands is a sequence of bytes that represents the telecommand. The telecommand loader interprets the raw telecommand and then creates and configures the corresponding telecommand object. The telecommand object is then loaded into the telecommand manager. Telecommands objects are created dynamically using the 'new' operator. Their deletion is left to the Java garbage collection.
The ActiveObject interface (which is part of the TelecommandLoader interface) is not implemented (or, more precisely, only a dummy implementation is provided.
Copyright: see the Copyright Notice.
| Constructor Summary | |
TestTelecommandLoader()
|
|
| Method Summary | |
int |
getReleaseCounter()
Return the release counter that is incremented by one every time method release() is called. |
TelecommandManager |
getTelecommandManager()
|
boolean |
initialize()
Initialize an active object before it is scheduled. |
void |
loadRawTelecommand(int[] rawTc,
Object obj)
Load a raw telecommand given as an array of integers and an additional object argument. |
void |
release(int TelecommandId)
Release of the memory allocated to the telecommand object is performed automatically by the garbage collector and this method therefore has only a dummy implementation. |
void |
release(Telecommand telecommand)
Release resources allocated to argument telecommand. |
void |
releaseAll()
Release all resources allocated to the currently loaded telecommands. |
void |
runOneCycle(int deadline)
Perform all actions associated to the current cycle. |
void |
setTelecommandManager(TelecommandManager m)
A telecommand loader needs a reference to the telecommand manager in order to be able to add the newly-loaded telecommands to its list of pending telecommands. |
boolean |
terminate()
Perfrom any shutdown actions before an active is de-scheduled. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TestTelecommandLoader()
| Method Detail |
public void release(int TelecommandId)
release in interface TelecommandLoaderTelecommandLoader.release(int)public int getReleaseCounter()
public void releaseAll()
TelecommandLoader
releaseAll in interface TelecommandLoaderrelease(int)public void setTelecommandManager(TelecommandManager m)
TelecommandLoader
setTelecommandManager in interface TelecommandLoaderpublic TelecommandManager getTelecommandManager()
getTelecommandManager in interface TelecommandLoaderTelecommandLoader.setTelecommandManager(TelecommandManager)public void runOneCycle(int deadline)
ActiveObject
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 ActiveObject
public void loadRawTelecommand(int[] rawTc,
Object obj)
public void release(Telecommand telecommand)
TelecommandLoader
release in interface TelecommandLoaderrelease(int)
|
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 | ||||||||||