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 agentBit(): Int
    Definition Classes
    Agent
  6. def alpha(): Int

    0-255, 0 = invisible, 255 = opaque

    0-255, 0 = invisible, 255 = opaque

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

    Returns the current perspective

    Returns the current perspective

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

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

    Returns the size of this agent

    Returns the size of this agent

    Definition Classes
    ObserverAgent
  89. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  90. 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
  91. def toString(): String
    Definition Classes
    Observer → AnyRef → Any
  92. def translate(thetaX: Double, thetaY: Double): Unit
  93. def updatePosition(): Boolean
  94. def variableConstraint(vn: Int, con: ValueConstraint): Unit
    Definition Classes
    Agent
  95. def variableConstraint(vn: Int): ValueConstraint
    Definition Classes
    Agent
  96. def variableIndex(name: String): Int
  97. 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
  98. 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
  99. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  100. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  101. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  102. 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