Agent
NetLogo agents include turtles, patches, links and the observer.
Attributes
- Source
- Agent.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class Agenttrait AgentColorstrait Constraintsclass Observertrait Linktrait Link3Dclass Link3Dtrait LinkStamp3Dclass LinkStamp3Dtrait Observertrait Patchtrait Patch3Dtrait Turtletrait Turtle3Dtrait TurtleStamp3Dclass TurtleStamp3DShow all
Members list
Value members
Abstract methods
0-255, 0 = invisible, 255 = opaque
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
- Source
- Agent.scala
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
- Source
- Agent.scala
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
- Source
- Agent.scala
Returns the kind of this agent (Turtle, Link, Patch, Observer).
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
- Source
- Agent.scala
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
- Agent.scala
Returns the size of this agent
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
- Source
- Agent.scala
Returns the world object associated with this agent