public enum KernelAction extends Enum<KernelAction>
Action using getActionFor(AbstractAgent, Object...).| Enum Constant and Description |
|---|
CONNECT_TO_IP
For connecting kernels in a wide area network.
|
CONNECT_WEB_REPO
Connection to the MaDKit web repository
|
CONSOLE
Makes a redirection of the out and err to a MaDKit agent.
|
COPY
Clone the kernel with its initial options
|
EXIT
Close the kernel
|
KILL_AGENT
Kill an agent
|
LAUNCH_AGENT
Launch an agent
|
LAUNCH_MAS
Launch a MAS configuration
|
LAUNCH_NETWORK
Start the network
|
LAUNCH_XML
Launch an XML configuration
|
RESTART
Restart the kernel with its initial options
|
STOP_NETWORK
Stop the network
|
| Modifier and Type | Method and Description |
|---|---|
Action |
getActionFor(AbstractAgent agent,
Object... parameters)
Builds an action that will make the kernel do the corresponding operation if possible.
|
ActionInfo |
getActionInfo() |
static KernelAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KernelAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KernelAction EXIT
public static final KernelAction COPY
public static final KernelAction RESTART
public static final KernelAction LAUNCH_NETWORK
public static final KernelAction STOP_NETWORK
public static final KernelAction CONSOLE
public static final KernelAction LAUNCH_AGENT
public static final KernelAction LAUNCH_MAS
public static final KernelAction LAUNCH_XML
public static final KernelAction KILL_AGENT
public static final KernelAction CONNECT_WEB_REPO
public static final KernelAction CONNECT_TO_IP
InetAddress.public static KernelAction[] values()
for (KernelAction c : KernelAction.values()) System.out.println(c);
public static KernelAction 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... parameters)
agent - the agent that will send the message to the kernelparameters - the infopublic ActionInfo getActionInfo()
Fabien Michel, Olivier Gutknecht, Jacques Ferber - February 17 2020