Package | Description |
---|---|
madkit.action |
Contains enumerations useful for (1) interacting with
agents and (2) building customized GUI.
|
madkit.gui |
Contains classes for Agent GUI authoring in MaDKit.
|
madkit.gui.menu |
Contains classes for building MaDKit GUI menus.
|
madkit.gui.toolbar |
Contains classes for building MaDKit GUI toolbars.
|
madkit.kernel |
Provides classes that are fundamental to the design of MaDKit applications.
|
madkit.message.hook |
Contains message classes useful
for monitoring MaDKit kernel events.
|
madkit.simulation |
Contains utilities related with simulation authoring.
|
madkit.simulation.activator |
Contains activators for simulation authoring.
|
madkit.simulation.model |
Contains classes designed for encapsulating simulation models.
|
madkit.simulation.probe |
Contains probes for simulation authoring.
|
madkit.simulation.viewer |
Contains default viewer classes for simulation visualization.
|
Modifier and Type | Method and Description |
---|---|
Action |
KernelAction.getActionFor(AbstractAgent agent,
Object... parameters)
Builds an action that will make the kernel do the
corresponding operation if possible.
|
Action |
GUIManagerAction.getActionFor(AbstractAgent agent,
Object... commandOptions)
Returns an Action that will send to the GUI manager
the corresponding request.
|
Action |
AgentAction.getActionFor(AbstractAgent agent,
Object... parameters)
Builds an action that will make the agent do the
corresponding behavior
|
Modifier and Type | Class and Description |
---|---|
class |
ConsoleAgent
This agent displays standard out and err
prints in its GUI.
|
Modifier and Type | Method and Description |
---|---|
AbstractAgent |
AgentFrame.getAgent() |
Constructor and Description |
---|
AgentFrame(AbstractAgent agent)
TThis constructor is protected because this class
should not be directly instantiated as it is used
by the MaDKit GUI manager.
|
AgentStatusPanel(AbstractAgent a) |
OutputPanel(AbstractAgent agent)
Builds the panel for the agent
|
Modifier and Type | Method and Description |
---|---|
static void |
AgentLogLevelMenu.remove(AbstractAgent abstractAgent) |
static void |
AgentLogLevelMenu.update(AbstractAgent agent)
Update the menu of this agent
|
Constructor and Description |
---|
MadkitToolBar(AbstractAgent agent)
Creates a
JToolBar 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
|
Modifier and Type | Class and Description |
---|---|
class |
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 Type | Class and Description |
---|---|
class |
Agent
The super class of all MaDKit threaded agents, v 5.
|
class |
Scheduler
This class defines a generic threaded scheduler agent.
|
class |
Watcher
This class defines a generic watcher agent.
|
Modifier and Type | Method and Description |
---|---|
AbstractAgent |
AbstractAgent.launchAgent(String agentClass)
Launches a new agent using its full class name.
|
AbstractAgent |
AbstractAgent.launchAgent(String agentClass,
boolean createFrame)
Launches a new agent using its full class name.
|
AbstractAgent |
AbstractAgent.launchAgent(String agentClass,
int timeOutSeconds)
Launches a new agent using its full class name.
|
AbstractAgent |
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 its
activate() method
or when the time out is elapsed. |
Modifier and Type | Method and Description |
---|---|
Set<Probe<? extends AbstractAgent>> |
Watcher.getProbes()
Returns the probes which have been successfully added
|
List<AbstractAgent> |
AbstractAgent.launchAgentBucket(String agentClass,
int bucketSize,
int cpuCoreNb,
String... roles)
Optimizes mass agent launching.
|
List<AbstractAgent> |
AbstractAgent.launchAgentBucket(String agentClass,
int bucketSize,
String... roles)
This has the same effect as
launchAgentBucket(agentClass, bucketSize, 1, roles) . |
Modifier and Type | Method and Description |
---|---|
int |
AbstractAgent.compareTo(AbstractAgent other)
Compares this agent with the specified agent for order with respect to
instantiation time.
|
AbstractAgent.ReturnCode |
AbstractAgent.killAgent(AbstractAgent target)
Kills the targeted agent.
|
AbstractAgent.ReturnCode |
AbstractAgent.killAgent(AbstractAgent target,
int timeOutSeconds)
Kills the targeted agent.
|
AbstractAgent.ReturnCode |
Agent.killAgent(AbstractAgent target,
int timeOutSeconds) |
AbstractAgent.ReturnCode |
AbstractAgent.launchAgent(AbstractAgent agent)
Launches a new agent in the MaDKit platform.
|
AbstractAgent.ReturnCode |
AbstractAgent.launchAgent(AbstractAgent agent,
boolean createFrame)
Launches a new agent in the MaDKit platform.
|
AbstractAgent.ReturnCode |
AbstractAgent.launchAgent(AbstractAgent agent,
int timeOutSeconds)
Launches a new agent in the MaDKit platform.
|
AbstractAgent.ReturnCode |
AbstractAgent.launchAgent(AbstractAgent agent,
int timeOutSeconds,
boolean createFrame)
Launches a new agent and returns when the agent has completed its
activate() method or when
timeOutSeconds seconds elapsed. |
Modifier and Type | Method and Description |
---|---|
void |
Scheduler.addActivator(Activator<? extends AbstractAgent> activator)
Adds an activator to the kernel 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.
|
static Field |
Probe.findFieldOn(Class<? extends AbstractAgent> agentClass,
String fieldName)
Returns the agent's field named
fieldName . |
void |
AbstractAgent.launchAgentBucket(List<? extends AbstractAgent> bucket,
int nbOfParallelTasks,
String... roles)
Similar to
launchAgentBucket(String, int, String...) |
void |
AbstractAgent.launchAgentBucket(List<? extends AbstractAgent> bucket,
String... roles)
This call is equivalent to
This has the same effect as
launchAgentBucket(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 kernel engine.
|
void |
Watcher.removeProbe(Probe<? extends AbstractAgent> probe)
Removes the probe from the artificial organization, thus stopping the probing activity.
|
Modifier and Type | Method and Description |
---|---|
AbstractAgent |
AgentLifeEvent.getSource()
The agent which is related to this event
|
Constructor and Description |
---|
AgentLifeEvent(HookMessage.AgentActionEvent agentAction,
AbstractAgent agent) |
Modifier and Type | Method and Description |
---|---|
static <A extends AbstractAgent> |
AgentsListAnalyzer.getAverageValue(List<A> list,
String fieldName) |
Modifier and Type | Class and Description |
---|---|
class |
GenericBehaviorActivator<A extends AbstractAgent>
An activator that invokes a single method with no parameters on a group of agents.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractModel
Prototype class that will be used to encapsulate simulation models
in a near future.
|
Modifier and Type | Method and Description |
---|---|
JPanel |
AbstractModel.getParametersView(String label,
AbstractAgent onInstance)
Returns a panel containing sliders operating on all the
BoundedRangeModel fields which are found in this model. |
Modifier and Type | Class and Description |
---|---|
class |
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.
|
Modifier and Type | Class and Description |
---|---|
class |
SwingViewer
A very basic simulation viewer agent.
|
Fabien Michel, Olivier Gutknecht, Jacques Ferber - February 12 2016