public enum GUIManagerAction extends Enum<GUIManagerAction>
Action
using
getActionFor(AbstractAgent, Object...)
.Action
Enum Constant and Description |
---|
CONNECT_TO_IP
For connecting kernels in a wide area network
|
DEICONIFY_ALL
Deiconify all the agent frames
|
DISPOSE_AGENT_GUI
Requests an agent frame disposal: This will kill the agent.
|
ICONIFY_ALL
Iconify all the agent frames
|
KILL_AGENTS
Kills all the agents having a GUI
|
SETUP_AGENT_GUI
Requests an agent frame creation.
|
Modifier and Type | Method and Description |
---|---|
Action |
getActionFor(AbstractAgent agent,
Object... commandOptions)
Returns an Action that will send to the GUI manager the corresponding request.
|
ActionInfo |
getActionInfo() |
static GUIManagerAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GUIManagerAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GUIManagerAction CONNECT_TO_IP
public static final GUIManagerAction ICONIFY_ALL
public static final GUIManagerAction DEICONIFY_ALL
public static final GUIManagerAction KILL_AGENTS
public static final GUIManagerAction SETUP_AGENT_GUI
SETUP_AGENT_GUI.getActionFor(anAgent, targetedAgent);
They could be identical.public static final GUIManagerAction DISPOSE_AGENT_GUI
SETUP_AGENT_GUI.getActionFor(anAgent, targetedAgent);
They could be identical.public static GUIManagerAction[] values()
for (GUIManagerAction c : GUIManagerAction.values()) System.out.println(c);
public static GUIManagerAction 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 Action getActionFor(AbstractAgent agent, Object... commandOptions)
KILL_AGENTS.getActionFor(anAgent);
This will create an agent that will make anAgent
send a message to the gui manager
asking the kill of all GUI agents.agent
- the agent for which this Action will be createdcommandOptions
- optional information related to the action itselfpublic ActionInfo getActionInfo()
Fabien Michel, Olivier Gutknecht, Jacques Ferber - February 17 2020