Package fr.dyade.aaa.agent
Class Role
- java.lang.Object
-
- fr.dyade.aaa.agent.Role
-
- All Implemented Interfaces:
Serializable
public class Role extends Object implements Serializable
A role wraps an AgentId. It is identified by a name.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private AgentIdlistenerThe wrappedAgentId.private StringnameThe role name.private static longserialVersionUIDDefine serialVersionUID for interoperability.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgentIdgetListener()Returns the wrappedAgentId.StringgetName()Returns the role name.voidsetListener(AgentId listener)Sets the wrappedAgentId.voidsetName(String name)Sets the role name.StringtoString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Define serialVersionUID for interoperability.- See Also:
- Constant Field Values
-
listener
private AgentId listener
The wrappedAgentId.
-
name
private String name
The role name.
-
-
Method Detail
-
setListener
public void setListener(AgentId listener)
Sets the wrappedAgentId.- Parameters:
listener- the wrappedAgentId.
-
getListener
public AgentId getListener()
Returns the wrappedAgentId.- Returns:
- the wrapped AgentId.
-
getName
public String getName()
Returns the role name.- Returns:
- the role name.
-
setName
public void setName(String name)
Sets the role name.- Parameters:
name- the role name.
-
-