|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.dyade.aaa.agent.RoleMultiple
This structure provides code for managing target agents registering
in a role. A notification may be sent to a role using the sendTo
function of the sending agent.
The class does not handle duplicates in the list.
Constructor Summary | |
RoleMultiple()
|
|
RoleMultiple(java.lang.String name)
Creates a new RoleMultiple with a specified name. |
Method Summary | |
void |
addListener(AgentId target)
Adds an agent in the listeners list. |
boolean |
contains(AgentId id)
Tests if the specified agent id belongs to role multiple. |
java.util.Enumeration |
getListeners()
Gets the listeners list as an Enumeration of AgentId objects. |
java.lang.String |
getName()
Returns the role name. |
void |
removeListener(AgentId target)
Removes an agent from the listeners list. |
void |
setName(java.lang.String name)
Sets the role name. |
java.lang.String |
toString()
Provides a string image for this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RoleMultiple()
public RoleMultiple(java.lang.String name)
name
- the role name.Method Detail |
public void addListener(AgentId target)
public void removeListener(AgentId target)
public java.util.Enumeration getListeners()
Enumeration
of AgentId
objects.
There is no synchronization as we assume this object is manipulated
from the enclosing agent reaction.
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the role name.public boolean contains(AgentId id)
id
- the specified agent id.
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |