Class SimuModel
java.lang.Object
madkit.kernel.Agent
madkit.simulation.SimuAgent
madkit.kernel.Watcher
madkit.simulation.SimuModel
This class is a simulation engine agent that could be used to implement some common
parts of a simulation model.
Moreover, it is a Watcher
agent and can thus use Probe
to monitor the
simulation agents. It can also implement the SimuAgent.onSimulationStart()
method to
perform actions when the simulation starts.
- Since:
- MaDKit 6.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class madkit.kernel.Agent
Agent.ReturnCode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
This method is called when the agent is activated.Methods inherited from class madkit.kernel.Watcher
addProbe, getProbes, onEnd, removeAllProbes, removeProbe, toString
Methods inherited from class madkit.simulation.SimuAgent
createSimuGroup, getCommunity, getEngineGroup, getEnvironment, getLauncher, getModel, getModelGroup, getNextEventDate, getScheduler, getSimuTimer, getViewers, launchAgent, leaveRole, leaveSimuGroup, leaveSimuRole, onSimulationStart, playRole, prng, requestSimuRole
Methods inherited from class madkit.kernel.Agent
activate, broadcast, broadcastWithRole, broadcastWithRoleWaitForReplies, checkAgentAddress, createGroup, createGroup, createGroup, end, equals, executeThisAgent, executeThisAgent, exitOnKill, getAgentsWithRole, getAgentWithRole, getKernelAddress, getKernelConfig, getLogger, getMailbox, getName, getNetworkID, getOrganization, getReplyTo, handleRequestActionMessage, hashCode, isAlive, killAgent, killAgent, launchAgent, launchAgent, leaveGroup, leaveRole, live, nextMessage, onLive, pause, receiveMessage, reload, reply, replyWithRole, requestRole, requestRole, send, send, sendWaitReply, sendWaitReply, sendWithRole, sendWithRole, sendWithRoleWaitReply, sendWithRoleWaitReply, setupDefaultGUI, waitAnswer, waitAnswer, waitNextMessage, waitNextMessage
-
Constructor Details
-
SimuModel
public SimuModel()
-
-
Method Details
-
onActivation
protected void onActivation()This method is called when the agent is activated. It is used to request the roleSimuOrganization.MODEL_ROLE
in the groupSimuOrganization.ENGINE_GROUP
.- Overrides:
onActivation
in classWatcher
-