Class

org.nlogo.agent

Agent

Related Doc: package agent

Permalink

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

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

Instance Constructors

  1. new Agent(world: World)

    Permalink

Abstract Value Members

  1. abstract def alpha: Int

    Permalink

    0-255, 0 = invisible, 255 = opaque

    0-255, 0 = invisible, 255 = opaque

    Definition Classes
    Agent
  2. abstract def classDisplayName(): String

    Permalink

    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

    Permalink
  4. abstract def getAgentClass(): Class[_ <: Agent]

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

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

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

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

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

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

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

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

    Permalink
  13. abstract def getVariable(vn: Int): AnyRef

    Permalink

    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 kind: AgentKind

    Permalink

    Returns the kind of this agent (observer, turtle, patch, or link.

    Returns the kind of this agent (observer, turtle, patch, or link.

    Definition Classes
    Agent
  15. abstract def setBreedVariable(name: String, value: Any): Unit

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

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

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

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

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

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

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

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

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

    Permalink
  25. abstract def setVariable(vn: Int, value: Any): Unit

    Permalink

    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

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

  26. abstract def shape: String

    Permalink

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

    Permalink

    Returns the size of this agent

    Returns the size of this agent

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

    Permalink

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addObserver(arg0: java.util.Observer): Unit

    Permalink
    Definition Classes
    Observable
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clearChanged(): Unit

    Permalink
    Attributes
    protected[java.util]
    Definition Classes
    Observable
  7. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    Observable
  10. def deleteObserver(arg0: java.util.Observer): Unit

    Permalink
    Definition Classes
    Observable
  11. def deleteObservers(): Unit

    Permalink
    Definition Classes
    Observable
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def getVariableCount(): Int

    Permalink
  17. def hasChanged(): Boolean

    Permalink
    Definition Classes
    Observable
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. def id(): Long

    Permalink

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

    Permalink
    Definition Classes
    Any
  21. def isPartiallyTransparent(): Boolean

    Permalink
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. def notifyObservers(arg0: Any): Unit

    Permalink
    Definition Classes
    Observable
  26. def notifyObservers(): Unit

    Permalink
    Definition Classes
    Observable
  27. def setChanged(): Unit

    Permalink
    Attributes
    protected[java.util]
    Definition Classes
    Observable
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def toString(): String

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

    Permalink
  31. def variableConstraint(vn: Int): ValueConstraint

    Permalink
  32. def variables(): Array[AnyRef]

    Permalink

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def world(): World

    Permalink

    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 api.Agent

Inherited from Observable

Inherited from AnyRef

Inherited from Any

Ungrouped