org.nlogo.agent

Agent

abstract class Agent extends Observable with Agent with Comparable[Agent]

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. abstract def alpha: Int

    0-255, 0 = invisible, 255 = opaque

    0-255, 0 = invisible, 255 = opaque

    Definition Classes
    Agent
  2. 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
  3. abstract def getAgentBit(): Int

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

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

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

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

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

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

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

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

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

  13. 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
  14. abstract def setBreedVariable(name: String, value: Any): Unit

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

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

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

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

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

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

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

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

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

  24. 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
    AgentAgent
    Exceptions thrown
    LogoExceptionAgentException

    If value is the wrong type for the given variable or if you try to change variables that cannot be changed

  25. 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
  26. abstract def size: Double

    Returns the size of this agent

    Returns the size of this agent

    Definition Classes
    Agent
  27. abstract def variableName(vn: Int): String

Concrete Value Members

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

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

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

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

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

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

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

    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. final def eq(arg0: AnyRef): Boolean

    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. final def getClass(): java.lang.Class[_]

    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. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. def isPartiallyTransparent(): Boolean

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

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

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

    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. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

    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