org.nlogo.agent

Agent

class Agent extends Observable with Agent with Comparable[Agent]

Attributes
abstract
Source
Agent.java
Linear Supertypes
Comparable[Agent], Agent, Observable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Agent
  2. Comparable
  3. Agent
  4. Observable
  5. AnyRef
  6. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Agent (world: World)

Abstract Value Members

  1. def alpha : Int

    0-255, 0 = invisible, 255 = opaque

    0-255, 0 = invisible, 255 = opaque

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

    Attributes
    abstract
    Definition Classes
    AgentAgent
  3. def getAgentBit (): Int

    Attributes
    abstract
  4. def getAgentClass (): java.lang.Class[_ <: org.nlogo.agent.Agent]

    Attributes
    abstract
  5. def getBreedVariable (name: String): AnyRef

    Attributes
    abstract
  6. def getLinkBreedVariable (name: String): AnyRef

    Attributes
    abstract
  7. def getLinkVariable (vn: Int): AnyRef

    Attributes
    abstract
  8. def getObserverVariable (vn: Int): AnyRef

    Attributes
    abstract
  9. def getPatchAtOffsets (dx: Double, dy: Double): Patch

    Attributes
    abstract
  10. def getPatchVariable (vn: Int): AnyRef

    Attributes
    abstract
  11. def getTurtleOrLinkVariable (varName: String): AnyRef

    Attributes
    abstract
  12. def getTurtleVariable (vn: Int): AnyRef

    Attributes
    abstract
  13. 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

    Attributes
    abstract
    Definition Classes
    AgentAgent
  14. def setBreedVariable (name: String, value: Any): Unit

    Attributes
    abstract
  15. def setLinkBreedVariable (name: String, value: Any): Unit

    Attributes
    abstract
  16. def setLinkVariable (vn: Int, value: Double): Unit

    Attributes
    abstract
  17. def setLinkVariable (vn: Int, value: Any): Unit

    Attributes
    abstract
  18. def setObserverVariable (vn: Int, value: Any): Unit

    Attributes
    abstract
  19. def setPatchVariable (vn: Int, value: Double): Unit

    Attributes
    abstract
  20. def setPatchVariable (vn: Int, value: Any): Unit

    Attributes
    abstract
  21. def setTurtleOrLinkVariable (varName: String, value: Any): Unit

    Attributes
    abstract
  22. def setTurtleVariable (vn: Int, value: Double): Unit

    Attributes
    abstract
  23. def setTurtleVariable (vn: Int, value: Any): Unit

    Attributes
    abstract
  24. 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

    Attributes
    abstract
    Definition Classes
    AgentAgent
  25. 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
    abstract
    Definition Classes
    Agent
  26. def size : Double

    Returns the size of this agent

    Returns the size of this agent

    Attributes
    abstract
    Definition Classes
    Agent

Concrete Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def addObserver (arg0: Observer): Unit

    Definition Classes
    Observable
  7. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  8. def clearChanged (): Unit

    Attributes
    protected[util]
    Definition Classes
    Observable
  9. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. def compareTo (a: Agent): Int

    Definition Classes
    Agent → Comparable
  11. def countObservers (): Int

    Definition Classes
    Observable
  12. def deleteObserver (arg0: Observer): Unit

    Definition Classes
    Observable
  13. def deleteObservers (): Unit

    Definition Classes
    Observable
  14. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  15. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  16. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  17. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  18. def getVariableCount (): Int

  19. def hasChanged (): Boolean

    Definition Classes
    Observable
  20. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  21. 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
  22. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  23. def isPartiallyTransparent (): Boolean

    Definition Classes
    AgentAgent
  24. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  25. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  26. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  27. def notifyObservers (arg0: Any): Unit

    Definition Classes
    Observable
  28. def notifyObservers (): Unit

    Definition Classes
    Observable
  29. def setChanged (): Unit

    Attributes
    protected[util]
    Definition Classes
    Observable
  30. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  31. def toString (): String

    Definition Classes
    AnyRef → Any
  32. def variableConstraint (vn: Int, con: ValueConstraint): Unit

  33. def variableConstraint (vn: Int): ValueConstraint

  34. 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
  35. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  36. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  37. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  38. def world (): World

    Returns the world object associated with this agent

    Returns the world object associated with this agent

    Definition Classes
    AgentAgent

Inherited from Comparable[Agent]

Inherited from Agent

Inherited from Observable

Inherited from AnyRef

Inherited from Any