org.nlogo.agent

Turtle

class Turtle extends Agent with Turtle

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

Instance Constructors

  1. new Turtle(world: World, breed: AgentSet, xcor: Double, ycor: Double)

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

    0-255, 0 = invisible, 255 = opaque

    0-255, 0 = invisible, 255 = opaque

    Definition Classes
    TurtleAgent
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. 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
    TurtleAgentAgent
  10. def clearChanged(): Unit

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def color(rgb: LogoList, varIndex: Int): Unit

  13. def color(): AnyRef

    Returns the value of the color variable, a Double or LogoList.

    Returns the value of the color variable, a Double or LogoList.

    Definition Classes
    TurtleTurtle
  14. def colorDouble(boxedColor: Double): Unit

  15. def colorDoubleUnchecked(boxedColor: Double): Unit

  16. def compareTo(a: Agent): Int

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

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

    Definition Classes
    Observable
  19. def deleteObservers(): Unit

    Definition Classes
    Observable
  20. def die(): Unit

  21. def dx(): Double

  22. def dy(): Double

  23. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  25. def face(x: Double, y: Double, wrap: Boolean): Unit

  26. def face(agent: Agent, wrap: Boolean): Unit

  27. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  28. def getAgentBit(): Int

    Definition Classes
    TurtleAgent
  29. def getAgentClass(): Class[Turtle]

    Definition Classes
    TurtleAgent
  30. def getBreed(): AgentSet

    Returns the breed AgentSet of this turtle, all turtles if the turtle is unbreeded.

    Returns the breed AgentSet of this turtle, all turtles if the turtle is unbreeded.

    Definition Classes
    TurtleTurtle
  31. def getBreedIndex(): Int

    Returns the index of this turtle's breed.

    Returns the index of this turtle's breed.

    Definition Classes
    TurtleTurtle
  32. def getBreedVariable(name: String): AnyRef

    Definition Classes
    TurtleAgent
  33. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  34. def getLinkBreedVariable(name: String): AnyRef

    Definition Classes
    TurtleAgent
  35. def getLinkVariable(vn: Int): AnyRef

    Definition Classes
    TurtleAgent
  36. def getObserverVariable(vn: Int): AnyRef

    Definition Classes
    TurtleAgent
  37. def getPatchAtHeadingAndDistance(delta: Double, distance: Double): Patch

  38. def getPatchAtOffsets(dx: Double, dy: Double): Patch

    Definition Classes
    TurtleAgent
  39. def getPatchHere(): Patch

    Returns the patch that this turtle is on.

    Returns the patch that this turtle is on.

    Definition Classes
    TurtleTurtle
  40. def getPatchVariable(vn: Int): AnyRef

    Definition Classes
    TurtleAgent
  41. def getTurtleOrLinkVariable(varName: String): AnyRef

    Definition Classes
    TurtleAgent
  42. def getTurtleVariable(vn: Int): AnyRef

    Definition Classes
    TurtleAgent
  43. def getTurtleVariableDouble(vn: Int): Double

  44. def getVariable(name: String): AnyRef

  45. 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
    TurtleAgentAgent
  46. def getVariableCount(): Int

    Definition Classes
    Agent
  47. def hasChanged(): Boolean

    Definition Classes
    Observable
  48. def hasLabel(): Boolean

    Returns true if the label variable has a non-empty string value.

    Returns true if the label variable has a non-empty string value.

    Definition Classes
    TurtleTurtle
  49. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  50. def hatch(): Turtle

  51. def heading(heading: Double): Unit

  52. def heading(heading: Double, seenTurtles: Set[Turtle]): Unit

  53. def heading(heading: Double): Unit

    Sets the value of the heading variable

    Sets the value of the heading variable

    Definition Classes
    TurtleTurtle
  54. def heading(): Double

    Returns the value of the heading variable.

    Returns the value of the heading variable.

    Definition Classes
    TurtleTurtle
  55. def hidden(hidden: Boolean): Unit

  56. def hidden(): Boolean

    Returns the value of the hidden? variable.

    Returns the value of the hidden? variable.

    Definition Classes
    TurtleTurtle
  57. def home(): Unit

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

    Definition Classes
    Any
  60. def isPartiallyTransparent(): Boolean

    Definition Classes
    AgentAgent
  61. def jump(distance: Double): Unit

    Moves the turtle forward distance as if the command jump were used

    Moves the turtle forward distance as if the command jump were used

    distance

    this amount to jump

    Definition Classes
    TurtleTurtle
  62. def label(label: Any): Unit

  63. def label(): AnyRef

  64. def labelColor(rgb: LogoList, valueIndex: Int): Unit

  65. def labelColor(labelColor: Double): Unit

  66. def labelColor(): AnyRef

    Returns the value of the label-color variable.

    Returns the value of the label-color variable.

    Definition Classes
    TurtleTurtle
  67. def labelString(): String

    Returns the value of the label variable.

    Returns the value of the label variable.

    Definition Classes
    TurtleTurtle
  68. def lineThickness(): Double

    Returns the line-thickness.

    Returns the line-thickness.

    Definition Classes
    TurtleTurtle
  69. def moveTo(otherAgent: Agent): Unit

  70. def moveToPatchCenter(): Unit

  71. final def ne(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    Observable
  75. def notifyObservers(): Unit

    Definition Classes
    Observable
  76. def ownsVariable(name: String): Boolean

  77. def penMode(penMode: String): Unit

  78. def penMode(): String

  79. def penSize(penSize: Double): Unit

  80. def penSize(): Double

  81. def setBreed(breed: AgentSet): Unit

  82. def setBreedVariable(name: String, value: Any): Unit

    Definition Classes
    TurtleAgent
  83. def setChanged(): Unit

    Attributes
    protected[util]
    Definition Classes
    Observable
  84. def setLinkBreedVariable(name: String, value: Any): Unit

    Definition Classes
    TurtleAgent
  85. def setLinkVariable(vn: Int, value: Double): Unit

    Definition Classes
    TurtleAgent
  86. def setLinkVariable(vn: Int, value: Any): Unit

    Definition Classes
    TurtleAgent
  87. def setObserverVariable(vn: Int, value: Any): Unit

    Definition Classes
    TurtleAgent
  88. def setPatchVariable(vn: Int, value: Double): Unit

    Definition Classes
    TurtleAgent
  89. def setPatchVariable(vn: Int, value: Any): Unit

    Definition Classes
    TurtleAgent
  90. def setTurtleOrLinkVariable(varName: String, value: Any): Unit

    Definition Classes
    TurtleAgent
  91. def setTurtleVariable(vn: Int, value: Any): Unit

    Definition Classes
    TurtleAgent
  92. def setTurtleVariable(vn: Int, value: Double): Unit

    Definition Classes
    TurtleAgent
  93. 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
    TurtleAgentAgent
    Exceptions thrown
    LogoExceptionAgentException

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

  94. def shape(shape: String): Unit

  95. 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
    TurtleAgent
  96. def shortestPathX(x: Double): Double

  97. def shortestPathY(y: Double): Double

  98. def size(size: Double): Unit

  99. def size(): Double

    Returns the size of this agent

    Returns the size of this agent

    Definition Classes
    TurtleAgent
  100. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  101. def toString(): String

    Definition Classes
    Turtle → AnyRef → Any
  102. def turnRight(delta: Double): Unit

  103. def variableConstraint(vn: Int, con: ValueConstraint): Unit

    Definition Classes
    Agent
  104. def variableConstraint(vn: Int): ValueConstraint

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

    Definition Classes
    TurtleAgent
  106. 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
  107. final def wait(): Unit

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

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

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

    Returns the world object associated with this agent

    Returns the world object associated with this agent

    Definition Classes
    AgentAgent
  111. def xandycor(xcor: Double, ycor: Double): Unit

  112. def xandycor(xcor: Double, ycor: Double, seenTurtles: Set[Turtle]): Unit

  113. def xandycor(xcor: Double, ycor: Double): Unit

  114. def xandycorHelper(xcor: Double, ycor: Double): Unit

  115. def xcor(xcor: Double): Unit

  116. def xcor(xcor: Double): Unit

  117. def xcor(): Double

    Returns the value of the xcor variable.

    Returns the value of the xcor variable.

    Definition Classes
    TurtleTurtle
  118. def ycor(ycor: Double): Unit

  119. def ycor(ycor: Double): Unit

  120. def ycor(): Double

    Returns the value of the ycor variable.

    Returns the value of the ycor variable.

    Definition Classes
    TurtleTurtle

Inherited from Turtle

Inherited from Agent

Inherited from Comparable[Agent]

Inherited from Agent

Inherited from Observable

Inherited from AnyRef

Inherited from Any