|
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.AocsData.AocsDataPool
Base class from which all AOCS data pool classes are derived.
Data exchanges among components in the AOCS framework are done through shared data areas called data pools. Data pools are based on the shared data design pattern. The data pools physically contain the data items. Data users access the data in the pool as instances of type AocsData.
Only one instance of a certain shared datum is stored in the pool. This means that if, for instance, the method to set the control torque in the attitude data pool is called twice, then the datum written to the pool at the second call overwrites the datum written at the first call. This data sharing mechanism is suitable for cyclical data whose number and type is fixed and can be determined at design time.
Note that data pools introduce some overhead because data have to be copied to a data pool.
Several classes of data pools may be present where every data pool class groups together logically related data. The AocsDataPool class provides a skeleton implementation of an emtpy data pool from which application specific data pools can be instantiated. This is the data pool subclass hot-spot.
Copyright: see the Copyright Notice.
AocsData,
Intercomponent Communication Framelet| Field Summary |
| Fields inherited from interface RtjAocsFramework.TelemetryManagement.Telemeterable |
DEBUG_TM, LONG_TM, NORMAL_TM, NTMFORMATS, SHORT_TM |
| Constructor Summary | |
protected |
AocsDataPool()
The constructor is protected: only subclasses can be instantiated. |
| Method Summary | |
boolean |
doConsistencyCheck()
A consistency check is performed on all AOCS data in the pool and false is returned if any of these checks fails. |
AocsData |
first()
Iterator method to iterate through the data in the data pool. |
int |
getDataPoolSize()
|
RecoveryAction |
getRecoveryAction()
Get the recovery action associated to the consistency check. |
int |
getTelemetryImageLength()
Return the length (in bits) of the telemetry image of the object. |
boolean |
isConfigured()
Return false if any of the data in the pool is not configured or if the recovery action is not loaded. |
boolean |
isLast()
Iterator method to iterate through the data in the data pool. |
protected void |
loadData(AocsData data)
Initialization method to load an AOCS datum into the pool. |
protected void |
localReset()
|
protected void |
localResetConfiguration()
|
AocsData |
next()
Iterator method to iterate through the data in the data pool. |
void |
reset()
Reset all objects in the data pool. |
void |
resetConfiguration()
Reset configuration of all objects in the data pool and unload recovery action. |
protected void |
setDataPoolSize(int size)
Initialization method to set the number of AOCS data that are stored in the data pool. |
void |
setRecoveryAction(RecoveryAction r)
Set the recovery action associated to the consistency check. |
void |
setTelemetryFormat(byte newFormat)
The format setting is propagated to all the AOCS data in the pool. |
void |
writeToTelemetry(TelemetryStream stream)
Write content of the data pool 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 |
protected AocsDataPool()
| Method Detail |
protected void localReset()
protected void localResetConfiguration()
protected void loadData(AocsData data)
data - datum to be loaded into the internal list of data in the pool.AocsDataListprotected void setDataPoolSize(int size)
public int getDataPoolSize()
public AocsData first()
public AocsData next()
public boolean isLast()
public void reset()
reset in interface Resettablereset in class AocsObjectpublic void resetConfiguration()
resetConfiguration in interface ConfigurableresetConfiguration in class AocsObjectpublic boolean isConfigured()
isConfigured in interface ConfigurableisConfigured in class AocsObjectpublic void writeToTelemetry(TelemetryStream stream)
Short and Normal Format: send all the data items from all the AOCS data in the pool to the telemetry stream
Long and Debug Format: send all the AOCS data in the pool to the telemetry stream.
writeToTelemetry in interface TelemeterablewriteToTelemetry in class AocsObjectpublic void setTelemetryFormat(byte newFormat)
setTelemetryFormat in interface TelemeterablesetTelemetryFormat in class AocsObjectpublic int getTelemetryImageLength()
Telemeterable
getTelemetryImageLength in interface TelemeterablegetTelemetryImageLength in class AocsObjectpublic boolean doConsistencyCheck()
doConsistencyCheck in interface ConsistencyCheckablepublic RecoveryAction getRecoveryAction()
ConsistencyCheckable
getRecoveryAction in interface ConsistencyCheckablepublic void setRecoveryAction(RecoveryAction r)
ConsistencyCheckable
setRecoveryAction in interface ConsistencyCheckable
|
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 | ||||||||||