NetLogo 6.2.2 - org.nlogo.agent.Observer
Keywords: NetLogo 6.2.2 org.nlogo.agent.Observer

NetLogo6.2.2 < Back
 

# Packages

-  package root
  Definition Classes
    root
-  package org
  Definition Classes
    root
-  package nlogo
  Definition Classes
    org
-  package agent
  Definition Classes
    nlogo
- AbstractExporter
- Agent
- Agent3D
- AgentBit
- AgentColors
- AgentIterator
- AgentManagement
- AgentParserCreator
- AgentSet
- AgentSetBuilder
- AllStoredValues
- ArrayAgentSet
- BooleanConstraint
- Box
- BreedShapes
- ChooserConstraint
- CompilationManagement
- ConstantSliderConstraint
- Constraints
- CoreWorld
- DimensionManagement
- Directedness
- Drawing3D
- DrawingLine3D
- DummyLink
- DynamicSliderConstraint
- Gamma
- GrossWorldState
- HeadingSmoother
- HorizCylinder
- ImportPatchColors
- Importer
- Importer3D
- ImporterJ
- InRadiusOrCone
- InRadiusOrCone3D
- InRadiusSimple
- IndexedAgentSet
- InputBoxConstraint
- Layouts
- Link
- Link3D
- LinkFactory
- LinkManagement
- LinkManager
- LinkManagerImpl
- LinkStamp3D
- LiteralAgentParser
- Neighbors
- NumericConstraint
- Observer
- Observer3D
- ObserverManagement
- OrientatableObserver
- OutputObject
- Patch
- Patch3D
- PatchException
- Protractor
- Protractor3D
- Realloc
- RootsTable
- Rotations3D
- SliderConstraint
- TickCounter
- TieManager
- TieManager3D
- Topology
- Topology3D
- Torus
- Torus3D
- Trail
- TreeAgentSet
- TrigTables
- Turtle
- Turtle2D
- Turtle3D
- TurtleManagement
- TurtleStamp3D
- VertCylinder
- WatcherManagement
- World
- World2D
- World3D
- WorldKernel
- XBlocks
- XWraps
- YBlocks
- YWraps

c

org.nlogo.agent

# Observer 

###

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

Source
  Observer.scala

Linear Supertypes
Constraints, OrientatableObserver, api.Observer, Agent, Comparable[Agent], api.Agent, AgentJ, AnyRef, Any
Known Subclasses
Observer3D
 
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
     Observer → Agent
6.  def alpha: Int

   0-255, 0 = invisible, 255 = opaque

   0-255, 0 = invisible, 255 = opaque

   Definition Classes
     Observer → Agent
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
      Observer → Agent → Agent
12.  def clearConstraints(): Unit
    Definition Classes
      Constraints
13.  def clone(): AnyRef
    Attributes
      protected[lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( ... ) @native()
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 finalize(): Unit
    Attributes
      protected[lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
23.  def followDistance: Int
24.  def followOffsetX: Double
25.  def followOffsetY: Double
26.  def getBreedVariable(name: String): Nothing
    Definition Classes
      Observer → Agent
    Annotations
      @throws( classOf[api.AgentException] )
27.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
28.  def getLinkBreedVariable(name: String): Nothing
    Definition Classes
      Observer → Agent
    Annotations
      @throws( classOf[api.AgentException] )
29.  def getLinkVariable(vn: Int): Nothing
    Definition Classes
      Observer → Agent
    Annotations
      @throws( classOf[api.AgentException] )
30.  def getPatchAtOffsets(dx: Double, dy: Double): Patch
    Definition Classes
      Observer → Agent
    Annotations
      @throws( classOf[api.AgentException] )
31.  def getPatchVariable(vn: Int): Nothing
    Definition Classes
      Observer → Agent
    Annotations
      @throws( classOf[api.AgentException] )
32.  def getTurtleOrLinkVariable(varName: String): Nothing
    Definition Classes
      Observer → Agent
    Annotations
      @throws( classOf[api.AgentException] )
33.  def getTurtleVariable(vn: Int): Nothing
    Definition Classes
      Observer → Agent
    Annotations
      @throws( classOf[api.AgentException] )
34.  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
      Observer → Agent → Agent
35.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
36.  def heading(heading: Double): Unit
    Definition Classes
      OrientatableObserver
37.  def home(): Unit
    Definition Classes
      OrientatableObserver
38.  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
      Agent → Agent
39.  def id_=(newId: Long): Unit
    Definition Classes
      Agent
40.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
41.  def kind: core.AgentKind.Observer.type

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

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

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

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

    Returns the size of this agent

    Returns the size of this agent

    Definition Classes
      Observer → Agent
81.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
82.  def targetAgent: api.Agent

    Returns the currently watched or followed agent (or nobody)

    Returns the currently watched or followed agent (or nobody)

    Definition Classes
      Observer → Observer
83.  def toString(): String
    Definition Classes
      Observer → AnyRef → Any
84.  def translate(thetaX: Double, thetaY: Double): Unit
    Definition Classes
      OrientatableObserver
85.  def updatePosition(): Boolean
    Definition Classes
      OrientatableObserver
86.  def variableIndex(name: String): Int
87.  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
      Observer → Agent
88.  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
      Agent → Agent
89.  def variables_=(v: Array[AnyRef]): Unit
    Definition Classes
      Agent
90.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
91.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
92.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... ) @native()
93.  def world: World

    Returns the world object associated with this agent

    Returns the world object associated with this agent

    Definition Classes
      Agent → Agent

### 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