ABLE, Version 1.1b

com.ibm.able.beans
Interface AbleEffectorManager

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

public abstract interface AbleEffectorManager
extends java.rmi.Remote

An EffectorManager manages a set of effectors, named method objects

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

Method Summary
 void addEffector(AbleEffector theEffector)
          Add an effector to the list of effectors.
 java.util.Hashtable getEffectors()
          Get all effectors registered with this manager.
 java.lang.Object invokeEffector(java.lang.String theEffectorName, java.lang.Object[] theArgs)
          Call the method that the effector represents, passing in the array of argument objects.
 void removeEffector(java.lang.String theEffectorName)
          Remove an effector from the list of effectors.
 void setEffectors(java.util.Hashtable theEffectors)
          Set all effectors for this manager.
 

Method Detail

addEffector

public void addEffector(AbleEffector theEffector)
                 throws java.rmi.RemoteException
Add an effector to the list of effectors.
Parameters:
theEffector - The effector to be added to the list of effectors.


removeEffector

public void removeEffector(java.lang.String theEffectorName)
                    throws java.rmi.RemoteException
Remove an effector from the list of effectors.
Parameters:
theEffectorName - The name of the effector to be removed.


invokeEffector

public java.lang.Object invokeEffector(java.lang.String theEffectorName,
                                       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 effector represents, passing in the array of argument objects.
Parameters:
theEffectorName - The name of the effector 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

setEffectors

public void setEffectors(java.util.Hashtable theEffectors)
                  throws java.rmi.RemoteException
Set all effectors for this manager.
Parameters:
theEffectors - A list of AbleEffector objects that replaces the current list. The input list is cloned.


getEffectors

public java.util.Hashtable getEffectors()
                                 throws java.rmi.RemoteException
Get all effectors registered with this manager.
Returns:
A copy of the list of all registered AbleEffector objects.

ABLE, Version 1.1b

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