|
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.ObjectList.ObjectList
Encapsulation of a list of untyped objects. This class manages a set of objects of generic type Object. Objects can be added and removed from the set dynamically. Operations are provided to iterate through the items in the repository.
This class should not be directly used in the framework because it is not type-safe. It is only provided as a basis upon which type-safe repositories can be built by derivation.
This class implements a very straightforward linear search algorithm to identify empty slots when new objects are inserted or to located a specific object in the list.
Change Record:
setSize to
setListSize. Done by A. Pasetti on 19.11.02
| Field Summary |
| Fields inherited from interface RtjAocsFramework.TelemetryManagement.Telemeterable |
DEBUG_TM, LONG_TM, NORMAL_TM, NTMFORMATS, SHORT_TM |
| Constructor Summary | |
protected |
ObjectList()
Construct (without initializing) the list. |
| Method Summary | |
protected int |
addObject(Object newObject)
Add one object to the repository. |
Object |
firstObject()
Start an iteration and return the first object in the list. |
protected Object |
getByPosition(int i)
Return the object (possibly a null reference) stored in list at position i |
int |
getListSize()
|
int |
getNumberOfItems()
|
int |
getPosition()
While an iteration is under way, the method returns the position of the last element retrieved by the iterator operations. |
int |
getTelemetryImageLength()
Return the length (in bits) of the telemetry image of the object. |
boolean |
isConfigured()
The list is configured if its size has been set. |
boolean |
isLast()
Return true if the iteration is finished. |
boolean |
isListFull()
Returns true if list is full |
protected boolean |
isObjectInList(Object object)
Returns true if the argument object is in the list |
protected void |
localReset()
|
protected void |
localResetConfiguration()
|
protected int |
locateObjectInList(Object object)
Locate the argument object in the list. |
protected Object |
nextObject()
Advance the iteration and return the next object in the list. |
protected int |
removeObject(Object object)
Remove one object from the list. |
protected void |
removeObjectByPosition(int i)
Remove the object (possibly a null reference) at position i from the list. |
void |
reset()
Reset any on-going iteration. |
void |
resetConfiguration()
Clear all list entries. |
void |
setListSize(int listSize)
Initialization method to set the list size. |
void |
writeToTelemetry(TelemetryStream tmStream)
Only a trivial implementation is provided in the framework prototype. |
| 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 ObjectList()
| Method Detail |
protected void localReset()
protected void localResetConfiguration()
protected int locateObjectInList(Object object)
object - object to be located
public void setListSize(int listSize)
protected int addObject(Object newObject)
newObject - object to be added
protected int removeObject(Object object)
object - object to be removed
public boolean isListFull()
protected boolean isObjectInList(Object object)
public Object firstObject()
protected Object nextObject()
public boolean isLast()
public int getPosition()
protected Object getByPosition(int i)
protected void removeObjectByPosition(int i)
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 tmStream)
writeToTelemetry in interface TelemeterablewriteToTelemetry in class AocsObjectpublic int getTelemetryImageLength()
Telemeterable
getTelemetryImageLength in interface TelemeterablegetTelemetryImageLength in class AocsObjectpublic int getListSize()
public int getNumberOfItems()
|
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 | ||||||||||