class Observer extends Agent with api.Observer
- Alphabetic
- By Inheritance
- Observer
- Observer
- Agent
- Comparable
- Agent
- Observable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addObserver(arg0: java.util.Observer): Unit
- Definition Classes
- Observable
-
def
alpha(): Int
0-255, 0 = invisible, 255 = opaque
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def assertVariableConstraint(vn: Int, value: Any): Unit
- def atHome2D(): Boolean
- def atHome3D(): Boolean
-
def
classDisplayName(): String
Returns a displayable name of this type of agent (Turtle, Link, Patch, Observer)
-
def
clearChanged(): Unit
- Attributes
- protected[java.util]
- Definition Classes
- Observable
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
compareTo(a: Agent): Int
- Definition Classes
- Agent → Comparable
-
def
countObservers(): Int
- Definition Classes
- Observable
-
def
deleteObserver(arg0: java.util.Observer): Unit
- Definition Classes
- Observable
-
def
deleteObservers(): Unit
- Definition Classes
- Observable
- def distance(t: api.Turtle): Double
- def distance(agent: api.Agent): Double
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def face(x: Double, y: Double): Unit
- def face(agent: api.Agent): Unit
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def followDistance(): Int
- def followOffsetX(): Double
- def followOffsetY(): Double
- def getAgentBit(): Int
- def getAgentClass(): Class[Observer]
- def getBreedVariable(name: String): AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- def getLinkBreedVariable(name: String): AnyRef
- def getLinkVariable(vn: Int): AnyRef
- def getObserverVariable(vn: Int): AnyRef
- def getPatchAtOffsets(dx: Double, dy: Double): Patch
- def getPatchVariable(vn: Int): AnyRef
- def getTurtleOrLinkVariable(varName: String): AnyRef
- def getTurtleVariable(vn: Int): AnyRef
-
def
getVariable(vn: Int): AnyRef
Returns the value of the variable in the given position of the agent variable array
-
def
getVariableCount(): Int
- Definition Classes
- Agent
-
def
hasChanged(): Boolean
- Definition Classes
- Observable
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- def heading(heading: Double): Unit
- def home(): Unit
-
def
id(): Long
Returns the id number of this agent.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPartiallyTransparent(): Boolean
- Definition Classes
- Agent
-
def
kind(): AgentKind
Returns the kind of this agent (observer, turtle, patch, or link.
- def moveto(otherAgent: Agent): Unit
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
notifyObservers(arg0: Any): Unit
- Definition Classes
- Observable
-
def
notifyObservers(): Unit
- Definition Classes
- Observable
- def orbitRight(delta: Double): Unit
- def orbitUp(delta: Double): Unit
- def orientation(): Option[ObserverOrientation]
- def oxcor(oxcor: Double): Unit
- def oxcor(): Double
- def oxyandzcor(oxcor: Double, oycor: Double, ozcor: Double): Unit
- def oycor(oycor: Double): Unit
- def oycor(): Double
- def ozcor(ozcor: Double): Unit
- def ozcor(): Double
- def perspective(perspective: Perspective): Unit
-
def
perspective(): Perspective
Returns the current perspective
- def pitch(pitch: Double): Unit
- def resetPerspective(): Unit
- def roll(roll: Double): Unit
- def rotationPoint(): Vect
- def setBreedVariable(name: String, value: Any): Unit
-
def
setChanged(): Unit
- Attributes
- protected[java.util]
- Definition Classes
- Observable
- def setLinkBreedVariable(name: String, value: Any): Unit
- def setLinkVariable(vn: Int, value: Double): Unit
- def setLinkVariable(vn: Int, value: Any): Unit
- def setObserverVariable(vn: Int, value: Any): Unit
- def setPatchVariable(vn: Int, value: Double): Unit
- def setPatchVariable(vn: Int, value: Any): Unit
- def setPerspective(perspective: Perspective): Unit
- def setRotationPoint(agent: api.Agent): Unit
- def setRotationPoint(x: Double, y: Double, z: Double): Unit
- def setRotationPoint(v: Vect): Unit
- def setTurtleOrLinkVariable(varName: String, value: Any): Unit
- def setTurtleVariable(vn: Int, value: Double): Unit
- def setTurtleVariable(vn: Int, value: Any): Unit
-
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
- Observer → Agent → Agent
- 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
-
def
shape(): String
Returns the name of the current shape, empty string in the case of patches.
-
def
size(): Double
Returns the size of this agent
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
targetAgent(): api.Agent
Returns the currently watched or followed agent (or nobody)
-
def
toString(): String
- Definition Classes
- Observer → AnyRef → Any
- def translate(thetaX: Double, thetaY: Double): Unit
- def updatePosition(): Boolean
-
def
variableConstraint(vn: Int, con: ValueConstraint): Unit
- Definition Classes
- Agent
-
def
variableConstraint(vn: Int): ValueConstraint
- Definition Classes
- Agent
- def variableIndex(name: String): Int
-
def
variableName(vn: Int): String
Returns the name of the variable with the given index.
-
def
variables(): Array[AnyRef]
Returns raw array of all agent variables.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
world(): World
Returns the world object associated with this agent