turtlekit.simulations.gameoflife
Class GameOfLife

java.lang.Object
  extended by madkit.kernel.AbstractAgent
      extended by madkit.kernel.Agent
          extended by turtlekit.kernel.Launcher
              extended by turtlekit.simulations.gameoflife.GameOfLife
All Implemented Interfaces:
java.io.Serializable, java.lang.Runnable

public class GameOfLife
extends Launcher

the game of life

Version:
1.1 23/02/2001
Author:
Fabien MICHEL
See Also:
Serialized Form

Field Summary
 
Fields inherited from class turtlekit.kernel.Launcher
COMMUNITY
 
Constructor Summary
GameOfLife()
           
 
Method Summary
 void addSimulationAgents()
          No turtles just two viewers to view indenpendantly the diffusions of flavor and flavor2
 double getAlivePercentage()
           
 boolean getDoubleGame()
           
protected  void initializePatchVariables()
          This method is where patch variables and their properties have to be defined.
 void setAlivePercentage(double add)
           
 void setDoubleGame(boolean add)
           
 
Methods inherited from class turtlekit.kernel.Launcher
activate, addMyScheduler, addObserver, addObserver, addPatchVariable, addTurtle, addTurtle, addViewer, addViewer, addViewer, addViewer, addViewer, addViewer, end, getCellSize, getHeight, getSimulationName, getWidth, initGUI, launchPython, live, setCellSize, setCyclePause, setHeight, setSimulationName, setWidth, setWrapModeOn, stopOrResumeSimulation
 
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, 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, windowClosing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GameOfLife

public GameOfLife()
Method Detail

setAlivePercentage

public void setAlivePercentage(double add)

getAlivePercentage

public double getAlivePercentage()

setDoubleGame

public void setDoubleGame(boolean add)

getDoubleGame

public boolean getDoubleGame()

initializePatchVariables

protected void initializePatchVariables()
This method is where patch variables and their properties have to be defined. Once having define a Flavor Object(new Falvor(name)) and its properties (with setDiffuseCoef, setEvaporation and setDefaultValue) you have to add it to the patches with the addPatchFlavor method of the Launcher, Be careful use this method only when override the initializePatchVariables method.

Overrides:
initializePatchVariables in class Launcher

addSimulationAgents

public void addSimulationAgents()
No turtles just two viewers to view indenpendantly the diffusions of flavor and flavor2

Specified by:
addSimulationAgents in class Launcher


Copyright © Madkit Team (O. Gutknecht, J. Ferber, F. Michel et al.) All Rights Reserved.