Real-Time Java AOCS Framework v1.0 API Specification

RtjAocsFramework.ObjectList
Class ModeListenerList

java.lang.Object
  |
  +--RtjAocsFramework.BasicObjects.RootObject
        |
        +--RtjAocsFramework.BasicObjects.AocsObject
              |
              +--RtjAocsFramework.ObjectList.ObjectList
                    |
                    +--RtjAocsFramework.ObjectList.ModeListenerList
All Implemented Interfaces:
Configurable, Resettable, Telemeterable

public class ModeListenerList
extends ObjectList

Encapsulation of a list of objects of type ModeListener. This class is simply a type-safe wrapper around ObjectList. It ensures that objects in the list are of type AocsData and performs all (potentially unsafe) casts internally. Lists of of listener objects are normally used to hold the objects that have registered interest in being notified of a specific event. In the standard JavaBeans implementation, they are implemented as Vector lists. In the framework, the ObjectList mechanism is preferred to avoid dynamic memory allocation during normal operation.

Copyright: see the Copyright Notice.

Version:
1.0
Author:
Alessandro Pasetti (University of Konstanz)

Field Summary
 
Fields inherited from interface RtjAocsFramework.TelemetryManagement.Telemeterable
DEBUG_TM, LONG_TM, NORMAL_TM, NTMFORMATS, SHORT_TM
 
Constructor Summary
ModeListenerList()
           
 
Method Summary
 int addObject(ModeListener newObject)
           
 ModeListener first()
           
 ModeListener getObjectByPosition(int i)
           
 boolean isObjectInList(ModeListener object)
           
 int locateObjectInList(ModeListener object)
           
 ModeListener next()
           
 int removeObject(ModeListener object)
           
 
Methods inherited from class RtjAocsFramework.ObjectList.ObjectList
addObject, firstObject, getByPosition, getListSize, getNumberOfItems, getPosition, getTelemetryImageLength, isConfigured, isLast, isListFull, isObjectInList, localReset, localResetConfiguration, locateObjectInList, nextObject, removeObject, removeObjectByPosition, reset, resetConfiguration, setListSize, writeToTelemetry
 
Methods inherited from class RtjAocsFramework.BasicObjects.AocsObject
addConfigurationListener, addFailureListener, finalize, getAocsClock, getConfigurationListenerList, getCycle, getDestructionRecoveryAction, getFailureListenerList, getSystemManager, getTelemetryFormat, getTime, removeConfigurationListener, removeFailureListener, reportConfigurationEvent, reportFailure, resetStaticConfiguration, setAocsClock, setDestructionRecoveryAction, setMaxNumberOfConfigurationListeners, setMaxNumberOfFailureListeners, setSystemManager, setTelemetryFormat
 
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

ModeListenerList

public ModeListenerList()
See Also:
ObjectList.ObjectList()
Method Detail

locateObjectInList

public int locateObjectInList(ModeListener object)
See Also:
ObjectList.locateObjectInList(Object)

addObject

public int addObject(ModeListener newObject)
See Also:
ObjectList.addObject(Object)

removeObject

public int removeObject(ModeListener object)
See Also:
ObjectList.removeObject(Object)

isObjectInList

public boolean isObjectInList(ModeListener object)
See Also:
ObjectList.isObjectInList(Object)

first

public ModeListener first()
See Also:
ObjectList.firstObject()

next

public ModeListener next()
See Also:
ObjectList.nextObject()

getObjectByPosition

public ModeListener getObjectByPosition(int i)
See Also:
ObjectList.getByPosition(int)

Real-Time Java AOCS Framework v1.0 API Specification

Real-Time Java AOCS Framework project home page

Automatic Control Laboratory, ETH Zuerich
Physikstrasse 3
CH-8092 Zuerich, Switzerland