edu.turtlekit2.kernel.agents
Class TurtleProbe

java.lang.Object
  extended by madkit.kernel.Probe<Turtle>
      extended by 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

Constructor Summary
TurtleProbe(String group, String role)
          build a turtleProbe on the specified group/role couple
 
Method Summary
 A getAgentNb(int arg0)
           
 ListIterator<A> getAgentsIterator()
           
 String getCommunity()
           
 List<A> getCurrentAgentsList()
           
 String getGroup()
           
 String getRole()
           
 List<A> getShuffledList()
           
 Turtle[] getTurtles()
           
 int nbOfTurtles()
           
 int numberOfAgents()
           
 
Methods inherited from class madkit.kernel.Probe
initialize, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TurtleProbe

public TurtleProbe(String group,
                   String role)
build a turtleProbe on the specified group/role couple

Method Detail

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()