|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmadkit.kernel.AbstractAgent
edu.turtlekit2.kernel.agents.Turtle
edu.turtlekit2.demos.termites.Termite
public class Termite
Adapted from the termites simulation of TurtleKit (v1).
Field Summary |
---|
Fields inherited from class edu.turtlekit2.kernel.agents.Turtle |
---|
angle, angleCos, angleSin, color, East, hidden, initMethod, North, NorthEast, NorthWest, position, South, SouthEast, SouthWest, TURTLE_DEFAULT_ROLE, West, x, y |
Constructor Summary | |
---|---|
Termite()
the first time behavior of a turtle will be "searchForChip" |
Method Summary | |
---|---|
String |
findEmptyPatch()
findEmptyPatch is a one time step behavior corresponding to a list of actions. |
String |
findNewPile()
another one step behavior |
String |
getAway()
|
String |
searchForChip()
|
void |
setup()
it is compulsory to redefine this method. |
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, hashCode, initGUI, isBelongingToGroup, isBelongingToGroup, isCommunity, isGroup, isGroup, isMemberOf, isMemberOf, isMessageBoxEmpty, isRole, isRole, joinGroup, killAgent, launchAgent, launchAgent, leaveGroup, leaveGroup, leaveRole, leaveRole, nextMessage, print, println, receiveMessage, 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, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Termite()
Method Detail |
---|
public void setup()
setup
in class Turtle
public String getAway()
public String searchForChip()
public String findNewPile()
public String findEmptyPatch()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |