fr.dyade.aaa.agent
Class Role

java.lang.Object
  extended byfr.dyade.aaa.agent.Role
All Implemented Interfaces:
java.io.Serializable

public class Role
extends java.lang.Object
implements java.io.Serializable

A role wraps an AgentId. It is identified by a name.

See Also:
Serialized Form

Constructor Summary
Role(java.lang.String name)
          Creates a new role with the specified name.
Role(java.lang.String name, AgentId listener)
          Creates a new role with the specified name and AgentId.
 
Method Summary
 AgentId getListener()
          Returns the wrapped AgentId.
 java.lang.String getName()
          Returns the role name.
 void setListener(AgentId listener)
          Sets the wrapped AgentId.
 void setName(java.lang.String name)
          Sets the role name.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Role

public Role(java.lang.String name)
Creates a new role with the specified name.

Parameters:
name - the role name.

Role

public Role(java.lang.String name,
            AgentId listener)
Creates a new role with the specified name and AgentId.

Parameters:
name - the role name.
listener - the wrapped AgentId.
Method Detail

setListener

public void setListener(AgentId listener)
Sets the wrapped AgentId.

Parameters:
listener - the wrapped AgentId.

getListener

public AgentId getListener()
Returns the wrapped AgentId.


getName

public java.lang.String getName()
Returns the role name.


setName

public void setName(java.lang.String name)
Sets the role name.

Parameters:
name - the role name.

toString

public java.lang.String toString()


Copyright ? 2004 Scalagent - All rights reserved