TreeAgentSet

org.nlogo.agent.TreeAgentSet
class TreeAgentSet(kind: AgentKind, printName: String) extends AgentSet

Attributes

Source
TreeAgentSet.scala
Graph
Supertypes
class AgentSet
trait AgentSet
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def add(agent: Agent): Unit

It is the caller's responsibility not to add an agent that is already in the set.

It is the caller's responsibility not to add an agent that is already in the set.

Attributes

Source
TreeAgentSet.scala
override def checkCount(checkValue: Int, check: (Int, Int) => Boolean): Boolean

Attributes

Definition Classes
Source
TreeAgentSet.scala
def clear(): Unit

Attributes

Source
TreeAgentSet.scala
override def contains(agent: Agent): Boolean

Attributes

Definition Classes
Source
TreeAgentSet.scala
override def containsSameAgents(otherSet: AgentSet): Boolean

Attributes

Definition Classes
Source
TreeAgentSet.scala
override def count: Int

Returns the number of agents in the set.

Returns the number of agents in the set.

Attributes

Definition Classes
Source
TreeAgentSet.scala
def getAgent(id: AnyRef): Agent

Attributes

Source
TreeAgentSet.scala
override def isEmpty: Boolean

Attributes

Definition Classes
Source
TreeAgentSet.scala
override def iterator: AgentIterator

Attributes

Definition Classes
Source
TreeAgentSet.scala
override def randomOne(precomputedCount: Int, random: Int): Agent

Attributes

Definition Classes
Source
TreeAgentSet.scala
override def randomSubsetGeneral(resultSize: Int, precomputedCount: Int, rng: MersenneTwisterFast): Array[Agent]

Attributes

Definition Classes
Source
TreeAgentSet.scala
override def randomTwo(precomputedCount: Int, smallRandom: Int, bigRandom: Int): Array[Agent]

Attributes

Definition Classes
Source
TreeAgentSet.scala
def remove(key: AnyRef): Unit

Attributes

Source
TreeAgentSet.scala
override def shufflerator(rng: MersenneTwisterFast): AgentIterator

Attributes

Definition Classes
Source
TreeAgentSet.scala
override def toLogoList: LogoList

Attributes

Definition Classes
Source
TreeAgentSet.scala

Inherited methods

Attributes

Inherited from:
AgentSet
Source
AgentSet.scala
def equalAgentSets(otherSet: AgentSet): Boolean

Reports true if this AgentSet and the given AgentSet have the exact same agents

Reports true if this AgentSet and the given AgentSet have the exact same agents

Value parameters

other

the AgentSet to compare to

Attributes

Inherited from:
AgentSet
Source
AgentSet.scala

Attributes

Returns

True if this is a special agentset, such as world.turtle, world.links, world.patches, or a breed.

Inherited from:
AgentSet
Source
AgentSet.scala

Reports true if this is the breed agentset for a directed link breed

Reports true if this is the breed agentset for a directed link breed

Attributes

Inherited from:
AgentSet
Source
AgentSet.scala

Reports true if this is the breed agentset for an undirected link breed

Reports true if this is the breed agentset for an undirected link breed

Attributes

Inherited from:
AgentSet
Source
AgentSet.scala
def randomSubset(resultSize: Int, precomputedCount: Int, rng: MersenneTwisterFast): AgentSet

Attributes

Inherited from:
AgentSet
Source
AgentSet.scala
def setDirected(directed: Boolean): Unit

Attributes

Inherited from:
AgentSet
Source
AgentSet.scala

Concrete fields

override val agents: Iterable[Agent]

Returns an iterable that cn be used to iterate through the agents in this set.

Returns an iterable that cn be used to iterate through the agents in this set.

Attributes

Source
TreeAgentSet.scala

Inherited fields

val agentBit: Byte

Attributes

Inherited from:
AgentSet
Source
AgentSet.scala

Attributes

Inherited from:
AgentSet
Source
AgentSet.scala