public enum AgentAction extends Enum<AgentAction>
Enum Constant and Description |
---|
BROADCAST_MESSAGE |
CREATE_GROUP |
KILL_AGENT |
LAUNCH_AGENT |
LEAVE_GROUP |
LEAVE_ROLE |
RELOAD |
REQUEST_ROLE |
SEND_MESSAGE |
Modifier and Type | Method and Description |
---|---|
Action |
getActionFor(AbstractAgent agent,
Object... parameters)
Builds an action that will make the agent do the
corresponding behavior
|
ActionInfo |
getActionInfo() |
static AgentAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgentAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentAction LAUNCH_AGENT
public static final AgentAction RELOAD
public static final AgentAction CREATE_GROUP
public static final AgentAction REQUEST_ROLE
public static final AgentAction LEAVE_ROLE
public static final AgentAction LEAVE_GROUP
public static final AgentAction SEND_MESSAGE
public static final AgentAction BROADCAST_MESSAGE
public static final AgentAction KILL_AGENT
public static AgentAction[] values()
for (AgentAction c : AgentAction.values()) System.out.println(c);
public static AgentAction valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic ActionInfo getActionInfo()
public Action getActionFor(AbstractAgent agent, Object... parameters)
agent
- the agent on which this action
will operateparameters
- the info to be usedFabien Michel, Olivier Gutknecht, Jacques Ferber