Uses of Class
madkit.kernel.AbstractAgent
Package
Description
Contains enumerations useful for (1) interacting with
agents and (2) building customized GUI.
Contains classes for Agent GUI authoring in MaDKit.
Contains classes for building MaDKit GUI menus.
Contains classes for building MaDKit GUI toolbars.
Provides classes that are fundamental to the design of MaDKit applications.
Contains message classes useful for monitoring MaDKit kernel events.
Contains activators for simulation authoring.
Contains classes designed for encapsulating simulation models.
Contains probes for simulation authoring.
Contains specialized Scheduler agents
Contains default viewer classes for simulation visualization.
-
Uses of AbstractAgent in madkit.action
Modifier and TypeMethodDescriptionAgentAction.getActionFor
(AbstractAgent agent, Object... parameters) Builds an action that will make the agent do the corresponding behaviorGUIManagerAction.getActionFor
(AbstractAgent agent, Object... commandOptions) Returns an Action that will send to the GUI manager the corresponding request.KernelAction.getActionFor
(AbstractAgent agent, Object... parameters) Builds an action that will make the kernel do the corresponding operation if possible.LoggingAction.getActionFor
(AbstractAgent agent, Object... parameters) Builds an action that will make the agent do the corresponding behavior -
Uses of AbstractAgent in madkit.gui
Modifier and TypeClassDescriptionclass
This agent displays standard out and err prints in its GUI.Modifier and TypeMethodDescriptionstatic void
SwingUtil.addMaDKitActionsTo
(Container menuOrToolBar, AbstractAgent agent) Adds to a menu or toolbar the following actions:KernelAction.EXIT
KernelAction.COPY
KernelAction.RESTART
KernelAction.LAUNCH_NETWORK
KernelAction.STOP_NETWORK
GUIManagerAction.CONNECT_TO_IP
GlobalAction.JCONSOLE
KernelAction.CONSOLE
GlobalAction.DEBUG
GlobalAction.LOAD_LOCAL_DEMOS
GlobalAction.LOAD_JAR_FILE
GUIManagerAction.ICONIFY_ALL
GUIManagerAction.DEICONIFY_ALL
GUIManagerAction.KILL_AGENTS
static AgentFrame
AgentFrame.createAgentFrame
(AbstractAgent agent) Override to customize the agent frame that should be created by the GUI engine.MDKDesktopFrame.getMenuBar
(AbstractAgent guiManager) Builds tool bar for the desktop frame.MDKDesktopFrame.getToolBar
(AbstractAgent guiManager) Builds tool bar for the desktop frame.static void
AgentStatusPanel.remove
(AbstractAgent abstractAgent) ModifierConstructorDescriptionprotected
AgentFrame
(AbstractAgent agent) TThis constructor is protected because this class should not be directly instantiated as it is used by the MaDKit GUI manager.OutputPanel
(AbstractAgent agent) Builds the panel for the agent -
Uses of AbstractAgent in madkit.gui.toolbar
ModifierConstructorDescriptionMadkitToolBar
(AbstractAgent agent) Creates aJToolBar
featuring:KernelAction.EXIT
KernelAction.COPY
KernelAction.RESTART
KernelAction.LAUNCH_NETWORK
KernelAction.STOP_NETWORK
GUIManagerAction.CONNECT_TO_IP
GlobalAction.JCONSOLE
KernelAction.CONSOLE
GlobalAction.DEBUG
GlobalAction.LOAD_LOCAL_DEMOS
GlobalAction.LOAD_JAR_FILE
GUIManagerAction.ICONIFY_ALL
GUIManagerAction.DEICONIFY_ALL
GUIManagerAction.KILL_AGENTS
-
Uses of AbstractAgent in madkit.kernel
Modifier and TypeClassDescriptionclass
Activator<A extends AbstractAgent>
This class defines a tool for scheduling mechanism.class
Probe<A extends AbstractAgent>
This class defines a watcher's generic probe.Modifier and TypeClassDescriptionclass
The super class of all MaDKit threaded agents, v 5.class
Scheduler is the core agent for defining multi-agent based simulations.class
This class defines a generic watcher agent.Modifier and TypeMethodDescriptionAbstractAgent.launchAgent
(String agentClass) Launches a new agent using its full class name.AbstractAgent.launchAgent
(String agentClass, boolean createFrame) Launches a new agent using its full class name.AbstractAgent.launchAgent
(String agentClass, int timeOutSeconds) Launches a new agent using its full class name.AbstractAgent.launchAgent
(String agentClass, int timeOutSeconds, boolean createFrame) Launches a new agent using its full class name and returns when the launched agent has completed itsactivate()
method or when the time out is elapsed.Modifier and TypeMethodDescriptionWatcher.allProbes()
Set<Probe<? extends AbstractAgent>>
Watcher.getProbes()
Returns the probes which have been successfully addedAbstractAgent.launchAgentBucket
(String agentClass, int bucketSize, int cpuCoreNb, String... roles) Optimizes mass agent launching.AbstractAgent.launchAgentBucket
(String agentClass, int bucketSize, String... roles) This has the same effect aslaunchAgentBucket(agentClass, bucketSize, 1, roles)
.Modifier and TypeMethodDescriptionint
AbstractAgent.compareTo
(AbstractAgent other) Compares this agent with the specified agent for order with respect to instantiation time.void
Activator.executeBehaviorOf
(AbstractAgent agent, String behaviorName, Object... args) Executes a specific method on a targeted agent.AbstractAgent.killAgent
(AbstractAgent target) Kills the targeted agent.AbstractAgent.killAgent
(AbstractAgent target, int timeOutSeconds) Kills the targeted agent.Agent.killAgent
(AbstractAgent target, int timeOutSeconds) AbstractAgent.launchAgent
(AbstractAgent agent) Launches a new agent in the MaDKit platform.AbstractAgent.launchAgent
(AbstractAgent agent, boolean createFrame) Launches a new agent in the MaDKit platform.AbstractAgent.launchAgent
(AbstractAgent agent, int timeOutSeconds) Launches a new agent in the MaDKit platform.AbstractAgent.launchAgent
(AbstractAgent agent, int timeOutSeconds, boolean createFrame) Launches a new agent and returns when the agent has completed itsactivate()
method or whentimeOutSeconds
seconds elapsed.Modifier and TypeMethodDescriptionvoid
Scheduler.addActivator
(Activator<? extends AbstractAgent> activator) Adds an activator to the simulation engine.void
Watcher.addProbe
(Probe<? extends AbstractAgent> probe) Adds the probe to the artificial organization so that it starts to probe the agents which are at the corresponding CGR location.void
Scheduler.executeAndLog
(Activator<? extends AbstractAgent> activator, Object... args) Triggers the execute method of thisactivator
and logs it using theLevel.FINER
logging levelstatic Field
Probe.findFieldOn
(Class<? extends AbstractAgent> agentClass, String fieldName) Returns the agent's field namedfieldName
.void
AbstractAgent.launchAgentBucket
(List<? extends AbstractAgent> bucket, int nbOfParallelTasks, String... roles) Similar tolaunchAgentBucket(String, int, String...)
except that the list of agents to launch is given.void
AbstractAgent.launchAgentBucket
(List<? extends AbstractAgent> bucket, String... roles) This call is equivalent to This has the same effect aslaunchAgentBucket(bucket, 1, roles)
, That is only one core will be used for the launch.void
Scheduler.removeActivator
(Activator<? extends AbstractAgent> activator) Removes an activator from the simulation engine.void
Watcher.removeProbe
(Probe<? extends AbstractAgent> probe) Removes the probe from the artificial organization, thus stopping the probing activity.void
Scheduler.setActivatorPriority
(Activator<? extends AbstractAgent> activator, int priority) Sets the priority of anActivator
. -
Uses of AbstractAgent in madkit.message.hook
Modifier and TypeMethodDescriptionAgentLifeEvent.getSource()
The agent which is related to this eventModifierConstructorDescriptionAgentLifeEvent
(HookMessage.AgentActionEvent agentAction, AbstractAgent agent) -
Uses of AbstractAgent in madkit.simulation.activator
Modifier and TypeClassDescriptionclass
DateBasedDiscreteEventActivator<A extends AbstractAgent>
A behavior activator that is designed to work with aDateBasedDiscreteEventScheduler
, that is following a discrete-event simulation scheme.class
DiscreteEventAgentsActivator<A extends AbstractAgent>
An activator that works using a discrete-event simulation scheme.class
GenericBehaviorActivator<A extends AbstractAgent>
An activator that invokes a single method with no parameters on a group of agents. -
Uses of AbstractAgent in madkit.simulation.model
Modifier and TypeClassDescriptionclass
Prototype class that will be used to encapsulate simulation models in a near future.Modifier and TypeMethodDescriptionAbstractModel.getParametersView
(String label, AbstractAgent onInstance) Returns a panel containing sliders operating on all theBoundedRangeModel
fields which are found in this model. -
Uses of AbstractAgent in madkit.simulation.probe
Modifier and TypeClassDescriptionclass
PropertyProbe<A extends AbstractAgent,
T> This probe inspects fields of type T on agents of type A and its subclasses.class
SingleAgentProbe<A extends AbstractAgent,
T> This probe inspects fields of type T on only one agent of type A and its subclasses. -
Uses of AbstractAgent in madkit.simulation.scheduler
Modifier and TypeMethodDescriptionvoid
DateBasedDiscreteEventScheduler.addActivator
(Activator<? extends AbstractAgent> activator) -
Uses of AbstractAgent in madkit.simulation.viewer