final class Observer3D extends Observer with Agent3D
- Source
- Observer3D.java
- Alphabetic
- By Inheritance
- Observer3D
- Agent3D
- Observer
- Constraints
- OrientatableObserver
- Observer
- Agent
- Comparable
- Agent
- AgentJ
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
Orientation extends ObserverOrientation
- Definition Classes
- OrientatableObserver
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
-
val
_orientation: Orientation
- Attributes
- protected
- Definition Classes
- OrientatableObserver
- val agentBit: Int
-
def
alpha: Int
0-255, 0 = invisible, 255 = opaque
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
assertConstraint(vn: Int, value: AnyRef): Unit
- Definition Classes
- Constraints
- Annotations
- @throws( classOf[api.AgentException] )
-
def
atHome2D: Boolean
- Definition Classes
- OrientatableObserver
-
def
atHome3D: Boolean
- Definition Classes
- OrientatableObserver
-
def
classDisplayName: String
Returns a displayable name of this type of agent (Turtle, Link, Patch, Observer)
-
def
clearConstraints(): Unit
- Definition Classes
- Constraints
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
def
compareTo(a: Agent): Int
- Definition Classes
- Agent → Comparable
-
def
constraint(vn: Int): ValueConstraint
- Definition Classes
- Constraints
- def distance(x: Double, y: Double, z: Double): Double
-
def
distance(t: api.Turtle): Double
- Definition Classes
- Observer3D → OrientatableObserver
- Annotations
- @Override()
- def distance(agent: Agent): Double
-
def
distance(x: Double, y: Double): Double
- Definition Classes
- OrientatableObserver
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def face(x: Double, y: Double, z: Double): Unit
-
def
face(x: Double, y: Double): Unit
- Definition Classes
- OrientatableObserver
-
def
face(agent: api.Agent): Unit
- Definition Classes
- OrientatableObserver
-
def
followDistance: Int
- Definition Classes
- Observer
-
def
followOffsetX: Double
- Definition Classes
- Observer
-
def
followOffsetY: Double
- Definition Classes
- Observer
- def followOffsetZ(): Double
- def getBreedVariable(name: String): Nothing
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def getLinkBreedVariable(name: String): Nothing
- def getLinkVariable(vn: Int): Nothing
-
def
getPatchAtOffsets(dx: Double, dy: Double, dz: Double): Patch3D
- Definition Classes
- Observer3D → Agent3D
- def getPatchAtOffsets(dx: Double, dy: Double): Patch
- def getPatchVariable(vn: Int): Nothing
- def getTurtleOrLinkVariable(varName: String): Nothing
- def getTurtleVariable(vn: Int): Nothing
-
def
getVariable(vn: Int): AnyRef
Returns the value of the variable in the given position of the agent variable array
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
heading(heading: Double): Unit
- Definition Classes
- OrientatableObserver
-
def
home(): Unit
- Definition Classes
- Observer3D → OrientatableObserver
- Annotations
- @Override()
-
def
id: Long
Returns the id number of this agent.
-
def
id_=(newId: Long): Unit
- Definition Classes
- Agent
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
kind: Observer.type
Returns the kind of this agent (Turtle, Link, Patch, Observer).
-
def
moveto(otherAgent: Agent): Unit
- Definition Classes
- Observer3D → OrientatableObserver
- Annotations
- @Override()
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
def
orbitRight(delta: Double): Unit
- Definition Classes
- Observer3D → OrientatableObserver
- Annotations
- @Override()
-
def
orbitUp(delta: Double): Unit
- Definition Classes
- Observer3D → OrientatableObserver
- Annotations
- @Override()
-
val
orientation: Option[ObserverOrientation]
- Definition Classes
- OrientatableObserver
-
def
oxcor(d: Double): Unit
- Definition Classes
- OrientatableObserver
-
val
oxcor: Double
- Definition Classes
- OrientatableObserver
-
def
oxyandzcor(oxcor: Double, oycor: Double, ozcor: Double): Unit
- Definition Classes
- OrientatableObserver
-
def
oycor(d: Double): Unit
- Definition Classes
- OrientatableObserver
-
val
oycor: Double
- Definition Classes
- OrientatableObserver
-
def
ozcor(d: Double): Unit
- Definition Classes
- OrientatableObserver
-
val
ozcor: Double
- Definition Classes
- OrientatableObserver
-
val
perspective: Perspective
- Definition Classes
- OrientatableObserver
-
def
pitch(pitch: Double): Unit
- Definition Classes
- OrientatableObserver
- def realloc(oldProgram: Program, newProgram: Program): Agent
-
def
resetPerspective(): Unit
- Definition Classes
- OrientatableObserver
-
def
roll(roll: Double): Unit
- Definition Classes
- OrientatableObserver
-
def
rotationPoint: Vect
- Definition Classes
- OrientatableObserver
- def setBreedVariable(name: String, value: AnyRef): Unit
-
def
setConstraint(vn: Int, con: ValueConstraint): Unit
- Definition Classes
- Constraints
-
def
setId(newId: Long): Unit
- Definition Classes
- Agent
- def setLinkBreedVariable(name: String, value: AnyRef): Unit
- def setLinkVariable(vn: Int, value: Double): Unit
- def setLinkVariable(vn: Int, value: AnyRef): Unit
- def setPatchVariable(vn: Int, value: Double): Unit
- def setPatchVariable(vn: Int, value: AnyRef): Unit
-
def
setPerspective(perspective: Perspective): Unit
- Definition Classes
- OrientatableObserver
-
def
setRotationPoint(agent: api.Agent): Unit
- Definition Classes
- Observer3D → OrientatableObserver
- Annotations
- @Override()
-
def
setRotationPoint(x: Double, y: Double, z: Double): Unit
- Definition Classes
- OrientatableObserver
-
def
setRotationPoint(v: Vect): Unit
- Definition Classes
- OrientatableObserver
- def setTurtleOrLinkVariable(varName: String, value: AnyRef): Unit
- def setTurtleVariable(vn: Int, value: Double): Unit
- def setTurtleVariable(vn: Int, value: AnyRef): Unit
-
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
-
def
setVariables(v: Array[AnyRef]): Unit
- Definition Classes
- Agent
-
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
- Definition Classes
- Observer3D → OrientatableObserver
- Annotations
- @Override()
-
def
updatePosition(): Boolean
- Definition Classes
- Observer3D → OrientatableObserver
- Annotations
- @Override()
-
def
variableIndex(name: String): Int
- Definition Classes
- Observer
-
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.
-
def
variables_=(v: Array[AnyRef]): Unit
- Definition Classes
- Agent
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
world: World
Returns the world object associated with this agent