Contents
Class Actions
java.lang.Object
madkit.action.Actions
-
Method Summary
Modifier and TypeMethodDescriptionstatic ActionGroup
createAgentActionGroupFor
(Agent agent) Creates an action group for the given agent.static ActionGroup
createMadkitActionGroupFor
(Agent agent) Creates an MaDKit actions group for the given agent.createMDKActionsListFor
(Agent agent) Creates an action group for the given agent.static ActionGroup
createSchedulerActionGroup
(Scheduler<?> scheduler) Creates an action group for the given scheduler agent.static ObservableList
<Action> getMadkitActions
(Agent agent) Returns the MaDKit actions for the given agent.
-
Method Details
-
createSchedulerActionGroup
Creates an action group for the given scheduler agent. The action group includes actions for running and pausing the scheduler.- Parameters:
scheduler
- the scheduler agent for which to create the action group- Returns:
- an ActionGroup containing the actions for the scheduler
-
createMadkitActionGroupFor
Creates an MaDKit actions group for the given agent. The action group includes actions for various MaDKit operations.- Parameters:
agent
- the agent for which to create the action- Returns:
- an action group containing the default MaDKit actions for the agent
-
createAgentActionGroupFor
Creates an action group for the given agent. The action group includes actions for launching and killing the agent.- Parameters:
agent
- the agent for which to create the action group- Returns:
- an action group containing the default actions for the agent
-
createMDKActionsListFor
Creates an action group for the given agent. The action group includes actions for launching and killing the agent, and for restarting, copying or quitting the MaDKit instance.- Parameters:
agent
- the agent for which to create the action group- Returns:
- a list of actions for the agent
-
getMadkitActions
Returns the MaDKit actions for the given agent.- Parameters:
agent
- the agent for which to get the actions- Returns:
- an ObersvableList of actions for the agent
-