|
ABLE, Version 1.1b | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A SensorManager maintains a list of Sensors for accessing external application data from Agents
Method Summary | |
void |
addSensor(AbleSensor theSensor)
Add a sensor to the list of sensors. |
java.util.Hashtable |
getSensors()
Get all sensors registered with this manager. |
java.lang.Object |
invokeSensor(java.lang.String theSensorName,
java.lang.Object[] theArgs)
Call the method that the sensor represents, passing in the array of argument objects. |
void |
removeSensor(java.lang.String theSensorName)
Remove a sensor from the list of sensors. |
void |
setSensors(java.util.Hashtable theSensors)
Set all sensors for this manager. |
Method Detail |
public void addSensor(AbleSensor theSensor) throws java.rmi.RemoteException
theSensor
- The sensor to be added to the list of sensors.
public void removeSensor(java.lang.String theSensorName) throws java.rmi.RemoteException
theSensorName
- The name of the sensor to be removed.
public java.lang.Object invokeSensor(java.lang.String theSensorName, java.lang.Object[] theArgs) throws java.rmi.RemoteException, java.lang.NoSuchMethodException, java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException, java.lang.SecurityException
theSensorName
- The name of the sensor containing an encapsulated method.
theArgs
- An array of arguments that the method expects.
public void setSensors(java.util.Hashtable theSensors) throws java.rmi.RemoteException
theSensors
- A list of AbleSensor objects that replaces the current
list. The input list is cloned.
public java.util.Hashtable getSensors() throws java.rmi.RemoteException
|
ABLE, Version 1.1b | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |