Observer

org.nlogo.agent.Observer

Attributes

Source
Observer.scala
Graph
Supertypes
trait Constraints
trait Observer
class Agent
trait Comparable[Agent]
trait Agent
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited classlikes

class Orientation(observer: Observer) extends ObserverOrientation

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

override def alpha: Int

0-255, 0 = invisible, 255 = opaque

0-255, 0 = invisible, 255 = opaque

Attributes

Definition Classes
Source
Observer.scala
override 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)

Attributes

Definition Classes
Source
Observer.scala

Attributes

Source
Observer.scala

Attributes

Source
Observer.scala

Attributes

Source
Observer.scala
override def getBreedVariable(name: String): AnyRef

Attributes

Definition Classes
Source
Observer.scala
override def getLinkBreedVariable(name: String): AnyRef

Attributes

Definition Classes
Source
Observer.scala
override def getLinkVariable(vn: Int): AnyRef

Attributes

Definition Classes
Source
Observer.scala
def getPatchAtOffsets(dx: Double, dy: Double): Patch

Attributes

Source
Observer.scala
override def getPatchVariable(vn: Int): AnyRef

Attributes

Definition Classes
Source
Observer.scala
override def getTurtleOrLinkVariable(varName: String): AnyRef

Attributes

Definition Classes
Source
Observer.scala
override def getTurtleVariable(vn: Int): AnyRef

Attributes

Definition Classes
Source
Observer.scala
override 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

Value parameters

vn

the index into the agent variable array

Attributes

Definition Classes
Source
Observer.scala

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

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

Attributes

Source
Observer.scala
override def realloc(oldProgram: Program, newProgram: Program): Agent

Attributes

Definition Classes
Source
Observer.scala
override def setBreedVariable(name: String, value: AnyRef): Unit

Attributes

Definition Classes
Source
Observer.scala
override def setLinkBreedVariable(name: String, value: AnyRef): Unit

Attributes

Definition Classes
Source
Observer.scala
override def setLinkVariable(vn: Int, value: AnyRef): Unit

Attributes

Definition Classes
Source
Observer.scala
override def setLinkVariable(vn: Int, value: Double): Unit

Attributes

Definition Classes
Source
Observer.scala
override def setPatchVariable(vn: Int, value: AnyRef): Unit

Attributes

Definition Classes
Source
Observer.scala
override def setPatchVariable(vn: Int, value: Double): Unit

Attributes

Definition Classes
Source
Observer.scala
override def setTurtleOrLinkVariable(varName: String, value: AnyRef): Unit

Attributes

Definition Classes
Source
Observer.scala
override def setTurtleVariable(vn: Int, value: AnyRef): Unit

Attributes

Definition Classes
Source
Observer.scala
override def setTurtleVariable(vn: Int, value: Double): Unit

Attributes

Definition Classes
Source
Observer.scala
override 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

Value parameters

value

the new value for the variable

vn

the index into the agent variable array

Attributes

Throws
api.AgentException

If value is the wrong type for the given variable or if you try to change variables that cannot be changed

Definition Classes
Source
Observer.scala
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.

Attributes

Source
Observer.scala
override def size: Double

Returns the size of this agent

Returns the size of this agent

Attributes

Definition Classes
Source
Observer.scala

Returns the currently watched or followed agent (or nobody)

Returns the currently watched or followed agent (or nobody)

Attributes

Source
Observer.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
Observer.scala
def variableIndex(name: String): Int

Attributes

Source
Observer.scala
override def variableName(vn: Int): String

Returns the name of the variable with the given index. Works for built-in, *-own, and breed variables.

Returns the name of the variable with the given index. Works for built-in, *-own, and breed variables.

Value parameters

vn

the index of the variable

Attributes

Definition Classes
Source
Observer.scala

Inherited methods

def assertConstraint(vn: Int, value: AnyRef): Unit

Attributes

Inherited from:
Constraints
Source
Constraints.scala

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala

Attributes

Inherited from:
Constraints
Source
Constraints.scala
override def compareTo(a: Agent): Int

Attributes

Definition Classes
Agent -> Comparable
Inherited from:
Agent
Source
Agent.scala

Attributes

Inherited from:
Constraints
Source
Constraints.scala
def distance(x: Double, y: Double): Double

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala
def face(x: Double, y: Double): Unit

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala
def face(agent: Agent): Unit

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala
def heading(heading: Double): Unit

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala
def home(): Unit

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala
def id: Long

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

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

Attributes

Inherited from:
Agent
Source
Agent.scala
def id_=(newId: Long): Unit

Attributes

Inherited from:
Agent
Source
Agent.scala
def moveto(otherAgent: Agent): Unit

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala
def orbitRight(delta: Double): Unit

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala
def orbitUp(delta: Double): Unit

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala
def oxcor(d: Double): Unit

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala
def oxyandzcor(oxcor: Double, oycor: Double, ozcor: Double): Unit

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala
def oycor(d: Double): Unit

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala
def ozcor(d: Double): Unit

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala
def pitch(pitch: Double): Unit

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala
def roll(roll: Double): Unit

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala

Attributes

Inherited from:
Constraints
Source
Constraints.scala
def setId(newId: Long): Unit

Attributes

Inherited from:
Agent
Source
Agent.scala
def setPerspective(perspective: Perspective): Unit

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala
def setRotationPoint(agent: Agent): Unit

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala
def setVariables(v: Array[AnyRef]): Unit

Attributes

Inherited from:
Agent
Source
Agent.scala
def translate(thetaX: Double, thetaY: Double): Unit

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala
def variables: Array[AnyRef]

Returns raw array of all agent variables. Warning: this method is liable to change return type in a future API version.

Returns raw array of all agent variables. Warning: this method is liable to change return type in a future API version.

Attributes

Inherited from:
Agent
Source
Agent.scala
def variables_=(v: Array[AnyRef]): Unit

Attributes

Inherited from:
Agent
Source
Agent.scala

Concrete fields

val agentBit: Int

Attributes

Source
Observer.scala

Inherited fields

var _id: Long

Attributes

Inherited from:
AgentJ (hidden)
protected val _orientation: Orientation

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala
var oxcor: Double

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala
var oycor: Double

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala
var ozcor: Double

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala

Attributes

Inherited from:
OrientatableObserver
Source
OrientableObserver.scala
val world: World

Returns the world object associated with this agent

Returns the world object associated with this agent

Attributes

Inherited from:
Agent
Source
Agent.scala