org.nlogo.agent

Observer

class Observer extends Agent with Observer

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

Instance Constructors

  1. new Observer(world: World)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def addObserver(arg0: Observer): Unit

    Definition Classes
    Observable
  7. def alpha(): Int

    0-255, 0 = invisible, 255 = opaque

    0-255, 0 = invisible, 255 = opaque

    Definition Classes
    ObserverAgent
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def assertVariableConstraint(vn: Int, value: Any): Unit

  10. def atHome2D(): Boolean

  11. def atHome3D(): Boolean

  12. 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
  13. def clearChanged(): Unit

    Attributes
    protected[util]
    Definition Classes
    Observable
  14. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. def compareTo(a: Agent): Int

    Definition Classes
    Agent → Comparable
  16. def countObservers(): Int

    Definition Classes
    Observable
  17. def deleteObserver(arg0: Observer): Unit

    Definition Classes
    Observable
  18. def deleteObservers(): Unit

    Definition Classes
    Observable
  19. def dist(): Double

    Definition Classes
    ObserverObserver
  20. def distance(t: Turtle): Double

  21. def distance(agent: Agent): Double

  22. def dx(): Double

    Definition Classes
    ObserverObserver
  23. def dy(): Double

    Definition Classes
    ObserverObserver
  24. def dz(): Double

    Definition Classes
    ObserverObserver
  25. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  27. def face(x: Double, y: Double): Unit

  28. def face(agent: Agent): Unit

  29. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  30. def followDistance(followDistance: Int): Unit

  31. def followDistance(): Int

    Returns the current distance behind the followed turtle the 3D view is displaying

    Returns the current distance behind the followed turtle the 3D view is displaying

    Definition Classes
    ObserverObserver
  32. def followOffsetX(): Double

  33. def followOffsetY(): Double

  34. def getAgentBit(): Int

    Definition Classes
    ObserverAgent
  35. def getAgentClass(): Class[Observer]

    Definition Classes
    ObserverAgent
  36. def getBreedVariable(name: String): AnyRef

    Definition Classes
    ObserverAgent
  37. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  38. def getLinkBreedVariable(name: String): AnyRef

    Definition Classes
    ObserverAgent
  39. def getLinkVariable(vn: Int): AnyRef

    Definition Classes
    ObserverAgent
  40. def getObserverVariable(vn: Int): AnyRef

    Definition Classes
    ObserverAgent
  41. def getPatchAtOffsets(dx: Double, dy: Double): Patch

    Definition Classes
    ObserverAgent
  42. def getPatchVariable(vn: Int): AnyRef

    Definition Classes
    ObserverAgent
  43. def getTurtleOrLinkVariable(varName: String): AnyRef

    Definition Classes
    ObserverAgent
  44. def getTurtleVariable(vn: Int): AnyRef

    Definition Classes
    ObserverAgent
  45. 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
  46. def getVariableCount(): Int

    Definition Classes
    Agent
  47. def hasChanged(): Boolean

    Definition Classes
    Observable
  48. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  49. def heading(heading: Double): Unit

  50. def heading(): Double

    Definition Classes
    ObserverObserver
  51. def home(): Unit

  52. 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
  53. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  54. def isPartiallyTransparent(): Boolean

    Definition Classes
    AgentAgent
  55. def moveto(otherAgent: Agent): Unit

  56. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  57. final def notify(): Unit

    Definition Classes
    AnyRef
  58. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  59. def notifyObservers(arg0: Any): Unit

    Definition Classes
    Observable
  60. def notifyObservers(): Unit

    Definition Classes
    Observable
  61. def orbitRight(delta: Double): Unit

  62. def orbitUp(delta: Double): Unit

  63. def oxcor(oxcor: Double): Unit

  64. def oxcor(): Double

    Definition Classes
    ObserverObserver
  65. def oxyandzcor(oxcor: Double, oycor: Double, ozcor: Double): Unit

  66. def oycor(oycor: Double): Unit

  67. def oycor(): Double

    Definition Classes
    ObserverObserver
  68. def ozcor(ozcor: Double): Unit

  69. def ozcor(): Double

    Definition Classes
    ObserverObserver
  70. def perspective(perspective: Perspective): Unit

  71. def perspective(): Perspective

    Returns the current perspective

    Returns the current perspective

    Definition Classes
    ObserverObserver
  72. def pitch(pitch: Double): Unit

  73. def pitch(): Double

    Definition Classes
    ObserverObserver
  74. def resetPerspective(): Unit

  75. def roll(roll: Double): Unit

  76. def roll(): Double

    Definition Classes
    ObserverObserver
  77. def rotationPoint(): Vect

  78. def setBreedVariable(name: String, value: Any): Unit

    Definition Classes
    ObserverAgent
  79. def setChanged(): Unit

    Attributes
    protected[util]
    Definition Classes
    Observable
  80. def setLinkBreedVariable(name: String, value: Any): Unit

    Definition Classes
    ObserverAgent
  81. def setLinkVariable(vn: Int, value: Double): Unit

    Definition Classes
    ObserverAgent
  82. def setLinkVariable(vn: Int, value: Any): Unit

    Definition Classes
    ObserverAgent
  83. def setObserverVariable(vn: Int, value: Any): Unit

    Definition Classes
    ObserverAgent
  84. def setOrientation(heading: Double, pitch: Double, roll: Double): Unit

  85. def setPatchVariable(vn: Int, value: Double): Unit

    Definition Classes
    ObserverAgent
  86. def setPatchVariable(vn: Int, value: Any): Unit

    Definition Classes
    ObserverAgent
  87. def setPerspective(perspective: Perspective): Unit

  88. def setPerspective(perspective: Perspective, agent: Agent): Unit

    Definition Classes
    ObserverObserver
  89. def setRotationPoint(agent: Agent): Unit

  90. def setRotationPoint(x: Double, y: Double, z: Double): Unit

  91. def setRotationPoint(v: Vect): Unit

  92. def setTurtleOrLinkVariable(varName: String, value: Any): Unit

    Definition Classes
    ObserverAgent
  93. def setTurtleVariable(vn: Int, value: Double): Unit

    Definition Classes
    ObserverAgent
  94. def setTurtleVariable(vn: Int, value: Any): Unit

    Definition Classes
    ObserverAgent
  95. 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
    LogoExceptionAgentException

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

  96. 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
  97. def size(): Double

    Returns the size of this agent

    Returns the size of this agent

    Definition Classes
    ObserverAgent
  98. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  99. def targetAgent(agent: Agent): Unit

  100. def targetAgent(): Agent

    Returns the currently watched or followed agent (or nobody)

    Returns the currently watched or followed agent (or nobody)

    Definition Classes
    ObserverObserver
  101. def toString(): String

    Definition Classes
    Observer → AnyRef → Any
  102. def translate(thetaX: Double, thetaY: Double): Unit

  103. def updatePosition(): Boolean

  104. def variableConstraint(vn: Int, con: ValueConstraint): Unit

    Definition Classes
    Agent
  105. def variableConstraint(vn: Int): ValueConstraint

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

    Definition Classes
    ObserverAgent
  107. 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
  108. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  109. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  110. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  111. def world(): World

    Returns the world object associated with this agent

    Returns the world object associated with this agent

    Definition Classes
    AgentAgent

Inherited from Observer

Inherited from Agent

Inherited from Comparable[Agent]

Inherited from Agent

Inherited from Observable

Inherited from AnyRef

Inherited from Any