c

org.nlogo.agent

ArrayAgentSet

class ArrayAgentSet extends IndexedAgentSet

Source
ArrayAgentSet.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ArrayAgentSet
  2. IndexedAgentSet
  3. AgentSet
  4. AgentSet
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ArrayAgentSet(kind: AgentKind, printName: String, array: Array[Agent])

Value Members

  1. val agentBit: Byte
    Definition Classes
    AgentSet
  2. def agents: Iterable[api.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.

    Definition Classes
    AgentSetAgentSet
  3. def clearDirected(): Unit
    Definition Classes
    AgentSet
  4. def contains(agent: api.Agent): Boolean
    Definition Classes
    ArrayAgentSetAgentSet
  5. def containsSameAgents(otherSet: api.AgentSet): Boolean
    Definition Classes
    ArrayAgentSetAgentSet
  6. def count: Int

    Returns the number of agents in the set.

    Returns the number of agents in the set.

    Definition Classes
    ArrayAgentSetAgentSet
  7. var directed: Directedness
    Definition Classes
    AgentSet
  8. def equalAgentSets(otherSet: api.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

    Definition Classes
    AgentSetAgentSet
  9. def getByIndex(index: Int): Agent
    Definition Classes
    ArrayAgentSetIndexedAgentSet
  10. def isBreedSet: Boolean

    returns

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

    Definition Classes
    AgentSet
  11. def isDirected: Boolean

    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

    Definition Classes
    AgentSetAgentSet
  12. def isEmpty: Boolean
    Definition Classes
    ArrayAgentSetAgentSet
  13. def isUndirected: Boolean

    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

    Definition Classes
    AgentSetAgentSet
  14. def iterator: AgentIterator
    Definition Classes
    ArrayAgentSetAgentSet
  15. val kind: AgentKind
    Definition Classes
    AgentSetAgentSet
  16. val printName: String
    Definition Classes
    AgentSetAgentSet
  17. def randomOne(precomputedCount: Int, random: Int): Agent
    Definition Classes
    ArrayAgentSetAgentSet
  18. def randomSubset(resultSize: Int, precomputedCount: Int, rng: MersenneTwisterFast): AgentSet
    Definition Classes
    AgentSet
  19. def randomSubsetGeneral(resultSize: Int, precomputedCount: Int, random: MersenneTwisterFast): Array[Agent]
    Definition Classes
    ArrayAgentSetAgentSet
  20. def randomTwo(precomputedCount: Int, smallRandom: Int, bigRandom: Int): Array[Agent]
    Definition Classes
    ArrayAgentSetAgentSet
  21. def setDirected(directed: Boolean): Unit
    Definition Classes
    AgentSet
  22. def shufflerator(rng: MersenneTwisterFast): AgentIterator
    Definition Classes
    ArrayAgentSetAgentSet
  23. def toLogoList: LogoList
    Definition Classes
    ArrayAgentSetAgentSet