|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmadkit.kernel.AbstractAgent
madkit.kernel.Watcher
turtlekit.kernel.Observer
turtlekit.simulations.gas.GasObserver
public class GasObserver
This agent watch the gas simulation (nb of turtles on right or left)
| Field Summary |
|---|
| Fields inherited from class turtlekit.kernel.Observer |
|---|
envHeight, envWidth, patchGrid |
| Constructor Summary | |
|---|---|
GasObserver(int xWall,
int nbOfTurtle,
int holesize)
|
|
| Method Summary | |
|---|---|
void |
initGUI()
This method is called by the specific external graphic system (as the G-Box) to ask the agent to prepare a graphical interface. |
void |
setup()
override this method to make other initializations,not in constructor |
void |
watch()
override this method to observe the state of the world using turtle tables or/and the patchGrid variable |
| Methods inherited from class turtlekit.kernel.Observer |
|---|
activate, getSimulationGroup |
| Methods inherited from class madkit.kernel.Watcher |
|---|
addProbe, addProbe, end, getProbes, removeAllProbes, removeProbe, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GasObserver(int xWall,
int nbOfTurtle,
int holesize)
| Method Detail |
|---|
public void initGUI()
AbstractAgent
initGUI in class AbstractAgentpublic void setup()
Observer
setup in class Observerpublic void watch()
Observer
watch in class Observer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||