public class Group extends Object
Modifier and Type | Method and Description |
---|---|
void |
addRoleForType(String typename,
String rolename)
Add a role name for an agent type name.
|
void |
assignRole(IComponentIdentifier aid,
String rolename)
Assign an agent to a role.
|
IComponentIdentifier[] |
getAgentsForRole(String rolename)
Get the agents with a given role.
|
String |
getName()
Get the name of the group.
|
String[] |
getRolesForType(String typename)
Get the role names for an agent type name.
|
void |
removeRoleForType(String typename,
String rolename)
Remove a role name for an agent type name.
|
void |
unassignRole(IComponentIdentifier aid,
String rolename)
Remove an agent from a role.
|
public Group(String name)
type
- The group type.public String getName()
public void addRoleForType(String typename, String rolename)
typename
- The agent type name.rolename
- The role name.public void removeRoleForType(String typename, String rolename)
typename
- The agent type name.rolename
- The role name.public String[] getRolesForType(String typename)
typename
- The agent type name.public void assignRole(IComponentIdentifier aid, String rolename)
aid
- The agent id.rolename
- The role name.public void unassignRole(IComponentIdentifier aid, String rolename)
aid
- The agent id.rolename
- The role name.public IComponentIdentifier[] getAgentsForRole(String rolename)
rolename
- The role name.Copyright © 2013. All Rights Reserved.