fr.dyade.aaa.agent
Class Role
- Serializable
public class Role
extends java.lang.Object
implements Serializable
A role wraps an AgentId. It is identified by a name.
Role(String name) - Creates a new role with the specified name.
|
Role(String name, AgentId listener) - Creates a new role with the specified name and AgentId.
|
Role
public Role(String name)
Creates a new role with the specified name.
name
- the role name.
Role
public Role(String name,
AgentId listener)
Creates a new role with the specified name and AgentId.
name
- the role name.listener
- the wrapped AgentId
.
getListener
public AgentId getListener()
Returns the wrapped AgentId
.
getName
public String getName()
Returns the role name.
setListener
public void setListener(AgentId listener)
Sets the wrapped AgentId
.
listener
- the wrapped AgentId
.
setName
public void setName(String name)
Sets the role name.
name
- the role name.
toString
public String toString()
Copyright B) 2004 Scalagent - All rights reserved