|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmadkit.kernel.AbstractAgent
turtlekit.kernel.Turtle
turtlekit.simulations.termites.Termite
public class Termite
Termite
| Field Summary |
|---|
| Fields inherited from class turtlekit.kernel.Turtle |
|---|
East, North, NorthEast, NorthWest, South, SouthEast, SouthWest, West |
| Constructor Summary | |
|---|---|
Termite()
the first time behavior of a turtle will be "searchForChip" |
|
| Method Summary | |
|---|---|
java.lang.String |
findEmptyPatch()
findEmptyPatch is a one time step behavior corresponding to a list of actions. |
java.lang.String |
findNewPile()
another one step behavior |
java.lang.String |
getAway()
|
java.lang.String |
searchForChip()
|
void |
setup()
it is compulsory to redefine this method. |
| Methods inherited from class turtlekit.kernel.Turtle |
|---|
activate, bk, countTurtlesAt, countTurtlesHere, createTurtle, defaultAction, die, distance, distanceNowrap, dropMark, dropMarkAt, dx, dy, end, fd, getColor, getHeading, getHidden, getMark, getMarkAt, getPatchColor, getPatchColorAt, getPatchVariable, getPatchVariableAt, getSimulationGroup, getTurtleWithID, getWorldHeight, getWorldWidth, giveUpRole, home, incrementPatchVariable, incrementPatchVariableAt, isMarkPresent, isMarkPresentAt, isPlayingRole, moveTo, moveTo, mySelf, playRole, randomHeading, realX, realY, setColor, setHeading, setHidden, setPatchColor, setPatchColorAt, setX, setXY, setY, toString, towards, towardsNowrap, turnLeft, turnRight, turtlesAt, turtlesHere, xcor, ycor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Termite()
| Method Detail |
|---|
public void setup()
setup in class Turtlepublic java.lang.String getAway()
public java.lang.String searchForChip()
public java.lang.String findNewPile()
public java.lang.String findEmptyPatch()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||