|
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.OperatingSystemObjects.DummyAocsClock
Dummy on-board clock useful for testing.
This class is not part of the AOCS Framework proper. 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 | |
DummyAocsClock()
|
|
| Method Summary | |
int |
getClockPeriod()
Return the clock period in case on-board time is updated periodically, otherwise return zero. |
int |
getCycle()
Return the current cycle number. |
int |
getTelemetryImageLength()
Return the length (in bits) of the telemetry image of the object. |
int |
getTime()
Return the on-board time (unit of measure is application dependent). |
boolean |
initialize()
Initialize an active object before it is scheduled. |
void |
reset()
Bring the resettable state of the object to its initial default value. |
void |
runOneCycle(int deadline)
Increment current cycle by 1 and the current time by 'dummyPeriod' |
void |
synchronizeWithSystemTime()
Sychronize the local subsystem time with the system time. |
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 DummyAocsClock()
| Method Detail |
public int getClockPeriod()
AocsClock
getClockPeriod in interface AocsClockpublic int getTime()
AocsClock
getTime in interface AocsClockgetTime in class AocsObjectpublic int getCycle()
AocsClockIt is assumed that the software executes cyclically. This method returns the current cycle number counted from the last software reset.
getCycle in interface AocsClockgetCycle in class AocsObjectpublic void synchronizeWithSystemTime()
AocsClockSome applications may have different timing sources for different subsystems. If a central system time exists, a call to this method will cause the local time to be synchronized to the system time.
synchronizeWithSystemTime in interface AocsClockpublic void reset()
Resettable
reset in interface Resettablereset in class AocsObjectpublic int getTelemetryImageLength()
Telemeterable
getTelemetryImageLength in interface TelemeterablegetTelemetryImageLength in class AocsObjectpublic void writeToTelemetry(TelemetryStream tmStream)
Telemeterable
writeToTelemetry in interface TelemeterablewriteToTelemetry in class AocsObjectpublic 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 ActiveObject
|
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 | ||||||||||