abstract class Agent extends Observable with api.Agent with Comparable[Agent]
- Alphabetic
- By Inheritance
- Agent
- Comparable
- Agent
- Observable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
alpha: Int
0-255, 0 = invisible, 255 = opaque
0-255, 0 = invisible, 255 = opaque
- Definition Classes
- Agent
-
abstract
def
classDisplayName(): String
Returns a displayable name of this type of agent (Turtle, Link, Patch, Observer)
- abstract def getAgentBit(): Int
- abstract def getAgentClass(): Class[_ <: Agent]
- abstract def getBreedVariable(name: String): AnyRef
- abstract def getLinkBreedVariable(name: String): AnyRef
- abstract def getLinkVariable(vn: Int): AnyRef
- abstract def getObserverVariable(vn: Int): AnyRef
- abstract def getPatchAtOffsets(dx: Double, dy: Double): Patch
- abstract def getPatchVariable(vn: Int): AnyRef
- abstract def getTurtleOrLinkVariable(varName: String): AnyRef
- abstract def getTurtleVariable(vn: Int): AnyRef
-
abstract
def
getVariable(vn: Int): AnyRef
Returns the value of the variable in the given position of the agent variable array
-
abstract
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
- Agent
- abstract def setBreedVariable(name: String, value: Any): Unit
- abstract def setLinkBreedVariable(name: String, value: Any): Unit
- abstract def setLinkVariable(vn: Int, value: Double): Unit
- abstract def setLinkVariable(vn: Int, value: Any): Unit
- abstract def setObserverVariable(vn: Int, value: Any): Unit
- abstract def setPatchVariable(vn: Int, value: Double): Unit
- abstract def setPatchVariable(vn: Int, value: Any): Unit
- abstract def setTurtleOrLinkVariable(varName: String, value: Any): Unit
- abstract def setTurtleVariable(vn: Int, value: Double): Unit
- abstract def setTurtleVariable(vn: Int, value: Any): Unit
-
abstract
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
- 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
-
abstract
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
- Agent
-
abstract
def
size: Double
Returns the size of this agent
Returns the size of this agent
- Definition Classes
- Agent
-
abstract
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
Concrete Value Members
-
def
addObserver(arg0: java.util.Observer): Unit
- Definition Classes
- Observable
-
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 getVariableCount(): Int
-
def
hasChanged(): Boolean
- Definition Classes
- Observable
-
def
id(): Long
Returns the id number of this agent.
- def isPartiallyTransparent(): Boolean
-
def
notifyObservers(arg0: Any): Unit
- Definition Classes
- Observable
-
def
notifyObservers(): Unit
- Definition Classes
- Observable
- def variableConstraint(vn: Int, con: ValueConstraint): Unit
- def variableConstraint(vn: Int): ValueConstraint
-
def
variables(): Array[AnyRef]
Returns raw array of all agent variables.
-
def
world(): World
Returns the world object associated with this agent