ArrayAgentSet

org.nlogo.agent.ArrayAgentSet
class ArrayAgentSet(kind: AgentKind, printName: String, val array: Array[Agent]) extends IndexedAgentSet

Attributes

Source
ArrayAgentSet.scala
Graph
Supertypes
class AgentSet
trait AgentSet
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def checkCount(checkValue: Int, check: (Int, Int) => Boolean): Boolean

Attributes

Definition Classes
Source
ArrayAgentSet.scala
override def contains(agent: Agent): Boolean

Attributes

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

Attributes

Definition Classes
Source
ArrayAgentSet.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
ArrayAgentSet.scala
override def getByIndex(index: Int): Agent

Attributes

Definition Classes
Source
ArrayAgentSet.scala
override def isEmpty: Boolean

Attributes

Definition Classes
Source
ArrayAgentSet.scala
override def iterator: AgentIterator

Attributes

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

Attributes

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

Attributes

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

Attributes

Definition Classes
Source
ArrayAgentSet.scala
override def shufflerator(rng: MersenneTwisterFast): AgentIterator

Attributes

Definition Classes
Source
ArrayAgentSet.scala
override def toLogoList: LogoList

Attributes

Definition Classes
Source
ArrayAgentSet.scala

Inherited methods

def 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

Inherited from:
AgentSet
Source
AgentSet.scala

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

Inherited fields

val agentBit: Byte

Attributes

Inherited from:
AgentSet
Source
AgentSet.scala

Attributes

Inherited from:
AgentSet
Source
AgentSet.scala