ABLE, Version 1.1b

com.ibm.able.beans
Interface AbleSensorManager

All Known Subinterfaces:
AbleAgent, FipaAccAgent, FipaAgent, FipaAmsAgent, FipaDfAgent
All Known Implementing Classes:
FsRuleSet, AbleRuleSet

public abstract interface AbleSensorManager
extends java.rmi.Remote

A SensorManager maintains a list of Sensors for accessing external application data from Agents

Version:
$Revision: 1.2 $, $Date: 2000/01/24 14:53:14 $

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

addSensor

public void addSensor(AbleSensor theSensor)
               throws java.rmi.RemoteException
Add a sensor to the list of sensors.
Parameters:
theSensor - The sensor to be added to the list of sensors.


removeSensor

public void removeSensor(java.lang.String theSensorName)
                  throws java.rmi.RemoteException
Remove a sensor from the list of sensors.
Parameters:
theSensorName - The name of the sensor to be removed.


invokeSensor

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
Call the method that the sensor represents, passing in the array of argument objects.
Parameters:
theSensorName - The name of the sensor containing an encapsulated method.

theArgs - An array of arguments that the method expects.

Returns:
The invoked method's return value.
Throws:
java.lang.NoSuchMethodException - the method or method signature if not defined in the source object
java.lang.reflect.InvocationTargetException - if an exception was thrown by the invoked method
java.lang.SecurityException - if the method is not public or accessible
java.lang.IllegalAccessException - if the method is not public or accessible

setSensors

public void setSensors(java.util.Hashtable theSensors)
                throws java.rmi.RemoteException
Set all sensors for this manager.
Parameters:
theSensors - A list of AbleSensor objects that replaces the current list. The input list is cloned.


getSensors

public java.util.Hashtable getSensors()
                               throws java.rmi.RemoteException
Get all sensors registered with this manager.
Returns:
A copy of the list of all registered Sensors.

ABLE, Version 1.1b

ABLE: Produced by Joe, Don, and Jeff who say, 'Thanks for your support.'