AgentColors

org.nlogo.agent.AgentColors
trait AgentColors extends Agent

Attributes

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

Members list

Value members

Concrete methods

def validRGBList(rgb: LogoList, allowAlpha: Boolean): Unit

Attributes

Source
AgentColors.scala

Inherited methods

override def compareTo(a: Agent): Int

Attributes

Definition Classes
Agent -> Comparable
Inherited from:
Agent
Source
Agent.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 setId(newId: Long): Unit

Attributes

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

Attributes

Inherited from:
Agent
Source
Agent.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

Inherited and Abstract methods

def agentBit: Int

Attributes

Inherited from:
Agent
Source
Agent.scala
def alpha: Int

0-255, 0 = invisible, 255 = opaque

0-255, 0 = invisible, 255 = opaque

Attributes

Inherited from:
Agent
Source
Agent.scala

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

Inherited from:
Agent
Source
Agent.scala
def getBreedVariable(name: String): AnyRef

Attributes

Inherited from:
Agent
Source
Agent.scala
def getLinkBreedVariable(name: String): AnyRef

Attributes

Inherited from:
Agent
Source
Agent.scala
def getLinkVariable(vn: Int): AnyRef

Attributes

Inherited from:
Agent
Source
Agent.scala
def getPatchAtOffsets(dx: Double, dy: Double): Patch

Attributes

Inherited from:
Agent
Source
Agent.scala
def getPatchVariable(vn: Int): AnyRef

Attributes

Inherited from:
Agent
Source
Agent.scala
def getTurtleOrLinkVariable(varName: String): AnyRef

Attributes

Inherited from:
Agent
Source
Agent.scala
def getTurtleVariable(vn: Int): AnyRef

Attributes

Inherited from:
Agent
Source
Agent.scala
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

Inherited from:
Agent
Source
Agent.scala

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

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

Attributes

Inherited from:
Agent
Source
Agent.scala
def setBreedVariable(name: String, value: AnyRef): Unit

Attributes

Inherited from:
Agent
Source
Agent.scala
def setLinkBreedVariable(name: String, value: AnyRef): Unit

Attributes

Inherited from:
Agent
Source
Agent.scala
def setLinkVariable(vn: Int, value: Double): Unit

Attributes

Inherited from:
Agent
Source
Agent.scala
def setLinkVariable(vn: Int, value: AnyRef): Unit

Attributes

Inherited from:
Agent
Source
Agent.scala
def setPatchVariable(vn: Int, value: Double): Unit

Attributes

Inherited from:
Agent
Source
Agent.scala
def setPatchVariable(vn: Int, value: AnyRef): Unit

Attributes

Inherited from:
Agent
Source
Agent.scala
def setTurtleOrLinkVariable(varName: String, value: AnyRef): Unit

Attributes

Inherited from:
Agent
Source
Agent.scala
def setTurtleVariable(vn: Int, value: Double): Unit

Attributes

Inherited from:
Agent
Source
Agent.scala
def setTurtleVariable(vn: Int, value: AnyRef): Unit

Attributes

Inherited from:
Agent
Source
Agent.scala
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

Inherited from:
Agent
Source
Agent.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

Inherited from:
Agent
Source
Agent.scala
def size: Double

Returns the size of this agent

Returns the size of this agent

Attributes

Inherited from:
Agent
Source
Agent.scala
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

Inherited from:
Agent
Source
Agent.scala

Inherited fields

var _id: Long

Attributes

Inherited from:
AgentJ (hidden)
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