|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.tfe.core.SensorList
| Constructor Summary | |
SensorList()
Creates new SensorList |
|
| Method Summary | |
void |
add(Sensor sensor)
Adds a Sensor to the SensorList. |
void |
addObserver(SensorListObserver observer)
|
void |
deleteObserver(SensorListObserver observer)
|
Sensor |
get(int index)
Gets the Sensor at the specified index. |
Sensor |
get(java.lang.String name)
Gets the Sensor with the specified name. |
java.lang.Object[] |
getKeys()
Gets a listing of the sensors in the list. |
int |
getSensorCount()
Gets the total number of Sensors in the SensorList. |
boolean |
hasSensor(Sensor sensor)
Whether or not the specified Sensor is in the SensorList. |
boolean |
hasSensor(java.lang.String name)
Whether or not the SensorList contains a Sensor with a specified name. |
void |
remove(Sensor sensor)
Removes a specified Sensor from the list. |
void |
remove(java.lang.String name)
Removes a Sensor with the specified hostname from the list. |
void |
sensorAlertAdded(java.lang.String sensorName,
int alertID)
|
void |
sensorAlertRemoved(java.lang.String sensorName)
|
void |
sensorUpdated(java.lang.String name,
Sensor newVal)
|
java.lang.String |
toString()
Gets a String representation of the Sensor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SensorList()
| Method Detail |
public void add(Sensor sensor)
sensor - Sensor to be added to the list.public void remove(Sensor sensor)
sensor - the Sensor to be removed.public void remove(java.lang.String name)
name - the name of the Sensor to be removed.public Sensor get(int index)
Sensor at the specified index.
index - the index of the Sensor to be retrieved.
public Sensor get(java.lang.String name)
Sensor with the specified name.
name - the name of the Sensor to retrieve.
public boolean hasSensor(Sensor sensor)
Sensor is in the SensorList.
sensor - the Sensor that we're looking for.
public boolean hasSensor(java.lang.String name)
Sensor with a specified name.
name - the name of the Sensor that we're looking for.
public int getSensorCount()
Sensors in the SensorList.
public java.lang.Object[] getKeys()
Objects that are the names of the Sensors in this list.public java.lang.String toString()
Sensor.
toString in class java.lang.Objectpublic void addObserver(SensorListObserver observer)
public void deleteObserver(SensorListObserver observer)
public void sensorAlertAdded(java.lang.String sensorName,
int alertID)
sensorAlertAdded in interface SensorObserver
public void sensorUpdated(java.lang.String name,
Sensor newVal)
sensorUpdated in interface SensorObserverpublic void sensorAlertRemoved(java.lang.String sensorName)
sensorAlertRemoved in interface SensorObserver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||