org.nlogo.agent
Class AgentSet
java.lang.Object
org.nlogo.agent.AgentSet
- Direct Known Subclasses:
- ArrayAgentSet, TreeAgentSet
public abstract class AgentSet
- extends Object
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)