|
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.AocsData
Base class from which all AOCS data types are derived. An AOCS data is a data structure to hold a settable number of values that can be treated as a single unit. AOCS data act as data sources and data sinks with respect to each of their elemetary values. Time tags are attached to these elemetary values that define the time when the datum was last set. A metric distance is defined between AOCS data.
Subclasses of AocsData may be used define categories of AOCS data with different semantics (3-vectors, quaternions, sets of 3 Euler angles, etc). Class AocsData defines a generic n-vector (with n settable) in Euclidean space. A particular category of AOCS data is identified by its format. In the current implementation, the format is set equal to the class identifier.
Change Record:
isConfigured.
Done by A. Pasetti on 31.03.03isConfigured accordingly. The value
of 0 is now a legal value for the number of data items.
Done by A. Pasetti on 13.05.03
| Field Summary |
| Fields inherited from interface RtjAocsFramework.TelemetryManagement.Telemeterable |
DEBUG_TM, LONG_TM, NORMAL_TM, NTMFORMATS, SHORT_TM |
| Constructor Summary | |
AocsData()
Default constructor (set number of data items before using object!). |
|
AocsData(int numberOfDataItems)
Constructor that initializes the number of data stored in the datum. |
|
| Method Summary | |
boolean |
close(AocsData d)
Returns true if the AOCS datum is close to d. |
double |
distance(AocsData d)
Return the distance between this AOCS datum and AOCS datum d. |
boolean |
doConsistencyCheck()
Some categories of AOCS data can check their internal consistency. |
AocsObject |
getAocsObject()
Return the property owner as an instance of type AocsObject. |
int |
getEarliestTimeTag()
Return the earliest of the data item time tags |
byte |
getFormat()
The format of an AOCS datum is concides with the identifier of its class |
int |
getLatestTimeTag()
Return the most recent of the data item time tags |
double |
getMonitorablePropertyValue(int i)
Return the value of the i-th property. |
int |
getNumberOfInputs()
Return the number of data items. |
int |
getNumberOfItems()
Return the number of data items. |
int |
getNumberOfMonitorableProperties()
Return the total number of monitorable properties exposed by the object. |
int |
getNumberOfOutputs()
Return the number of data items. |
double |
getOutput(int i)
Return the value of the i-th data item. |
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. |
int |
getTimeTag(int i)
Return the time tag of the i-th data item. |
boolean |
isConfigured()
Return false if some configuration data are missing. |
double |
normalize()
Normalize the AOCS datum. |
void |
reset()
Bring the resettable state of the object to its initial default value. |
void |
resetConfiguration()
Clear all configuration information. |
void |
setClosenessThreshold(double epsilon)
The closeness threshold determines when two AOCS data are considered 'close'. |
void |
setInput(double newValue,
int i)
Set the i-th data item and update its time tag. |
void |
setNormalizationThreshold(double newThreshold)
The normalization threshold determines when an AOCS datum should be normalized. |
void |
setNumberOfDataItems(int n)
Initialization method to set the number of data item. |
void |
setRecoveryAction(RecoveryAction r)
Set the recovery action associated to the consistency check. |
double |
size()
Return the size of the AOCS datum. |
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 AocsData()
public AocsData(int numberOfDataItems)
| Method Detail |
public void setNumberOfDataItems(int n)
public double getOutput(int i)
getOutput in interface DataSourcepublic int getNumberOfOutputs()
getNumberOfOutputs in interface DataSourcepublic int getNumberOfInputs()
getNumberOfInputs in interface DataSink
public void setInput(double newValue,
int i)
setInput in interface DataSinkpublic int getNumberOfItems()
public double distance(AocsData d)
public boolean close(AocsData d)
setClosenessThreshold(double)public double size()
public int getEarliestTimeTag()
public int getLatestTimeTag()
public int getTimeTag(int i)
public double normalize()
Method normalize() returns a value indicating how far from the normal range the datum was. This return value can be used to perform consistency checks on the data. Thus, for instance, if it was found that the quaternion representing the satellite attitude after integration of the Euler equations had a quadratic sum of, say, 1.1, then it is likely that the integration algorithm is misbehaving and the fact can be reported as an error. A normalization threshold is used to determine whether the AOCS datum should be normalized.
setNormalizationThreshold(double)public void reset()
Resettable
reset in interface Resettablereset in class AocsObjectpublic void resetConfiguration()
ConfigurableCalls to resetConfiguration are propagated to objects that are in a relationship of strong aggregation.
resetConfiguration in interface ConfigurableresetConfiguration in class AocsObjectpublic boolean isConfigured()
ConfigurableTypically, a false value indicates that a plug-in component is missing or that the object has not been initialized. This is a negative check only: a return value of true cannot guarantee that the object is correctly configured.
Calls to resetConfiguration on an object A are normally not propagated objects of type AocsObject that are contained or otherwise aggregated to A. The rationale for this policy is that all objects of type AocsObject implement interface configurable and therefore their configuration status should be checked externally (probably through the configuration check service of the system manager).
isConfigured in interface ConfigurableisConfigured in class AocsObjectpublic void writeToTelemetry(TelemetryStream tmStream)
Telemeterable
writeToTelemetry in interface TelemeterablewriteToTelemetry in class AocsObjectpublic int getTelemetryImageLength()
Telemeterable
getTelemetryImageLength in interface TelemeterablegetTelemetryImageLength in class AocsObjectpublic boolean doConsistencyCheck()
doConsistencyCheck in interface ConsistencyCheckablenormalize(),
setNormalizationThreshold(double)public byte getFormat()
public void setClosenessThreshold(double epsilon)
close(RtjAocsFramework.AocsData.AocsData)public void setNormalizationThreshold(double newThreshold)
normalize()public void setRecoveryAction(RecoveryAction r)
ConsistencyCheckable
setRecoveryAction in interface ConsistencyCheckablepublic RecoveryAction getRecoveryAction()
ConsistencyCheckable
getRecoveryAction in interface ConsistencyCheckablepublic double getMonitorablePropertyValue(int i)
Monitorable
getMonitorablePropertyValue in interface Monitorablepublic int getNumberOfMonitorableProperties()
Monitorable
getNumberOfMonitorableProperties in interface Monitorablepublic AocsObject getAocsObject()
Monitorable
getAocsObject in interface Monitorable
|
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 | ||||||||||