|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmadkit.kernel.AbstractAgent
madkit.kernel.Agent
madkit.kernel.Scheduler
turtlekit.kernel.TurtleScheduler
public class TurtleScheduler
The TurtleKit scheduler
Constructor Summary | |
---|---|
TurtleScheduler(java.lang.String group)
|
Method Summary | |
---|---|
void |
activate()
This method is initially called when the micro-kernel registers the agent. |
void |
end()
This method is called by the agent micro-kernel at the end of the agent lifecycle. |
protected void |
executeDiffusion()
|
protected void |
executeDisplay()
|
protected void |
executeEvaporation()
|
protected void |
executeObservers()
|
protected void |
executeTurtles()
|
protected void |
incrementeIteration()
|
void |
live()
This method defines the main behavior for threaded agents. |
void |
scheduleWorld()
This method can be overriden to define a special kind of schedule Default schedule is : public void scheduleWorld()
{
executeTurtles();
executeDiffusion();
executeEvaporation();
executeObservers();
executeDisplay();
incrementeIteration();
} |
Methods inherited from class madkit.kernel.Scheduler |
---|
addActivator, addActivator, getActivators, removeActivator, removeAllActivators |
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TurtleScheduler(java.lang.String group)
Method Detail |
---|
public final void activate()
AbstractAgent
activate
in class AbstractAgent
public final void live()
Agent
live
in class Agent
public void end()
AbstractAgent
end
in class Scheduler
protected final void executeTurtles()
protected final void executeDiffusion()
protected final void executeEvaporation()
protected final void executeObservers()
protected final void executeDisplay()
protected final void incrementeIteration()
public void scheduleWorld()
public void scheduleWorld()
{
executeTurtles();
executeDiffusion();
executeEvaporation();
executeObservers();
executeDisplay();
incrementeIteration();
}
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |