org.nlogo.agent

Patch

class Patch extends Agent with Patch

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

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 addTurtle(t: Turtle): Unit

  8. def alpha(): Int

    0-255, 0 = invisible, 255 = opaque

    0-255, 0 = invisible, 255 = opaque

    Definition Classes
    PatchAgent
  9. final def asInstanceOf[T0]: T0

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

    Attributes
    protected[util]
    Definition Classes
    Observable
  12. def clearTurtles(): Unit

  13. def clone(): AnyRef

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

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

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

    Definition Classes
    Observable
  17. def deleteObservers(): Unit

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

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

    Definition Classes
    AnyRef → Any
  20. def fastGetPatchAt(x: Int, y: Int): Patch

  21. def finalize(): Unit

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

    Definition Classes
    PatchAgent
  23. def getAgentClass(): Class[Patch]

    Definition Classes
    PatchAgent
  24. def getBreedVariable(name: String): AnyRef

    Definition Classes
    PatchAgent
  25. final def getClass(): java.lang.Class[_]

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

    Definition Classes
    PatchAgent
  27. def getLinkVariable(vn: Int): AnyRef

    Definition Classes
    PatchAgent
  28. def getNeighbors(): AgentSet

  29. def getNeighbors4(): AgentSet

  30. def getObserverVariable(vn: Int): AnyRef

    Definition Classes
    PatchAgent
  31. def getPatchAtOffsets(dx: Double, dy: Double): Patch

    Returns the patch at dx and dy from this patch

    Returns the patch at dx and dy from this patch

    dx

    the x offset from this patch

    dy

    the y offset from this patch

    Definition Classes
    PatchPatchAgent
  32. def getPatchEast(): Patch

  33. def getPatchNorth(): Patch

  34. def getPatchNorthEast(): Patch

  35. def getPatchNorthWest(): Patch

  36. def getPatchSouth(): Patch

  37. def getPatchSouthEast(): Patch

  38. def getPatchSouthWest(): Patch

  39. def getPatchVariable(vn: Int): AnyRef

    Definition Classes
    PatchAgent
  40. def getPatchVariableDouble(vn: Int): Double

  41. def getPatchWest(): Patch

  42. def getTurtleOrLinkVariable(varName: String): AnyRef

    Definition Classes
    PatchAgent
  43. def getTurtleVariable(vn: Int): AnyRef

    Definition Classes
    PatchAgent
  44. 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
    PatchAgentAgent
  45. def getVariableCount(): Int

    Definition Classes
    Agent
  46. def hasChanged(): Boolean

    Definition Classes
    Observable
  47. def hasLabel(): Boolean

    Returns true if the label variable contains something other than an empty string.

    Returns true if the label variable contains something other than an empty string.

    Definition Classes
    PatchPatch
  48. def hashCode(): Int

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

    Definition Classes
    Any
  51. def isPartiallyTransparent(): Boolean

    Definition Classes
    AgentAgent
  52. def label(label: Any): Unit

  53. def label(): AnyRef

  54. def labelColor(rgb: LogoList, varIndex: Int): Unit

  55. def labelColor(labelColor: Double): Unit

  56. def labelColor(labelColor: Double): Unit

  57. def labelColor(): AnyRef

    Returns the value of the label-color variable.

    Returns the value of the label-color variable.

    Definition Classes
    PatchPatch
  58. def labelString(): String

    Returns the value of the label variable.

    Returns the value of the label variable.

    Definition Classes
    PatchPatch
  59. final def ne(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    Observable
  63. def notifyObservers(): Unit

    Definition Classes
    Observable
  64. def pcolor(rgb: LogoList, varIndex: Int, allowAlpha: Boolean): Unit

  65. def pcolor(rgb: LogoList): Unit

  66. def pcolor(boxedColor: Double): Unit

  67. def pcolor(pcolor: Double): Unit

  68. def pcolor(): AnyRef

    Returns the value of the pcolor variable.

    Returns the value of the pcolor variable.

    Definition Classes
    PatchPatch
  69. def pcolorDouble(): Double

  70. def pcolorDoubleUnchecked(boxedColor: Double): Unit

  71. def pxcor(): Int

    Returns the value of the pxcor variable.

    Returns the value of the pxcor variable.

    Definition Classes
    PatchPatch
  72. def pycor(): Int

    Returns the value of the pycor variable.

    Returns the value of the pycor variable.

    Definition Classes
    PatchPatch
  73. def removeTurtle(t: Turtle): Unit

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

    Definition Classes
    PatchAgent
  75. def setChanged(): Unit

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

    Definition Classes
    PatchAgent
  77. def setLinkVariable(vn: Int, value: Double): Unit

    Definition Classes
    PatchAgent
  78. def setLinkVariable(vn: Int, value: Any): Unit

    Definition Classes
    PatchAgent
  79. def setObserverVariable(vn: Int, value: Any): Unit

    Definition Classes
    PatchAgent
  80. def setPatchVariable(vn: Int, value: Double): Unit

    Definition Classes
    PatchAgent
  81. def setPatchVariable(vn: Int, value: Any): Unit

    Definition Classes
    PatchAgent
  82. def setTurtleOrLinkVariable(varName: String, value: Any): Unit

    Definition Classes
    PatchAgent
  83. def setTurtleVariable(vn: Int, value: Double): Unit

    Definition Classes
    PatchAgent
  84. def setTurtleVariable(vn: Int, value: Any): Unit

    Definition Classes
    PatchAgent
  85. 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
    PatchAgentAgent
    Exceptions thrown
    LogoExceptionAgentException

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

  86. 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
    PatchAgent
  87. def size(): Double

    Returns the size of this agent

    Returns the size of this agent

    Definition Classes
    PatchAgent
  88. def sprout(c: Int, heading: Int, breed: AgentSet): Turtle

  89. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  90. def toString(): String

    Definition Classes
    Patch → AnyRef → Any
  91. def turtleCount(): Int

  92. def turtlesHere(): Iterable[Turtle]

  93. def turtlesHereAgentSet(): AgentSet

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

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

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

    Definition Classes
    PatchAgent
  97. 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
  98. final def wait(): Unit

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

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

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

    Returns the world object associated with this agent

    Returns the world object associated with this agent

    Definition Classes
    AgentAgent

Inherited from Patch

Inherited from Agent

Inherited from Comparable[Agent]

Inherited from Agent

Inherited from Observable

Inherited from AnyRef

Inherited from Any