|
||||||||||
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.pheromones.EmitMovingTurtle
public class EmitMovingTurtle
Titre : EmitMovingTurtle
Description : A random moving Turtle emitting flavors.
XML Attributes :
FlavorToEmit1, FlavorToEmit2, etc. : the emitted flavors/pheromones. Can't be omitted.
Quantity1, Quantity2, etc.: the quantity of emitted flavors
Quantity: Override quantity1, etc., all flavors are emitted with this quantity. default is 1000.
Frequency1,Frequency2, etc.: Flavor1 is emitted each "Frequency1" steps. default is 1.
Frequency: Override Frenquency1, etc. default is 1.
Speed: the speed of the turtle. Expressed in distance per step of simulation. default is 1
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 | |
---|---|
EmitMovingTurtle()
|
Method Summary | |
---|---|
String |
behavior()
The turtle moves according to its speed and emits flavors each frequency steps with an amount equal to quantity |
void |
setup()
Parse attributes and initialize the behavior of the turtle |
String |
toString()
toSring 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 EmitMovingTurtle()
Method Detail |
---|
public void setup()
setup
in class Turtle
public String toString()
toString
in class Turtle
public String behavior()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |