ABLE, Version 1.1b

com.ibm.able
Interface AbleBeanContainer

All Known Subinterfaces:
AbleAgent, FipaAccAgent, FipaAgent, FipaAmsAgent, FipaDfAgent

public abstract interface AbleBeanContainer
extends java.rmi.Remote

This class defines the interface for ABLE objects that are composed of, or can contain multiple AbleBean objects.

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

Method Summary
 void addBean(AbleBean theAbleBean)
          Add another bean to this container.
 boolean containsBean(AbleBean theAbleBean)
          Determine whether a specific agent is contained in this agent.
 boolean containsBean(java.lang.String theName)
          Determine whether a bean with a specific name is contained in this agent.
 AbleBean getBean(java.lang.String theName)
          Look for a bean with a specific name in this agent, and, if found, return a reference to that agent.
 java.util.Vector getBeans()
          Return a list of all beans contained within this agent.
 void removeAllBeans()
          Remove all beans from this container/agent.
 void removeBean(AbleBean theAbleBean)
          Remove a bean from this container/agent.
 

Method Detail

addBean

public void addBean(AbleBean theAbleBean)
             throws java.rmi.RemoteException
Add another bean to this container.
Parameters:
theAbleBean - A bean that is to be added to this container. If the specified agent is already contained in this agent, WHAT?? *FIX*

See Also:
removeBean(com.ibm.able.AbleBean), containsBean(com.ibm.able.AbleBean), getBean(java.lang.String), getBeans()

removeBean

public void removeBean(AbleBean theAbleBean)
                throws java.rmi.RemoteException
Remove a bean from this container/agent.
Parameters:
theAbleBean - A bean that is to be removed from this agent. If the specified bean is not contained in this agent, the implementor may either throw an exception or ignore the request as desired.


removeAllBeans

public void removeAllBeans()
                    throws java.rmi.RemoteException
Remove all beans from this container/agent.

containsBean

public boolean containsBean(AbleBean theAbleBean)
                     throws java.rmi.RemoteException
Determine whether a specific agent is contained in this agent. The determination is done by using IAgent equality. *FIX*
Parameters:
theAbleBean - A bean that is to be looked for in this agent.

Returns:
true if the specific bean exists in this agent, false otherwise.

containsBean

public boolean containsBean(java.lang.String theName)
                     throws java.rmi.RemoteException
Determine whether a bean with a specific name is contained in this agent. The determination is done by comparing bean names.
Parameters:
theName - The specific name of a bean that is to be looked for in this agent.

Returns:
true if the named bean exists in this agent, false otherwise.

getBean

public AbleBean getBean(java.lang.String theName)
                 throws java.rmi.RemoteException
Look for a bean with a specific name in this agent, and, if found, return a reference to that agent.
Parameters:
theName - The specific name of an agent that is to be looked for in this agent and, if found, returned.

Returns:
A reference to the found agent, or null if the agent is not found within this agent.

getBeans

public java.util.Vector getBeans()
                          throws java.rmi.RemoteException
Return a list of all beans contained within this agent.
Returns:
A vector containing all other beans contained within this agent. Note that the vector may be empty. Note also that there is no implied order to the elements on the vector.

ABLE, Version 1.1b

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