Class Actions

java.lang.Object
madkit.action.Actions

public class Actions extends Object
Utility class for creating Action for agents.
  • Method Details Link icon

    • createSchedulerActionGroup Link icon

      public static ActionGroup createSchedulerActionGroup(Scheduler<?> scheduler)
      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 Link icon

      public static ActionGroup createMadkitActionGroupFor(Agent agent)
      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 Link icon

      public static ActionGroup createAgentActionGroupFor(Agent agent)
      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 Link icon

      public static List<Action> createMDKActionsListFor(Agent agent)
      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 Link icon

      public static ObservableList<Action> getMadkitActions(Agent agent)
      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