|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmadkit.kernel.AbstractAgent
madkit.kernel.Agent
turtlekit.kernel.Launcher
turtlekit.simulations.gameoflife.GameOfLife
public class GameOfLife
the game of life
| 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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GameOfLife()
| Method Detail |
|---|
public void setAlivePercentage(double add)
public double getAlivePercentage()
public void setDoubleGame(boolean add)
public boolean getDoubleGame()
protected void initializePatchVariables()
initializePatchVariables in class Launcherpublic void addSimulationAgents()
addSimulationAgents in class Launcher
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||