c

org.nlogo.agent

Observer

class Observer extends Agent with api.Observer with OrientatableObserver with Constraints

Source
Observer.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Observer
  2. Constraints
  3. OrientatableObserver
  4. Observer
  5. Agent
  6. Comparable
  7. Agent
  8. AgentJ
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Observer(_world: World)

Type Members

  1. class Orientation extends ObserverOrientation
    Definition Classes
    OrientatableObserver

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. val _orientation: Orientation
    Attributes
    protected
    Definition Classes
    OrientatableObserver
  5. val agentBit: Int
    Definition Classes
    ObserverAgent
  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 assertConstraint(vn: Int, value: AnyRef): Unit
    Definition Classes
    Constraints
    Annotations
    @throws( classOf[api.AgentException] )
  9. def atHome2D: Boolean
    Definition Classes
    OrientatableObserver
  10. def atHome3D: Boolean
    Definition Classes
    OrientatableObserver
  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 clearConstraints(): Unit
    Definition Classes
    Constraints
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  14. def compareTo(a: Agent): Int
    Definition Classes
    Agent → Comparable
  15. def constraint(vn: Int): ValueConstraint
    Definition Classes
    Constraints
  16. def distance(x: Double, y: Double): Double
    Definition Classes
    OrientatableObserver
  17. def distance(t: api.Turtle): Double
    Definition Classes
    OrientatableObserver
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  20. def face(x: Double, y: Double): Unit
    Definition Classes
    OrientatableObserver
  21. def face(agent: api.Agent): Unit
    Definition Classes
    OrientatableObserver
  22. def followDistance: Int
  23. def followOffsetX: Double
  24. def followOffsetY: Double
  25. def getBreedVariable(name: String): Nothing
    Definition Classes
    ObserverAgent
    Annotations
    @throws( classOf[api.AgentException] )
  26. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  27. def getLinkBreedVariable(name: String): Nothing
    Definition Classes
    ObserverAgent
    Annotations
    @throws( classOf[api.AgentException] )
  28. def getLinkVariable(vn: Int): Nothing
    Definition Classes
    ObserverAgent
    Annotations
    @throws( classOf[api.AgentException] )
  29. def getPatchAtOffsets(dx: Double, dy: Double): Patch
    Definition Classes
    ObserverAgent
    Annotations
    @throws( classOf[api.AgentException] )
  30. def getPatchVariable(vn: Int): Nothing
    Definition Classes
    ObserverAgent
    Annotations
    @throws( classOf[api.AgentException] )
  31. def getTurtleOrLinkVariable(varName: String): Nothing
    Definition Classes
    ObserverAgent
    Annotations
    @throws( classOf[api.AgentException] )
  32. def getTurtleVariable(vn: Int): Nothing
    Definition Classes
    ObserverAgent
    Annotations
    @throws( classOf[api.AgentException] )
  33. 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
  34. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  35. def heading(heading: Double): Unit
    Definition Classes
    OrientatableObserver
  36. def home(): Unit
    Definition Classes
    OrientatableObserver
  37. 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
  38. def id_=(newId: Long): Unit
    Definition Classes
    Agent
  39. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  40. def kind: Observer.type

    Returns the kind of this agent (Turtle, Link, Patch, Observer).

    Returns the kind of this agent (Turtle, Link, Patch, Observer).

    Definition Classes
    ObserverAgent
  41. def moveto(otherAgent: Agent): Unit
    Definition Classes
    OrientatableObserver
    Annotations
    @throws( classOf[AgentException] )
  42. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  43. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  44. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  45. def orbitRight(delta: Double): Unit
    Definition Classes
    OrientatableObserver
  46. def orbitUp(delta: Double): Unit
    Definition Classes
    OrientatableObserver
  47. val orientation: Option[ObserverOrientation]
    Definition Classes
    OrientatableObserver
  48. def oxcor(d: Double): Unit
    Definition Classes
    OrientatableObserver
  49. val oxcor: Double
    Definition Classes
    OrientatableObserver
  50. def oxyandzcor(oxcor: Double, oycor: Double, ozcor: Double): Unit
    Definition Classes
    OrientatableObserver
  51. def oycor(d: Double): Unit
    Definition Classes
    OrientatableObserver
  52. val oycor: Double
    Definition Classes
    OrientatableObserver
  53. def ozcor(d: Double): Unit
    Definition Classes
    OrientatableObserver
  54. val ozcor: Double
    Definition Classes
    OrientatableObserver
  55. val perspective: Perspective
    Definition Classes
    OrientatableObserver
  56. def pitch(pitch: Double): Unit
    Definition Classes
    OrientatableObserver
  57. def realloc(oldProgram: Program, newProgram: Program): Agent
    Definition Classes
    ObserverAgent
  58. def resetPerspective(): Unit
    Definition Classes
    OrientatableObserver
  59. def roll(roll: Double): Unit
    Definition Classes
    OrientatableObserver
  60. def rotationPoint: Vect
    Definition Classes
    OrientatableObserver
  61. def setBreedVariable(name: String, value: AnyRef): Unit
    Definition Classes
    ObserverAgent
    Annotations
    @throws( classOf[api.AgentException] )
  62. def setConstraint(vn: Int, con: ValueConstraint): Unit
    Definition Classes
    Constraints
  63. def setId(newId: Long): Unit
    Definition Classes
    Agent
  64. def setLinkBreedVariable(name: String, value: AnyRef): Unit
    Definition Classes
    ObserverAgent
    Annotations
    @throws( classOf[api.AgentException] )
  65. def setLinkVariable(vn: Int, value: Double): Unit
    Definition Classes
    ObserverAgent
    Annotations
    @throws( classOf[api.AgentException] )
  66. def setLinkVariable(vn: Int, value: AnyRef): Unit
    Definition Classes
    ObserverAgent
    Annotations
    @throws( classOf[api.AgentException] )
  67. def setPatchVariable(vn: Int, value: Double): Unit
    Definition Classes
    ObserverAgent
    Annotations
    @throws( classOf[api.AgentException] )
  68. def setPatchVariable(vn: Int, value: AnyRef): Unit
    Definition Classes
    ObserverAgent
    Annotations
    @throws( classOf[api.AgentException] )
  69. def setPerspective(perspective: Perspective): Unit
    Definition Classes
    OrientatableObserver
  70. def setRotationPoint(agent: api.Agent): Unit
    Definition Classes
    OrientatableObserver
  71. def setRotationPoint(x: Double, y: Double, z: Double): Unit
    Definition Classes
    OrientatableObserver
  72. def setRotationPoint(v: Vect): Unit
    Definition Classes
    OrientatableObserver
  73. def setTurtleOrLinkVariable(varName: String, value: AnyRef): Unit
    Definition Classes
    ObserverAgent
    Annotations
    @throws( classOf[api.AgentException] )
  74. def setTurtleVariable(vn: Int, value: Double): Unit
    Definition Classes
    ObserverAgent
    Annotations
    @throws( classOf[api.AgentException] )
  75. def setTurtleVariable(vn: Int, value: AnyRef): Unit
    Definition Classes
    ObserverAgent
    Annotations
    @throws( classOf[api.AgentException] )
  76. def setVariable(vn: Int, value: AnyRef): 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
    Annotations
    @throws( classOf[api.AgentException] )
    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

  77. def setVariables(v: Array[AnyRef]): Unit
    Definition Classes
    Agent
  78. 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
  79. def size: Double

    Returns the size of this agent

    Returns the size of this agent

    Definition Classes
    ObserverAgent
  80. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  81. 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
  82. def toString(): String
    Definition Classes
    Observer → AnyRef → Any
  83. def translate(thetaX: Double, thetaY: Double): Unit
    Definition Classes
    OrientatableObserver
  84. def updatePosition(): Boolean
    Definition Classes
    OrientatableObserver
  85. def variableIndex(name: String): Int
  86. 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.

    vn

    the index of the variable

    Definition Classes
    ObserverAgent
  87. 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
  88. def variables_=(v: Array[AnyRef]): Unit
    Definition Classes
    Agent
  89. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  90. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  91. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  92. def world: World

    Returns the world object associated with this agent

    Returns the world object associated with this agent

    Definition Classes
    AgentAgent

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Constraints

Inherited from OrientatableObserver

Inherited from api.Observer

Inherited from Agent

Inherited from Comparable[Agent]

Inherited from api.Agent

Inherited from AgentJ

Inherited from AnyRef

Inherited from Any

Ungrouped