public class Role extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
private AgentId |
listener
The wrapped
AgentId . |
private String |
name
The role name.
|
private static long |
serialVersionUID |
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
private static final long serialVersionUID
private AgentId listener
AgentId
.private String name
public Role(String name)
name
- the role name.public void setListener(AgentId listener)
AgentId
.listener
- the wrapped AgentId
.public AgentId getListener()
AgentId
.public String getName()
public void setName(String name)
name
- the role name.Copyright © 2016 ScalAgent D.T.. All Rights Reserved.