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. def addObserver(arg0: java.util.Observer): Unit
    Definition Classes
    Observable
  2. def alpha(): Int

    0-255, 0 = invisible, 255 = opaque

    0-255, 0 = invisible, 255 = opaque

    Definition Classes
    ObserverAgent
  3. def assertVariableConstraint(vn: Int, value: Any): Unit
  4. def atHome2D(): Boolean
  5. def atHome3D(): Boolean
  6. 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
  7. def compareTo(a: Agent): Int
    Definition Classes
    Agent → Comparable
  8. def countObservers(): Int
    Definition Classes
    Observable
  9. def deleteObserver(arg0: java.util.Observer): Unit
    Definition Classes
    Observable
  10. def deleteObservers(): Unit
    Definition Classes
    Observable
  11. def distance(t: api.Turtle): Double
  12. def distance(agent: api.Agent): Double
  13. def face(x: Double, y: Double): Unit
  14. def face(agent: api.Agent): Unit
  15. def followDistance(): Int
  16. def followOffsetX(): Double
  17. def followOffsetY(): Double
  18. def getAgentBit(): Int
    Definition Classes
    ObserverAgent
  19. def getAgentClass(): Class[Observer]
    Definition Classes
    ObserverAgent
  20. def getBreedVariable(name: String): AnyRef
    Definition Classes
    ObserverAgent
  21. def getLinkBreedVariable(name: String): AnyRef
    Definition Classes
    ObserverAgent
  22. def getLinkVariable(vn: Int): AnyRef
    Definition Classes
    ObserverAgent
  23. def getObserverVariable(vn: Int): AnyRef
    Definition Classes
    ObserverAgent
  24. def getPatchAtOffsets(dx: Double, dy: Double): Patch
    Definition Classes
    ObserverAgent
  25. def getPatchVariable(vn: Int): AnyRef
    Definition Classes
    ObserverAgent
  26. def getTurtleOrLinkVariable(varName: String): AnyRef
    Definition Classes
    ObserverAgent
  27. def getTurtleVariable(vn: Int): AnyRef
    Definition Classes
    ObserverAgent
  28. 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
  29. def getVariableCount(): Int
    Definition Classes
    Agent
  30. def hasChanged(): Boolean
    Definition Classes
    Observable
  31. def heading(heading: Double): Unit
  32. def home(): Unit
  33. 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
  34. def isPartiallyTransparent(): Boolean
    Definition Classes
    Agent
  35. 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
  36. def moveto(otherAgent: Agent): Unit
  37. def notifyObservers(arg0: Any): Unit
    Definition Classes
    Observable
  38. def notifyObservers(): Unit
    Definition Classes
    Observable
  39. def orbitRight(delta: Double): Unit
  40. def orbitUp(delta: Double): Unit
  41. def orientation(): Option[ObserverOrientation]
    Definition Classes
    ObserverObserver
  42. def oxcor(oxcor: Double): Unit
  43. def oxcor(): Double
    Definition Classes
    ObserverObserver
  44. def oxyandzcor(oxcor: Double, oycor: Double, ozcor: Double): Unit
  45. def oycor(oycor: Double): Unit
  46. def oycor(): Double
    Definition Classes
    ObserverObserver
  47. def ozcor(ozcor: Double): Unit
  48. def ozcor(): Double
    Definition Classes
    ObserverObserver
  49. def perspective(perspective: Perspective): Unit
  50. def perspective(): Perspective

    Returns the current perspective

    Returns the current perspective

    Definition Classes
    ObserverObserver
  51. def pitch(pitch: Double): Unit
  52. def resetPerspective(): Unit
  53. def roll(roll: Double): Unit
  54. def rotationPoint(): Vect
  55. def setBreedVariable(name: String, value: Any): Unit
    Definition Classes
    ObserverAgent
  56. def setLinkBreedVariable(name: String, value: Any): Unit
    Definition Classes
    ObserverAgent
  57. def setLinkVariable(vn: Int, value: Double): Unit
    Definition Classes
    ObserverAgent
  58. def setLinkVariable(vn: Int, value: Any): Unit
    Definition Classes
    ObserverAgent
  59. def setObserverVariable(vn: Int, value: Any): Unit
    Definition Classes
    ObserverAgent
  60. def setPatchVariable(vn: Int, value: Double): Unit
    Definition Classes
    ObserverAgent
  61. def setPatchVariable(vn: Int, value: Any): Unit
    Definition Classes
    ObserverAgent
  62. def setPerspective(perspective: Perspective): Unit
    Definition Classes
    ObserverObserver
  63. def setRotationPoint(agent: api.Agent): Unit
  64. def setRotationPoint(x: Double, y: Double, z: Double): Unit
  65. def setRotationPoint(v: Vect): Unit
  66. def setTurtleOrLinkVariable(varName: String, value: Any): Unit
    Definition Classes
    ObserverAgent
  67. def setTurtleVariable(vn: Int, value: Double): Unit
    Definition Classes
    ObserverAgent
  68. def setTurtleVariable(vn: Int, value: Any): Unit
    Definition Classes
    ObserverAgent
  69. 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

  70. 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
  71. def size(): Double

    Returns the size of this agent

    Returns the size of this agent

    Definition Classes
    ObserverAgent
  72. 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
  73. def toString(): String
    Definition Classes
    Observer → AnyRef → Any
  74. def translate(thetaX: Double, thetaY: Double): Unit
  75. def updatePosition(): Boolean
  76. def variableConstraint(vn: Int, con: ValueConstraint): Unit
    Definition Classes
    Agent
  77. def variableConstraint(vn: Int): ValueConstraint
    Definition Classes
    Agent
  78. def variableIndex(name: String): Int
  79. 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
  80. 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
  81. def world(): World

    Returns the world object associated with this agent

    Returns the world object associated with this agent

    Definition Classes
    AgentAgent