c

org.nlogo.agent

Observer

class Observer extends Agent with api.Observer

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

Instance Constructors

  1. new Observer(world: World)

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. def alpha(): Int

    0-255, 0 = invisible, 255 = opaque

    0-255, 0 = invisible, 255 = opaque

    Definition Classes
    ObserverAgent
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def assertVariableConstraint(vn: Int, value: Any): Unit
  8. def atHome2D(): Boolean
  9. def atHome3D(): Boolean
  10. 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
    ObserverAgentAgent
  11. def clearChanged(): Unit
    Attributes
    protected[java.util]
    Definition Classes
    Observable
  12. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def compareTo(a: Agent): Int
    Definition Classes
    Agent → Comparable
  14. def countObservers(): Int
    Definition Classes
    Observable
  15. def deleteObserver(arg0: java.util.Observer): Unit
    Definition Classes
    Observable
  16. def deleteObservers(): Unit
    Definition Classes
    Observable
  17. def distance(t: api.Turtle): Double
  18. def distance(agent: api.Agent): Double
  19. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  21. def face(x: Double, y: Double): Unit
  22. def face(agent: api.Agent): Unit
  23. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. def followDistance(): Int
  25. def followOffsetX(): Double
  26. def followOffsetY(): Double
  27. def getAgentBit(): Int
    Definition Classes
    ObserverAgent
  28. def getAgentClass(): Class[Observer]
    Definition Classes
    ObserverAgent
  29. def getBreedVariable(name: String): AnyRef
    Definition Classes
    ObserverAgent
  30. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  31. def getLinkBreedVariable(name: String): AnyRef
    Definition Classes
    ObserverAgent
  32. def getLinkVariable(vn: Int): AnyRef
    Definition Classes
    ObserverAgent
  33. def getObserverVariable(vn: Int): AnyRef
    Definition Classes
    ObserverAgent
  34. def getPatchAtOffsets(dx: Double, dy: Double): Patch
    Definition Classes
    ObserverAgent
  35. def getPatchVariable(vn: Int): AnyRef
    Definition Classes
    ObserverAgent
  36. def getTurtleOrLinkVariable(varName: String): AnyRef
    Definition Classes
    ObserverAgent
  37. def getTurtleVariable(vn: Int): AnyRef
    Definition Classes
    ObserverAgent
  38. 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
    ObserverAgentAgent
  39. def getVariableCount(): Int
    Definition Classes
    Agent
  40. def hasChanged(): Boolean
    Definition Classes
    Observable
  41. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  42. def heading(heading: Double): Unit
  43. def home(): Unit
  44. 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
  45. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  46. def isPartiallyTransparent(): Boolean
    Definition Classes
    Agent
  47. 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
    ObserverAgent
  48. def moveto(otherAgent: Agent): Unit
  49. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  50. final def notify(): Unit
    Definition Classes
    AnyRef
  51. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  52. def notifyObservers(arg0: Any): Unit
    Definition Classes
    Observable
  53. def notifyObservers(): Unit
    Definition Classes
    Observable
  54. def orbitRight(delta: Double): Unit
  55. def orbitUp(delta: Double): Unit
  56. def orientation(): Option[ObserverOrientation]
    Definition Classes
    ObserverObserver
  57. def oxcor(oxcor: Double): Unit
  58. def oxcor(): Double
    Definition Classes
    ObserverObserver
  59. def oxyandzcor(oxcor: Double, oycor: Double, ozcor: Double): Unit
  60. def oycor(oycor: Double): Unit
  61. def oycor(): Double
    Definition Classes
    ObserverObserver
  62. def ozcor(ozcor: Double): Unit
  63. def ozcor(): Double
    Definition Classes
    ObserverObserver
  64. def perspective(perspective: Perspective): Unit
  65. def perspective(): Perspective

    Returns the current perspective

    Returns the current perspective

    Definition Classes
    ObserverObserver
  66. def pitch(pitch: Double): Unit
  67. def resetPerspective(): Unit
  68. def roll(roll: Double): Unit
  69. def rotationPoint(): Vect
  70. def setBreedVariable(name: String, value: Any): Unit
    Definition Classes
    ObserverAgent
  71. def setChanged(): Unit
    Attributes
    protected[java.util]
    Definition Classes
    Observable
  72. def setLinkBreedVariable(name: String, value: Any): Unit
    Definition Classes
    ObserverAgent
  73. def setLinkVariable(vn: Int, value: Double): Unit
    Definition Classes
    ObserverAgent
  74. def setLinkVariable(vn: Int, value: Any): Unit
    Definition Classes
    ObserverAgent
  75. def setObserverVariable(vn: Int, value: Any): Unit
    Definition Classes
    ObserverAgent
  76. def setPatchVariable(vn: Int, value: Double): Unit
    Definition Classes
    ObserverAgent
  77. def setPatchVariable(vn: Int, value: Any): Unit
    Definition Classes
    ObserverAgent
  78. def setPerspective(perspective: Perspective): Unit
    Definition Classes
    ObserverObserver
  79. def setRotationPoint(agent: api.Agent): Unit
  80. def setRotationPoint(x: Double, y: Double, z: Double): Unit
  81. def setRotationPoint(v: Vect): Unit
  82. def setTurtleOrLinkVariable(varName: String, value: Any): Unit
    Definition Classes
    ObserverAgent
  83. def setTurtleVariable(vn: Int, value: Double): Unit
    Definition Classes
    ObserverAgent
  84. def setTurtleVariable(vn: Int, value: Any): Unit
    Definition Classes
    ObserverAgent
  85. 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
    ObserverAgentAgent
    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

  86. 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
    ObserverAgent
  87. def size(): Double

    Returns the size of this agent

    Returns the size of this agent

    Definition Classes
    ObserverAgent
  88. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  89. def targetAgent(): api.Agent

    Returns the currently watched or followed agent (or nobody)

    Returns the currently watched or followed agent (or nobody)

    Definition Classes
    ObserverObserver
  90. def toString(): String
    Definition Classes
    Observer → AnyRef → Any
  91. def translate(thetaX: Double, thetaY: Double): Unit
  92. def updatePosition(): Boolean
  93. def variableConstraint(vn: Int, con: ValueConstraint): Unit
    Definition Classes
    Agent
  94. def variableConstraint(vn: Int): ValueConstraint
    Definition Classes
    Agent
  95. def variableIndex(name: String): Int
  96. 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

    Definition Classes
    ObserverAgent
  97. 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
  98. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  99. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  100. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  101. def world(): World

    Returns the world object associated with this agent

    Returns the world object associated with this agent

    Definition Classes
    AgentAgent

Inherited from api.Observer

Inherited from Agent

Inherited from Comparable[Agent]

Inherited from api.Agent

Inherited from Observable

Inherited from AnyRef

Inherited from Any

Ungrouped