Package madkit.action
Class GlobalAction
java.lang.Object
madkit.action.GlobalAction
Global actions that can be triggered from anywhere during execution.
- Since:
- MaDKit 5.0.1
- Version:
- 0.9
- Author:
- Fabien Michel
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BooleanAction
An action that enable or disable the debugging mode.static final Action
An action that Launches the jconsole tool if it is available.static final Action
An action that launch the main method of the class which name is obtained usingActionEvent.getActionCommand()
on the received event, i.e. the action command of the button.static final Action
An action that launches a new MaDKit instance using the configuration file which name is obtained usingActionEvent.getActionCommand()
on the received event, i.e. the action command of the button.static final Action
Opens a dialog for selecting the jar file to add.static final Action
Load the jar files which are in the "demos" directory if there is one in the working directorystatic final Action
An action that create a log file for each agent having a nonnull
logger. -
Method Summary
-
Field Details
-
JCONSOLE
An action that Launches the jconsole tool if it is available. It is set tonull
if jconsole is unavailable. jconsole is available on environments containing the oracle JDK. -
DEBUG
An action that enable or disable the debugging mode. When activated, all the active agent loggers set their level toLevel.ALL
, so does theMadkit.LevelOption.agentLogLevel
in the availableMadkitProperties
. When disabled, everything is restored atLevel.INFO
. -
LOG_FILES
An action that create a log file for each agent having a nonnull
logger. -
LAUNCH_MAIN
An action that launch the main method of the class which name is obtained usingActionEvent.getActionCommand()
on the received event, i.e. the action command of the button. -
LOAD_JAR_FILE
Opens a dialog for selecting the jar file to add. -
LOAD_LOCAL_DEMOS
Load the jar files which are in the "demos" directory if there is one in the working directory -
LAUNCH_MDK_CONFIG
An action that launches a new MaDKit instance using the configuration file which name is obtained usingActionEvent.getActionCommand()
on the received event, i.e. the action command of the button.
-