abstract class Agent extends Observable with api.Agent with Comparable[Agent]

Source
Agent.java
Linear Supertypes
Comparable[Agent], api.Agent, Observable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Agent
  2. Comparable
  3. Agent
  4. Observable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Agent(world: World)

Abstract Value Members

  1. abstract def alpha: Int

    0-255, 0 = invisible, 255 = opaque

    0-255, 0 = invisible, 255 = opaque

    Definition Classes
    Agent
  2. abstract def classDisplayName(): String

    Returns a displayable name of this type of agent (Turtle, Link, Patch, Observer)

    Returns a displayable name of this type of agent (Turtle, Link, Patch, Observer)

    Definition Classes
    AgentAgent
  3. abstract def getAgentBit(): Int
  4. abstract def getAgentClass(): Class[_ <: Agent]
  5. abstract def getBreedVariable(name: String): AnyRef
  6. abstract def getLinkBreedVariable(name: String): AnyRef
  7. abstract def getLinkVariable(vn: Int): AnyRef
  8. abstract def getObserverVariable(vn: Int): AnyRef
  9. abstract def getPatchAtOffsets(dx: Double, dy: Double): Patch
  10. abstract def getPatchVariable(vn: Int): AnyRef
  11. abstract def getTurtleOrLinkVariable(varName: String): AnyRef
  12. abstract def getTurtleVariable(vn: Int): AnyRef
  13. abstract def getVariable(vn: Int): AnyRef

    Returns the value of the variable in the given position of the agent variable array

    Returns the value of the variable in the given position of the agent variable array

    vn

    the index into the agent variable array

    Definition Classes
    AgentAgent
  14. abstract def kind: AgentKind

    Returns the kind of this agent (observer, turtle, patch, or link.

    Returns the kind of this agent (observer, turtle, patch, or link.

    Definition Classes
    Agent
  15. abstract def setBreedVariable(name: String, value: Any): Unit
  16. abstract def setLinkBreedVariable(name: String, value: Any): Unit
  17. abstract def setLinkVariable(vn: Int, value: Double): Unit
  18. abstract def setLinkVariable(vn: Int, value: Any): Unit
  19. abstract def setObserverVariable(vn: Int, value: Any): Unit
  20. abstract def setPatchVariable(vn: Int, value: Double): Unit
  21. abstract def setPatchVariable(vn: Int, value: Any): Unit
  22. abstract def setTurtleOrLinkVariable(varName: String, value: Any): Unit
  23. abstract def setTurtleVariable(vn: Int, value: Double): Unit
  24. abstract def setTurtleVariable(vn: Int, value: Any): Unit
  25. abstract def setVariable(vn: Int, value: Any): Unit

    Sets the variable in the position vn of the agent variable array to value

    Sets the variable in the position vn of the agent variable array to value

    vn

    the index into the agent variable array

    value

    the new value for the variable

    Definition Classes
    AgentAgent
    Exceptions thrown

    api.AgentException If value is the wrong type for the given variable or if you try to change variables that cannot be changed

  26. abstract def shape: String

    Returns the name of the current shape, empty string in the case of patches.

    Returns the name of the current shape, empty string in the case of patches.

    Definition Classes
    Agent
  27. abstract def size: Double

    Returns the size of this agent

    Returns the size of this agent

    Definition Classes
    Agent
  28. abstract def variableName(vn: Int): String

    Returns the name of the variable with the given index.

    Returns the name of the variable with the given index. Works for built-in, *-own, and breed variables. Only added in NetLogo 5.0.6.

    vn

    the index of the variable

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addObserver(arg0: java.util.Observer): Unit
    Definition Classes
    Observable
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clearChanged(): Unit
    Attributes
    protected[java.util]
    Definition Classes
    Observable
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def compareTo(a: Agent): Int
    Definition Classes
    Agent → Comparable
  9. def countObservers(): Int
    Definition Classes
    Observable
  10. def deleteObserver(arg0: java.util.Observer): Unit
    Definition Classes
    Observable
  11. def deleteObservers(): Unit
    Definition Classes
    Observable
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  16. def getVariableCount(): Int
  17. def hasChanged(): Boolean
    Definition Classes
    Observable
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  19. def id(): Long

    Returns the id number of this agent.

    Returns the id number of this agent. The who number in the case of a turtle, index into the array in the case of patches

    Definition Classes
    AgentAgent
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def isPartiallyTransparent(): Boolean
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  25. def notifyObservers(arg0: Any): Unit
    Definition Classes
    Observable
  26. def notifyObservers(): Unit
    Definition Classes
    Observable
  27. def setChanged(): Unit
    Attributes
    protected[java.util]
    Definition Classes
    Observable
  28. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. def variableConstraint(vn: Int, con: ValueConstraint): Unit
  31. def variableConstraint(vn: Int): ValueConstraint
  32. def variables(): Array[AnyRef]

    Returns raw array of all agent variables.

    Returns raw array of all agent variables. Warning: this method is liable to change return type in a future API version.

    Definition Classes
    AgentAgent
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def world(): World

    Returns the world object associated with this agent

    Returns the world object associated with this agent

    Definition Classes
    AgentAgent

Inherited from Comparable[Agent]

Inherited from api.Agent

Inherited from Observable

Inherited from AnyRef

Inherited from Any

Ungrouped