t

org.nlogo.agent

Constraints

trait Constraints extends Agent

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

Abstract Value Members

  1. abstract def agentBit: Int
    Definition Classes
    Agent
  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
    Definition Classes
    Agent
    Annotations
    @throws( classOf[AgentException] )
  5. abstract def getLinkBreedVariable(name: String): AnyRef
    Definition Classes
    Agent
    Annotations
    @throws( classOf[AgentException] )
  6. abstract def getLinkVariable(vn: Int): AnyRef
    Definition Classes
    Agent
    Annotations
    @throws( classOf[AgentException] )
  7. abstract def getPatchAtOffsets(dx: Double, dy: Double): Patch
    Definition Classes
    Agent
    Annotations
    @throws( classOf[AgentException] )
  8. abstract def getPatchVariable(vn: Int): AnyRef
    Definition Classes
    Agent
    Annotations
    @throws( classOf[AgentException] )
  9. abstract def getTurtleOrLinkVariable(varName: String): AnyRef
    Definition Classes
    Agent
    Annotations
    @throws( classOf[AgentException] )
  10. abstract def getTurtleVariable(vn: Int): AnyRef
    Definition Classes
    Agent
    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
    Definition Classes
    Agent
    Annotations
    @throws( classOf[AgentException] )
  14. abstract def setLinkBreedVariable(name: String, value: AnyRef): Unit
    Definition Classes
    Agent
    Annotations
    @throws( classOf[AgentException] )
  15. abstract def setLinkVariable(vn: Int, value: Double): Unit
    Definition Classes
    Agent
    Annotations
    @throws( classOf[AgentException] )
  16. abstract def setLinkVariable(vn: Int, value: AnyRef): Unit
    Definition Classes
    Agent
    Annotations
    @throws( classOf[AgentException] )
  17. abstract def setPatchVariable(vn: Int, value: Double): Unit
    Definition Classes
    Agent
    Annotations
    @throws( classOf[AgentException] )
  18. abstract def setPatchVariable(vn: Int, value: AnyRef): Unit
    Definition Classes
    Agent
    Annotations
    @throws( classOf[AgentException] )
  19. abstract def setTurtleOrLinkVariable(varName: String, value: AnyRef): Unit
    Definition Classes
    Agent
    Annotations
    @throws( classOf[AgentException] )
  20. abstract def setTurtleVariable(vn: Int, value: Double): Unit
    Definition Classes
    Agent
    Annotations
    @throws( classOf[AgentException] )
  21. abstract def setTurtleVariable(vn: Int, value: AnyRef): Unit
    Definition Classes
    Agent
    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

    Definition Classes
    Agent

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 assertConstraint(vn: Int, value: AnyRef): Unit
    Annotations
    @throws( classOf[api.AgentException] )
  6. def clearConstraints(): Unit
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  8. def compareTo(a: Agent): Int
    Definition Classes
    Agent → Comparable
  9. def constraint(vn: Int): ValueConstraint
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  14. 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
  15. def id_=(newId: Long): Unit
    Definition Classes
    Agent
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  20. def setConstraint(vn: Int, con: ValueConstraint): Unit
  21. def setId(newId: Long): Unit
    Definition Classes
    Agent
  22. def setVariables(v: Array[AnyRef]): Unit
    Definition Classes
    Agent
  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. 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
  26. def variables_=(v: Array[AnyRef]): Unit
    Definition Classes
    Agent
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. 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 Agent

Inherited from Comparable[Agent]

Inherited from api.Agent

Inherited from AgentJ

Inherited from AnyRef

Inherited from Any

Ungrouped