edu.turtlekit2.kernel.agents
Class TurtleScheduler

java.lang.Object
  extended by madkit.kernel.AbstractAgent
      extended by madkit.kernel.Agent
          extended by madkit.kernel.Scheduler
              extended by edu.turtlekit2.kernel.agents.TurtleScheduler
All Implemented Interfaces:
Serializable, Runnable

public class TurtleScheduler
extends madkit.kernel.Scheduler

The TurtleKit scheduler

Version:
3.0 20/05/2005
Author:
Fabien MICHEL
See Also:
SimulationRunner, Serialized Form

Field Summary
 int delay
           
 String group
           
 int iteration
           
static int PAUSED
           
static int RUNNING
           
 int schedulingState
           
static int STEP
           
static int STOPPED
           
 
Constructor Summary
TurtleScheduler(String group)
           
 
Method Summary
 void activate()
           
 void end()
           
 void importActivators(Collection<madkit.kernel.Activator<? extends madkit.kernel.AbstractAgent>> collec)
           
 void initDefaultActivators()
           
 void live()
           
 void paused()
           
 void running()
           
 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(); }
 void setExistingFlavors(boolean existingFlavors)
           
 void stoped()
           
 
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 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

RUNNING

public static final int RUNNING
See Also:
Constant Field Values

PAUSED

public static final int PAUSED
See Also:
Constant Field Values

STOPPED

public static final int STOPPED
See Also:
Constant Field Values

STEP

public static final int STEP
See Also:
Constant Field Values

schedulingState

public int schedulingState

group

public String group

iteration

public int iteration

delay

public int delay
Constructor Detail

TurtleScheduler

public TurtleScheduler(String group)
Method Detail

setExistingFlavors

public void setExistingFlavors(boolean existingFlavors)

activate

public void activate()
Overrides:
activate in class madkit.kernel.AbstractAgent

live

public void live()
Overrides:
live in class madkit.kernel.Agent

running

public void running()

paused

public void paused()

stoped

public void stoped()

end

public void end()
Overrides:
end in class madkit.kernel.Scheduler

scheduleWorld

public 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(); }


initDefaultActivators

public void initDefaultActivators()

importActivators

public void importActivators(Collection<madkit.kernel.Activator<? extends madkit.kernel.AbstractAgent>> collec)