abstract class Agent extends AgentJ with api.Agent with Comparable[Agent]

Source
Agent.scala
Linear Supertypes
Comparable[Agent], api.Agent, AgentJ, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Agent
  2. Comparable
  3. Agent
  4. AgentJ
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Agent(world: World)

Abstract Value Members

  1. abstract def agentBit: Int
  2. abstract def alpha: Int

    0-255, 0 = invisible, 255 = opaque

    0-255, 0 = invisible, 255 = opaque

    Definition Classes
    Agent
  3. abstract 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)

    Definition Classes
    AgentAgent
  4. abstract def getBreedVariable(name: String): AnyRef
    Annotations
    @throws( classOf[AgentException] )
  5. abstract def getLinkBreedVariable(name: String): AnyRef
    Annotations
    @throws( classOf[AgentException] )
  6. abstract def getLinkVariable(vn: Int): AnyRef
    Annotations
    @throws( classOf[AgentException] )
  7. abstract def getPatchAtOffsets(dx: Double, dy: Double): Patch
    Annotations
    @throws( classOf[AgentException] )
  8. abstract def getPatchVariable(vn: Int): AnyRef
    Annotations
    @throws( classOf[AgentException] )
  9. abstract def getTurtleOrLinkVariable(varName: String): AnyRef
    Annotations
    @throws( classOf[AgentException] )
  10. abstract def getTurtleVariable(vn: Int): AnyRef
    Annotations
    @throws( classOf[AgentException] )
  11. abstract 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

    vn

    the index into the agent variable array

    Definition Classes
    AgentAgent
  12. abstract def kind: AgentKind

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

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

    Definition Classes
    Agent
  13. abstract def setBreedVariable(name: String, value: AnyRef): Unit
    Annotations
    @throws( classOf[AgentException] )
  14. abstract def setLinkBreedVariable(name: String, value: AnyRef): Unit
    Annotations
    @throws( classOf[AgentException] )
  15. abstract def setLinkVariable(vn: Int, value: Double): Unit
    Annotations
    @throws( classOf[AgentException] )
  16. abstract def setLinkVariable(vn: Int, value: AnyRef): Unit
    Annotations
    @throws( classOf[AgentException] )
  17. abstract def setPatchVariable(vn: Int, value: Double): Unit
    Annotations
    @throws( classOf[AgentException] )
  18. abstract def setPatchVariable(vn: Int, value: AnyRef): Unit
    Annotations
    @throws( classOf[AgentException] )
  19. abstract def setTurtleOrLinkVariable(varName: String, value: AnyRef): Unit
    Annotations
    @throws( classOf[AgentException] )
  20. abstract def setTurtleVariable(vn: Int, value: Double): Unit
    Annotations
    @throws( classOf[AgentException] )
  21. abstract def setTurtleVariable(vn: Int, value: AnyRef): Unit
    Annotations
    @throws( classOf[AgentException] )
  22. abstract 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

    vn

    the index into the agent variable array

    value

    the new value for the variable

    Definition Classes
    AgentAgent
    Annotations
    @throws( classOf[AgentException] )
    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

  23. 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
  24. abstract def size: Double

    Returns the size of this agent

    Returns the size of this agent

    Definition Classes
    Agent
  25. 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.

    vn

    the index of the variable

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  6. def compareTo(a: Agent): Int
    Definition Classes
    Agent → Comparable
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  11. def id: Long

    Returns the id number of this agent.

    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

    Definition Classes
    AgentAgent
  12. def id_=(newId: Long): Unit
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  17. def setId(newId: Long): Unit
  18. def setVariables(v: Array[AnyRef]): Unit
  19. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. def variables: Array[AnyRef]

    Returns raw array of all agent variables.

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

    Definition Classes
    AgentAgent
  22. def variables_=(v: Array[AnyRef]): Unit
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. def world: World

    Returns the world object associated with this agent

    Returns the world object associated with this agent

    Definition Classes
    AgentAgent

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Comparable[Agent]

Inherited from api.Agent

Inherited from AgentJ

Inherited from AnyRef

Inherited from Any

Ungrouped