Class SimuEnvironment
java.lang.Object
madkit.kernel.Agent
madkit.simulation.SimuAgent
madkit.kernel.Watcher
madkit.simulation.SimuEnvironment
- Direct Known Subclasses:
Environment2D
This class represents an environment in which agents evolve. It is a specialized
watcher that should be extended to implement the environment of the simulated agents.
-
Nested Class Summary
Nested classes/interfaces inherited from class madkit.kernel.Agent
Agent.ReturnCode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
On activation, the environment is added to the simulation engine and requests theSimuOrganization.ENVIRONMENT_ROLE
in both theSimuOrganization.MODEL_GROUP
and theSimuOrganization.ENGINE_GROUP
.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
-
SimuEnvironment
public SimuEnvironment()
-
-
Method Details
-
onActivation
protected void onActivation()On activation, the environment is added to the simulation engine and requests theSimuOrganization.ENVIRONMENT_ROLE
in both theSimuOrganization.MODEL_GROUP
and theSimuOrganization.ENGINE_GROUP
.- Overrides:
onActivation
in classWatcher
-