fr.dyade.aaa.agent

Class Role

Implemented Interfaces:
Serializable

public class Role
extends java.lang.Object
implements Serializable

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

Constructor Summary

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.

Method Summary

AgentId
getListener()
Returns the wrapped AgentId.
String
getName()
Returns the role name.
void
setListener(AgentId listener)
Sets the wrapped AgentId.
void
setName(String name)
Sets the role name.
String
toString()

Constructor Details

Role

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

Parameters:
name - the role name.


Role

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

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

Method Details

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.

Parameters:
listener - the wrapped AgentId.


setName

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

Parameters:
name - the role name.


toString

public String toString()


Copyright B) 2004 Scalagent - All rights reserved