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
-
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- def getVariableCount(): Int
-
def
hasChanged(): Boolean
- Definition Classes
- Observable
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
id(): Long
Returns the id number of this agent.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPartiallyTransparent(): Boolean
-
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
setChanged(): Unit
- Attributes
- protected[java.util]
- Definition Classes
- Observable
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def variableConstraint(vn: Int, con: ValueConstraint): Unit
- def variableConstraint(vn: Int): ValueConstraint
-
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