fr.dyade.aaa.agent.RoleMultiple Class Reference

List of all members.

Public Member Functions

 RoleMultiple ()
 RoleMultiple (String name)
void addListener (AgentId target)
void removeListener (AgentId target)
Enumeration getListeners ()
String getName ()
void setName (String name)
boolean contains (AgentId id)
String toString ()

Detailed Description

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.

Definition at line 37 of file RoleMultiple.java.


Constructor & Destructor Documentation

fr.dyade.aaa.agent.RoleMultiple.RoleMultiple ( String  name  ) 

Creates a new RoleMultiple with a specified name.

Parameters:
name the role name.

Definition at line 54 of file RoleMultiple.java.


Member Function Documentation

void fr.dyade.aaa.agent.RoleMultiple.addListener ( AgentId  target  ) 

Adds an agent in the listeners list.

Definition at line 61 of file RoleMultiple.java.

Referenced by com.scalagent.scheduler.Scheduler.addConditionListener().

void fr.dyade.aaa.agent.RoleMultiple.removeListener ( AgentId  target  ) 

Removes an agent from the listeners list.

Definition at line 70 of file RoleMultiple.java.

References fr.dyade.aaa.agent.AgentId.equals().

Referenced by com.scalagent.scheduler.Scheduler.removeConditionListener().

Here is the call graph for this function:

Enumeration fr.dyade.aaa.agent.RoleMultiple.getListeners (  ) 

Gets the listeners list as an Enumeration of AgentId objects.

There is no synchronization as we assume this object is manipulated from the enclosing agent reaction.

Definition at line 88 of file RoleMultiple.java.

Referenced by com.scalagent.scheduler.Scheduler.removeConditionListener(), com.scalagent.scheduler.Scheduler.removeItem(), and fr.dyade.aaa.agent.Agent.sendTo().

String fr.dyade.aaa.agent.RoleMultiple.getName (  ) 

Returns the role name.

Definition at line 97 of file RoleMultiple.java.

void fr.dyade.aaa.agent.RoleMultiple.setName ( String  name  ) 

Sets the role name.

Parameters:
name the role name.

Definition at line 105 of file RoleMultiple.java.

boolean fr.dyade.aaa.agent.RoleMultiple.contains ( AgentId  id  ) 

Tests if the specified agent id belongs to role multiple.

Parameters:
id the specified agent id.
Returns:
true if the specified id belongs to the role; false otherwise.

Definition at line 116 of file RoleMultiple.java.

String fr.dyade.aaa.agent.RoleMultiple.toString (  ) 

Provides a string image for this object.

Definition at line 125 of file RoleMultiple.java.


The documentation for this class was generated from the following file:
Generated on Tue Sep 16 16:16:46 2008 for joram by  doxygen 1.5.0