NetLogo 6.2.2 - org.nlogo.agent.Patch
Keywords: NetLogo 6.2.2 org.nlogo.agent.Patch

NetLogo6.2.2 < Back
 

# Packages

-  package root
  Definition Classes
    root
-  package org
  Definition Classes
    root
-  package nlogo
  Definition Classes
    org
-  package agent
  Definition Classes
    nlogo
- AbstractExporter
- Agent
- Agent3D
- AgentBit
- AgentColors
- AgentIterator
- AgentManagement
- AgentParserCreator
- AgentSet
- AgentSetBuilder
- AllStoredValues
- ArrayAgentSet
- BooleanConstraint
- Box
- BreedShapes
- ChooserConstraint
- CompilationManagement
- ConstantSliderConstraint
- Constraints
- CoreWorld
- DimensionManagement
- Directedness
- Drawing3D
- DrawingLine3D
- DummyLink
- DynamicSliderConstraint
- Gamma
- GrossWorldState
- HeadingSmoother
- HorizCylinder
- ImportPatchColors
- Importer
- Importer3D
- ImporterJ
- InRadiusOrCone
- InRadiusOrCone3D
- InRadiusSimple
- IndexedAgentSet
- InputBoxConstraint
- Layouts
- Link
- Link3D
- LinkFactory
- LinkManagement
- LinkManager
- LinkManagerImpl
- LinkStamp3D
- LiteralAgentParser
- Neighbors
- NumericConstraint
- Observer
- Observer3D
- ObserverManagement
- OrientatableObserver
- OutputObject
- Patch
- Patch3D
- PatchException
- Protractor
- Protractor3D
- Realloc
- RootsTable
- Rotations3D
- SliderConstraint
- TickCounter
- TieManager
- TieManager3D
- Topology
- Topology3D
- Torus
- Torus3D
- Trail
- TreeAgentSet
- TrigTables
- Turtle
- Turtle2D
- Turtle3D
- TurtleManagement
- TurtleStamp3D
- VertCylinder
- WatcherManagement
- World
- World2D
- World3D
- WorldKernel
- XBlocks
- XWraps
- YBlocks
- YWraps

c

org.nlogo.agent

# Patch 

###

#### class Patch extends Agent with api.Patch with AgentColors

Annotations
  @strictfp()
Source
  Patch.java

Linear Supertypes
AgentColors, api.Patch, Agent, Comparable[Agent], api.Agent, AgentJ, AnyRef, Any
Known Subclasses
Patch3D
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. Patch
2. AgentColors
3. Patch
4. Agent
5. Comparable
6. Agent
7. AgentJ
8. AnyRef
9. Any

1. Hide All
2. Show All

Visibility

1. Public
2. All

### 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.  def addTurtle(t: Turtle): Unit
5.  def agentBit(): Int
   Definition Classes
     Patch → Agent
   Annotations
     @Override()
6.  def alpha(): Int

   0-255, 0 = invisible, 255 = opaque

   0-255, 0 = invisible, 255 = opaque

   Definition Classes
     Patch → Agent
7.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
8.  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
     Patch → Agent → Agent
   Annotations
     @Override()
9.  def clearTurtles(): Unit
10.  def clone(): AnyRef
    Attributes
      protected[lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( ... ) @native()
11.  def compareTo(a: Agent): Int
    Definition Classes
      Agent → Comparable
12.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
13.  def equals(arg0: Any): Boolean
    Definition Classes
      AnyRef → Any
14.  def fastGetPatchAt(x: Int, y: Int): Patch
15.  def finalize(): Unit
    Attributes
      protected[lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
16.  def getBreedVariable(name: String): AnyRef
    Definition Classes
      Patch → Agent
    Annotations
      @Override()
17.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
18.  def getLinkBreedVariable(name: String): AnyRef
    Definition Classes
      Patch → Agent
    Annotations
      @Override()
19.  def getLinkVariable(vn: Int): AnyRef
    Definition Classes
      Patch → Agent
    Annotations
      @Override()
20.  def getNeighbors(): IndexedAgentSet
21.  def getNeighbors4(): IndexedAgentSet
22.  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
      Patch → Patch → Agent
    Annotations
      @Override()
23.  def getPatchEast(): Patch
24.  def getPatchNorth(): Patch
25.  def getPatchNorthEast(): Patch
26.  def getPatchNorthWest(): Patch
27.  def getPatchSouth(): Patch
28.  def getPatchSouthEast(): Patch
29.  def getPatchSouthWest(): Patch
30.  def getPatchVariable(vn: Int): AnyRef
    Definition Classes
      Patch → Agent
    Annotations
      @Override()
31.  def getPatchVariableDouble(vn: Int): Double
32.  def getPatchWest(): Patch
33.  def getTurtleOrLinkVariable(varName: String): AnyRef
    Definition Classes
      Patch → Agent
    Annotations
      @Override()
34.  def getTurtleVariable(vn: Int): AnyRef
    Definition Classes
      Patch → Agent
    Annotations
      @Override()
35.  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
      Patch → Agent → Agent
    Annotations
      @Override()
36.  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
      Patch → Patch
37.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
38.  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
      Agent → Agent
39.  def id_=(newId: Long): Unit
    Definition Classes
      Agent
40.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
41.  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
      Patch → Agent
42.  def label(label: Any): Unit
43.  def label(): AnyRef
44.  def labelColor(rgb: LogoList, varIndex: Int): Unit
45.  def labelColor(labelColor: Double): Unit
46.  def labelColor(labelColor: Double): Unit
47.  def labelColor(): AnyRef

    Returns the value of the `label-color` variable.

    Returns the value of the `label-color` variable.

    Definition Classes
      Patch → Patch
48.  def labelString(): String

    Returns the value of the `label` variable.

    Returns the value of the `label` variable.

    Definition Classes
      Patch → Patch
49.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
50.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
51.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
52.  def pcolor(rgb: LogoList, varIndex: Int, allowAlpha: Boolean): Unit
53.  def pcolor(rgb: LogoList): Unit
54.  def pcolor(boxedColor: Double): Unit
55.  def pcolor(pcolor: Double): Unit
56.  def pcolor(): AnyRef

    Returns the value of the `pcolor` variable.

    Returns the value of the `pcolor` variable.

    Definition Classes
      Patch → Patch
57.  def pcolorDoubleUnchecked(boxedColor: Double): Unit
58.  def pxcor(): Int

    Returns the value of the `pxcor` variable.

    Returns the value of the `pxcor` variable.

    Definition Classes
      Patch → Patch
59.  def pycor(): Int

    Returns the value of the `pycor` variable.

    Returns the value of the `pycor` variable.

    Definition Classes
      Patch → Patch
60.  def realloc(oldProgram: Program, newProgram: Program): Agent
    Definition Classes
      Patch → Agent
    Annotations
      @Override()
61.  def removeTurtle(t: Turtle): Unit
62.  def setBreedVariable(name: String, value: Any): Unit
    Definition Classes
      Patch → Agent
    Annotations
      @Override()
63.  def setId(newId: Long): Unit
    Definition Classes
      Agent
64.  def setLinkBreedVariable(name: String, value: Any): Unit
    Definition Classes
      Patch → Agent
    Annotations
      @Override()
65.  def setLinkVariable(vn: Int, value: Double): Unit
    Definition Classes
      Patch → Agent
    Annotations
      @Override()
66.  def setLinkVariable(vn: Int, value: Any): Unit
    Definition Classes
      Patch → Agent
    Annotations
      @Override()
67.  def setPatchVariable(vn: Int, value: Double): Unit
    Definition Classes
      Patch → Agent
    Annotations
      @Override()
68.  def setPatchVariable(vn: Int, value: Any): Unit
    Definition Classes
      Patch → Agent
    Annotations
      @Override()
69.  def setTurtleOrLinkVariable(varName: String, value: Any): Unit
    Definition Classes
      Patch → Agent
    Annotations
      @Override()
70.  def setTurtleVariable(vn: Int, value: Double): Unit
    Definition Classes
      Patch → Agent
    Annotations
      @Override()
71.  def setTurtleVariable(vn: Int, value: Any): Unit
    Definition Classes
      Patch → Agent
    Annotations
      @Override()
72.  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
      Patch → Agent → Agent
    Annotations
      @Override()
    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

73.  def setVariables(v: Array[AnyRef]): Unit
    Definition Classes
      Agent
74.  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
      Patch → Patch → Agent
75.  def size(): Double

    Returns the size of this agent

    Returns the size of this agent

    Definition Classes
      Patch → Agent
76.  def sprout(c: Int, heading: Int, breed: AgentSet): Turtle
77.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
78.  def toString(): String
    Definition Classes
      Patch → AnyRef → Any
    Annotations
      @Override()
79.  def turtleCount(): Int
80.  def turtlesHere(): Iterable[Turtle]
81.  def turtlesHereAgentSet(): AgentSet
82.  def validRGBList(rgb: LogoList, allowAlpha: Boolean): Unit
    Definition Classes
      AgentColors
    Annotations
      @throws( classOf[AgentException] )
83.  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
      Patch → Agent
84.  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
      Agent → Agent
85.  def variables_=(v: Array[AnyRef]): Unit
    Definition Classes
      Agent
86.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
87.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
88.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... ) @native()
89.  def world: World

    Returns the world object associated with this agent

    Returns the world object associated with this agent

    Definition Classes
      Agent → Agent

### Inherited from AgentColors

### Inherited from api.Patch

### Inherited from Agent

### Inherited from Comparable[Agent]

### Inherited from api.Agent

### Inherited from AgentJ

### Inherited from AnyRef

### Inherited from Any

### Ungrouped