AgentSet

org.nlogo.agent.AgentSet
See theAgentSet companion object
abstract class AgentSet(val kind: AgentKind, val printName: String, var directed: Directedness) extends AgentSet

Attributes

Companion
object
Source
AgentSet.scala
Graph
Supertypes
trait AgentSet
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

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

Attributes

Source
AgentSet.scala

Attributes

Source
AgentSet.scala

Attributes

Source
AgentSet.scala
def randomOne(precomputedCount: Int, random: Int): Agent

Attributes

Source
AgentSet.scala
def randomSubsetGeneral(resultSize: Int, precomputedCount: Int, rng: MersenneTwisterFast): Array[Agent]

Attributes

Source
AgentSet.scala
def randomTwo(precomputedCount: Int, smallRandom: Int, bigRandom: Int): Array[Agent]

Attributes

Source
AgentSet.scala
def shufflerator(rng: MersenneTwisterFast): AgentIterator

Attributes

Source
AgentSet.scala

Attributes

Source
AgentSet.scala

Concrete 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

Source
AgentSet.scala

Attributes

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

Source
AgentSet.scala

Attributes

Returns

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

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

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

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

Attributes

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

Attributes

Source
AgentSet.scala

Inherited and Abstract methods

Attributes

Inherited from:
AgentSet
Source
AgentSet.scala
def count: Int

Returns the number of agents in the set.

Returns the number of agents in the set.

Attributes

Inherited from:
AgentSet
Source
AgentSet.scala

Attributes

Inherited from:
AgentSet
Source
AgentSet.scala

Concrete fields

val agentBit: Byte

Attributes

Source
AgentSet.scala

Attributes

Source
AgentSet.scala

Returns the type of agents in the AgentSet.

Returns the type of agents in the AgentSet.

Attributes

Source
AgentSet.scala

Returns the name of the AgentSet, for all turtles, patches, or links returns its type, for breeds returns the breed name for all other sets returns an empty string

Returns the name of the AgentSet, for all turtles, patches, or links returns its type, for breeds returns the breed name for all other sets returns an empty string

Attributes

Source
AgentSet.scala