|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmadkit.kernel.AbstractAgent
madkit.kernel.Agent
edu.turtlekit2.kernel.agents.SimulationRunner
public class SimulationRunner
This class launch every agents of a simulation then run it by calling the Scheduler at each step.
TurtleScheduler
,
Serialized FormField Summary | |
---|---|
TurtleEnvironment |
environment
|
boolean |
run
|
TurtleScheduler |
sch
|
Element |
simuDescription
|
String |
simulationGroup
|
boolean |
start
|
Constructor Summary | |
---|---|
SimulationRunner(Element simuDescription,
String simulationName)
|
Method Summary | |
---|---|
void |
activate()
MadKit usage |
void |
end()
MadKit kernel usage. |
void |
launchPython()
|
void |
launchViewer(XMLAttributes att)
|
void |
live()
MadKit kernel usage |
void |
pauseSimulation()
|
void |
setReset()
reseting the simulation. |
void |
setStop()
|
void |
setWrapModeOn(boolean b)
setter for toroidal world usage |
void |
stepByStep()
|
Methods inherited from class madkit.kernel.Agent |
---|
connectAgencyToAgency, createPlace, createPlace, enableMobility, enableMobility, exitImmediatlyOnKill, getAgencyNamed, joinPlace, joinPlace, joinPlace, pause, receiveMessage, run, waitNextMessage, waitNextMessage |
Methods inherited from class madkit.kernel.AbstractAgent |
---|
broadcastMessage, broadcastMessage, connectedWithCommunity, createGroup, createGroup, debug, disposeMyGUI, foundGroup, getAddress, getAgentInformation, getAgentsWithRole, getAgentsWithRole, getAgentWithRole, getAgentWithRole, getAvailableCommunities, getBean, getController, getCurrentKernelAddress, getDebug, getExistingGroups, getExistingGroups, getExistingRoles, getExistingRoles, getGroups, getGUIObject, getMessageBoxSize, getMyGroups, getMyGroups, getMyRoles, getMyRoles, getName, getRoles, hasGUI, hashCode, initGUI, isBelongingToGroup, isBelongingToGroup, isCommunity, isGroup, isGroup, isMemberOf, isMemberOf, isMessageBoxEmpty, isRole, isRole, joinGroup, killAgent, launchAgent, launchAgent, leaveGroup, leaveGroup, leaveRole, leaveRole, nextMessage, print, println, redisplayMyGUI, requestRole, requestRole, requestRole, restoreAgent, sendMessage, sendMessage, sendMessage, setBean, setController, setDebug, setGUIObject, setName, setOutput, setOutputWriter, toString, windowClosing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public String simulationGroup
public Element simuDescription
public TurtleEnvironment environment
public TurtleScheduler sch
public boolean start
public boolean run
Constructor Detail |
---|
public SimulationRunner(Element simuDescription, String simulationName)
Method Detail |
---|
public void launchViewer(XMLAttributes att)
public void launchPython() throws Exception
Exception
public void activate()
activate
in class madkit.kernel.AbstractAgent
public final void live()
live
in class madkit.kernel.Agent
public final void end()
end
in class madkit.kernel.AbstractAgent
public final void setReset()
public final void setWrapModeOn(boolean b)
public void setStop()
public final void stepByStep()
public void pauseSimulation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |