|
||||||||||
| 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.tests.CreationObserver
public class CreationObserver
This agent watch the number of turtles in the cration simulation. A kind of bench to view how many simulated turtles MadKit supports
| Field Summary |
|---|
| Fields inherited from class turtlekit.kernel.Observer |
|---|
envHeight, envWidth, patchGrid |
| Constructor Summary | |
|---|---|
CreationObserver()
|
|
| Method Summary | |
|---|---|
void |
end()
This method is called by the agent micro-kernel at the end of the agent lifecycle. |
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, 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 CreationObserver()
| Method Detail |
|---|
public void initGUI()
AbstractAgent
initGUI in class AbstractAgentpublic void setup()
Observer
setup in class Observerpublic void watch()
Observer
watch in class Observerpublic void end()
AbstractAgent
end in class Watcher
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||