|
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
|
+--java.util.EventObject
|
+--RtjAocsFramework.AocsEvent.AocsEvent
Base class from which all AOCS event classes are derived.
The AocsEvent class adds the following attributes to the basic java event class: a time stamp, a reference to the AOCS clock, an event type identifier. The time stamp is set every time the event is initialized. The current time is retrieved from the AOCS clock.
In addition to getter methods for the event attributes, a initialization method is provided. The initialization method allows all the event attributes to be set.
AOCS events need an initialization method because they are not created dynamically (due to the restrictions of the real-time character of AOCS applications). Objects that need to fire events, create the event object during the application initialization phase and initialize it before it is fired. The event listener should retrieve the event attributes it needs and then release the event. The event firing should be performed in a synchronized section that locks the event itself.
Copyright: see the Copyright Notice.
| Field Summary |
| Fields inherited from class java.util.EventObject |
source |
| Fields inherited from interface RtjAocsFramework.TelemetryManagement.Telemeterable |
DEBUG_TM, LONG_TM, NORMAL_TM, NTMFORMATS, SHORT_TM |
| Constructor Summary | |
AocsEvent(Object dummySource)
Create an AOCS Event. |
|
| Method Summary | |
AocsObject |
getCreator()
|
short |
getEventType()
|
byte |
getTelemetryFormat()
Return the current telemetry format. |
int |
getTelemetryImageLength()
Return the length (in bits) of the telemetry image of the object. |
int |
getTimeStamp()
|
void |
initialize(AocsObject creator,
short evtType)
Initialize the event prior to firing it. |
boolean |
isConfigured()
Return false if some configuration data are missing. |
void |
reset()
Bring the resettable state of the object to its initial default value. |
void |
resetConfiguration()
Clear all configuration information. |
void |
setTelemetryFormat(byte newFormat)
Set the telemetry format to 'newFormat'. |
void |
writeToTelemetry(TelemetryStream tmStream)
Direct the object to write its own state to the telemetry stream. |
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AocsEvent(Object dummySource)
| Method Detail |
public void initialize(AocsObject creator,
short evtType)
creator - object creating the event. This is also assigned to the
event source. Within the framework, only the creator field in class
AocsEvent is used to avoid type casting from Object to AocsObject and to
allow the creator to be a settable property.evtType - = event type identifier.public int getTimeStamp()
public short getEventType()
public AocsObject getCreator()
public void reset()
Resettable
reset in interface Resettablepublic void resetConfiguration()
ConfigurableCalls to resetConfiguration are propagated to objects that are in a relationship of strong aggregation.
resetConfiguration in interface Configurablepublic 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 Configurablepublic void writeToTelemetry(TelemetryStream tmStream)
Telemeterable
writeToTelemetry in interface Telemeterablepublic void setTelemetryFormat(byte newFormat)
Telemeterable
setTelemetryFormat in interface Telemeterablepublic byte getTelemetryFormat()
Telemeterable
getTelemetryFormat in interface Telemeterablepublic int getTelemetryImageLength()
Telemeterable
getTelemetryImageLength in interface Telemeterable
|
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 | ||||||||||