edu.turtlekit2.kernel.agents
Class TurtleProbe
java.lang.Object
madkit.kernel.Probe<Turtle>
edu.turtlekit2.kernel.agents.TurtleProbe
public class TurtleProbe
- extends madkit.kernel.Probe<Turtle>
The TurtleProbe class
- Version:
- 3.0 09/10/2001
- Author:
- Fabien MICHEL
Methods inherited from class madkit.kernel.Probe |
initialize, update |
TurtleProbe
public TurtleProbe(String group,
String role)
- build a turtleProbe on the specified group/role couple
getTurtles
public Turtle[] getTurtles()
- Returns:
- an array of the turtles that handle the group/role couple
nbOfTurtles
public int nbOfTurtles()
- Returns:
- the number of turles that handle the group/role couple
getAgentsIterator
public final ListIterator<A> getAgentsIterator()
getShuffledList
public final List<A> getShuffledList()
getCurrentAgentsList
public final List<A> getCurrentAgentsList()
numberOfAgents
public final int numberOfAgents()
getAgentNb
public final A getAgentNb(int arg0)
getCommunity
public final String getCommunity()
getGroup
public final String getGroup()
getRole
public final String getRole()