org.nlogo.agent
Class AgentSet

java.lang.Object
  extended by org.nlogo.agent.AgentSet
Direct Known Subclasses:
ArrayAgentSet, TreeAgentSet

public abstract class AgentSet
extends Object


Nested Class Summary
static interface AgentSet.Iterator
           
 
Method Summary
abstract  void add(Agent agent)
           
abstract  Agent agent(long i)
           
 void clearDirected()
           
abstract  boolean contains(Agent agent)
           
abstract  int count()
           
 boolean equalAgentSets(AgentSet otherSet)
           
 byte getAgentBit()
           
 boolean isDirected()
           
abstract  boolean isEmpty()
           
 boolean isUndirected()
           
abstract  AgentSet.Iterator iterator()
           
 String printName()
           
abstract  Agent randomOne(int precomputedCount, int random)
           
 AgentSet randomSubset(int resultSize, int precomputedCount, org.nlogo.util.MersenneTwisterFast randomerizer)
           
 void setDirected(boolean directed)
           
abstract  AgentSet.Iterator shufflerator(org.nlogo.util.MersenneTwisterFast random)
           
abstract  Agent[] toArray()
           
abstract  ArrayList toArrayList()
           
abstract  LogoList toLogoList()
           
 Class type()
           
 World world()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAgentBit

public byte getAgentBit()

type

public Class type()

world

public World world()

isDirected

public boolean isDirected()

isUndirected

public boolean isUndirected()

setDirected

public void setDirected(boolean directed)

clearDirected

public void clearDirected()

count

public abstract int count()

equalAgentSets

public boolean equalAgentSets(AgentSet otherSet)

printName

public String printName()

isEmpty

public abstract boolean isEmpty()

agent

public abstract Agent agent(long i)

add

public abstract void add(Agent agent)

contains

public abstract boolean contains(Agent agent)

randomOne

public abstract Agent randomOne(int precomputedCount,
                                int random)

randomSubset

public AgentSet randomSubset(int resultSize,
                             int precomputedCount,
                             org.nlogo.util.MersenneTwisterFast randomerizer)

toLogoList

public abstract LogoList toLogoList()

toArrayList

public abstract ArrayList toArrayList()

toArray

public abstract Agent[] toArray()

iterator

public abstract AgentSet.Iterator iterator()

shufflerator

public abstract AgentSet.Iterator shufflerator(org.nlogo.util.MersenneTwisterFast random)