Class

org.nlogo.agent

Observer

Related Doc: package agent

Permalink

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)

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addObserver(arg0: java.util.Observer): Unit

    Permalink
    Definition Classes
    Observable
  5. def alpha(): Int

    Permalink

    0-255, 0 = invisible, 255 = opaque

    0-255, 0 = invisible, 255 = opaque

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

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

    Permalink
  8. def atHome2D(): Boolean

    Permalink
  9. def atHome3D(): Boolean

    Permalink
  10. def classDisplayName(): String

    Permalink

    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

    Permalink
    Attributes
    protected[java.util]
    Definition Classes
    Observable
  12. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    Observable
  15. def deleteObserver(arg0: java.util.Observer): Unit

    Permalink
    Definition Classes
    Observable
  16. def deleteObservers(): Unit

    Permalink
    Definition Classes
    Observable
  17. def distance(t: api.Turtle): Double

    Permalink
  18. def distance(agent: api.Agent): Double

    Permalink
  19. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
  22. def face(agent: api.Agent): Unit

    Permalink
  23. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. def followDistance(): Int

    Permalink
  25. def followOffsetX(): Double

    Permalink
  26. def followOffsetY(): Double

    Permalink
  27. def getAgentBit(): Int

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

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

    Permalink
    Definition Classes
    ObserverAgent
  30. final def getClass(): Class[_]

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    ObserverAgent
  38. def getVariable(vn: Int): AnyRef

    Permalink

    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

    Permalink
    Definition Classes
    Agent
  40. def hasChanged(): Boolean

    Permalink
    Definition Classes
    Observable
  41. def hashCode(): Int

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

    Permalink
  43. def home(): Unit

    Permalink
  44. def id(): Long

    Permalink

    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

    Permalink
    Definition Classes
    Any
  46. def isPartiallyTransparent(): Boolean

    Permalink
    Definition Classes
    Agent
  47. def kind(): AgentKind

    Permalink

    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

    Permalink
  49. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  50. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  51. final def notifyAll(): Unit

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

    Permalink
    Definition Classes
    Observable
  53. def notifyObservers(): Unit

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

    Permalink
  55. def orbitUp(delta: Double): Unit

    Permalink
  56. def orientation(): Option[ObserverOrientation]

    Permalink
    Definition Classes
    ObserverObserver
  57. def oxcor(oxcor: Double): Unit

    Permalink
  58. def oxcor(): Double

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

    Permalink
  60. def oycor(oycor: Double): Unit

    Permalink
  61. def oycor(): Double

    Permalink
    Definition Classes
    ObserverObserver
  62. def ozcor(ozcor: Double): Unit

    Permalink
  63. def ozcor(): Double

    Permalink
    Definition Classes
    ObserverObserver
  64. def perspective(perspective: Perspective): Unit

    Permalink
  65. def perspective(): Perspective

    Permalink

    Returns the current perspective

    Returns the current perspective

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

    Permalink
  67. def resetPerspective(): Unit

    Permalink
  68. def roll(roll: Double): Unit

    Permalink
  69. def rotationPoint(): Vect

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

    Permalink
    Definition Classes
    ObserverAgent
  71. def setChanged(): Unit

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

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

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

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

    Permalink
    Definition Classes
    ObserverAgent
  76. def setPatchVariable(vn: Int, value: Double): Unit

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

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

    Permalink
    Definition Classes
    ObserverObserver
  79. def setRotationPoint(agent: api.Agent): Unit

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

    Permalink
  81. def setRotationPoint(v: Vect): Unit

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

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

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

    Permalink
    Definition Classes
    ObserverAgent
  85. def setVariable(vn: Int, value: Any): Unit

    Permalink

    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

    Permalink

    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

    Permalink

    Returns the size of this agent

    Returns the size of this agent

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

    Permalink
    Definition Classes
    AnyRef
  89. def targetAgent(): api.Agent

    Permalink

    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

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

    Permalink
  92. def updatePosition(): Boolean

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

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

    Permalink
    Definition Classes
    Agent
  95. def variableIndex(name: String): Int

    Permalink
  96. def variableName(vn: Int): String

    Permalink
    Definition Classes
    ObserverAgent
  97. def variables(): Array[AnyRef]

    Permalink

    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

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

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

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

    Permalink

    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