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

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

# World2D 

###

#### class World2D extends World with CompilationManagement

Source
  World.scala

Linear Supertypes
CompilationManagement, World, AgentManagement, ObserverManagement, LinkManagement, TurtleManagement, GrossWorldState, CoreWorld, WatcherManagement, WorldKernel, WorldWithWorldRenderable, WorldRenderable, api.World, DimensionManagement, WorldJ, AnyRef, Any
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. World2D
2. CompilationManagement
3. World
4. AgentManagement
5. ObserverManagement
6. LinkManagement
7. TurtleManagement
8. GrossWorldState
9. CoreWorld
10. WatcherManagement
11. WorldKernel
12. WorldWithWorldRenderable
13. WorldRenderable
14. World
15. DimensionManagement
16. WorldJ
17. AnyRef
18. Any

1. Hide All
2. Show All

Visibility

1. Public
2. All

### Instance Constructors

1.  new World2D()

### 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.  val _links: TreeAgentSet
   Attributes
     protected
   Definition Classes
     World2D → CoreWorld
5.  val _maxPxcorBoxed: Double
   Definition Classes
     DimensionManagement
6.  val _maxPycorBoxed: Double
   Definition Classes
     DimensionManagement
7.  val _mayHavePartiallyTransparentObjects: Boolean
   Attributes
     protected
   Definition Classes
     GrossWorldState
8.  val _minPxcorBoxed: Double
   Definition Classes
     DimensionManagement
9.  val _minPycorBoxed: Double
   Definition Classes
     DimensionManagement
10.  val _patchColors: Array[Int]
    Attributes
      protected
    Definition Classes
      GrossWorldState
11.  val _patchScratch: Array[Array[Double]]
    Attributes
      protected
    Definition Classes
      GrossWorldState
12.  val _patchesWithLabels: Int
    Attributes
      protected
    Definition Classes
      GrossWorldState
13.  val _turtles: TreeAgentSet
    Attributes
      protected
    Definition Classes
      TurtleManagement
14.  val _worldHeightBoxed: Double
    Definition Classes
      DimensionManagement
15.  val _worldWidthBoxed: Double
    Definition Classes
      DimensionManagement
16.  def addWatcher(variableName: String, watcher: VariableWatcher): Unit

    A watcher to be notified every time the given variable changes for any agent.

    A watcher to be notified every time the given variable changes for any agent.

    variableName

      The variable name to watch as an upper case string; e.g. "XCOR"

    watcher

      The watcher to notify when the variable changes

    Definition Classes
      WatcherManagement
17.  def agentSetOfKind(agentKind: AgentKind): AgentSet
    Definition Classes
      AgentManagement
18.  def allStoredValues: Iterator[AnyRef]
    Definition Classes
      CoreWorld → World
19.  final def asInstanceOf[T0]: T0
    Definition Classes
      Any
20.  val auxRNG: MersenneTwisterFast
    Definition Classes
      CoreWorld → World
21.  def breedOwns(breed: AgentSet, name: String): Boolean
    Definition Classes
      TurtleManagement
22.  val breeds: Map[String, TreeAgentSet]
    Definition Classes
      TurtleManagement → WorldKernel
23.  val breedsOwnCache: HashMap[String, Integer]
    Attributes
      protected
    Definition Classes
      AgentManagement → LinkManagement → TurtleManagement
24.  def breedsOwnIndexOf(breed: AgentSet, name: String): Int
    Definition Classes
      TurtleManagement
25.  def breedsOwnNameAt(breed: api.AgentSet, index: Int): String
    Definition Classes
      TurtleManagement
26.  def buildBreedCaches(): Unit
    Attributes
      protected
    Definition Classes
      CompilationManagement
27.  def changeTopology(xWrapping: Boolean, yWrapping: Boolean): Unit
    Definition Classes
      World2D → World
28.  def checkLinkShapeName(name: String): String
    Definition Classes
      LinkManagement
29.  def checkTurtleShapeName(name: String): String
    Definition Classes
      TurtleManagement
30.  def clearAll(): Unit
    Definition Classes
      World2D → AgentManagement → LinkManagement → TurtleManagement → GrossWorldState → CoreWorld → WorldKernel
31.  def clearDrawing(): Unit
    Definition Classes
      World2D → World
32.  def clearGlobals(): Unit
    Definition Classes
      ObserverManagement
33.  def clearLinks(): Unit
    Definition Classes
      LinkManagement
34.  def clearObserverPosition(): Unit
    Definition Classes
      ObserverManagement
35.  def clearPatches(): Unit
    Definition Classes
      AgentManagement
36.  def clearTurtles(): Unit
    Definition Classes
      TurtleManagement
37.  def clone(): AnyRef
    Attributes
      protected[lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( ... ) @native()
38.  def compareLinkBreeds(breed1: AgentSet, breed2: AgentSet): Int
    Definition Classes
      LinkManagement
39.  def compiler: CompilerServices
    Definition Classes
      CompilationManagement
40.  def compiler_=(compiler: CompilerServices): Unit
    Definition Classes
      CompilationManagement
41.  def copy(): World
    Definition Classes
      World2D → World
42.  def copyAgents(other: AgentManagement, newWorld: World): Unit
    Definition Classes
      AgentManagement
43.  def copyDimensions(other: DimensionManagement): Unit
    Definition Classes
      DimensionManagement
44.  def copyGrossState(other: GrossWorldState): Unit
    Definition Classes
      GrossWorldState
45.  def createObserver(): Observer
    Attributes
      protected
    Definition Classes
      World2D → ObserverManagement
46.  def createPatches(minPxcor: Int, maxPxcor: Int, minPycor: Int, maxPycor: Int): Unit
    Definition Classes
      World2D → AgentManagement
47.  def createPatches(dim: WorldDimensions): Unit
    Definition Classes
      AgentManagement
48.  def createTurtle(breed: AgentSet, c: Int, h: Int): Turtle
    Definition Classes
      World2D → TurtleManagement
49.  def createTurtle(breed: AgentSet): Turtle
    Definition Classes
      World2D → TurtleManagement
50.  def deleteWatcher(variableName: String, watcher: VariableWatcher): Unit

    Deletes a variable watcher.

    Deletes a variable watcher.

    variableName

      The watched variable name as an upper case string; e.g. "XCOR"

    watcher

      The watcher to delete

    Definition Classes
      WatcherManagement
51.  def diffuse(param: Double, vn: Int): Unit
    Definition Classes
      World2D → World
    Annotations
      @throws( classOf[AgentException] ) @throws( classOf[PatchException] )
52.  def diffuse4(param: Double, vn: Int): Unit
    Definition Classes
      World2D → World
    Annotations
      @throws( classOf[AgentException] ) @throws( classOf[PatchException] )
53.  val dimensionVariableNames: Seq[String]
    Attributes
      protected
    Definition Classes
      World2D → DimensionManagement
54.  def displayOn(displayOn: Boolean): Unit
    Definition Classes
      GrossWorldState
55.  def displayOn: Boolean
    Definition Classes
      GrossWorldState
56.  def drawLine(x0: Double, y0: Double, x1: Double, y1: Double, color: AnyRef, size: Double, mode: String): Unit
57.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
58.  def equalDimensions(d: WorldDimensions): Boolean
    Definition Classes
      DimensionManagement
59.  def equals(arg0: Any): Boolean
    Definition Classes
      AnyRef → Any
60.  def exportWorld(writer: PrintWriter, full: Boolean): Unit
    Definition Classes
      World2D → World
61.  def fastGetPatchAt(xc: Int, yc: Int): Patch
    Definition Classes
      World2D → AgentManagement → World
62.  def finalize(): Unit
    Attributes
      protected[lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
63.  def followOffsetX: Double
    Definition Classes
      ObserverManagement
64.  def followOffsetY: Double
    Definition Classes
      ObserverManagement
65.  def generateSeed: Double
    Definition Classes
      CoreWorld
66.  def getBreed(breedName: String): TreeAgentSet
    Definition Classes
      TurtleManagement
67.  def getBreedSingular(breed: AgentSet): String
    Definition Classes
      TurtleManagement
68.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
69.  def getDimensions: WorldDimensions
    Definition Classes
      World2D → World
70.  def getDrawing: AnyRef
    Definition Classes
      GrossWorldState
71.  def getLink(end1: AnyRef, end2: AnyRef, breed: AgentSet): Link
    Definition Classes
      LinkManagement
72.  def getLinkBreed(breedName: String): AgentSet
    Definition Classes
      LinkManagement
73.  def getLinkBreedSingular(breed: AgentSet): String
    Definition Classes
      LinkManagement
74.  def getLinkShape(name: String): Shape
    Definition Classes
      LinkManagement
75.  def getLinkVariablesArraySize(breed: AgentSet): Int
    Definition Classes
      LinkManagement
76.  def getObserverVariableByName(varName: String): AnyRef
    Definition Classes
      ObserverManagement
77.  def getOrCreateDummyLink(end1: AnyRef, end2: AnyRef, breed: AgentSet): Link
    Definition Classes
      AgentManagement
78.  def getOrCreateLink(end1: Turtle, end2: Turtle, breed: AgentSet): Link
    Definition Classes
      AgentManagement
79.  def getOrCreateLink(end1: Double, end2: Double, breed: AgentSet): Link
    Definition Classes
      AgentManagement
80.  def getOrCreateTurtle(id: Long): Turtle
    Definition Classes
      World2D → AgentManagement
81.  def getPatch(id: Int): Patch
    Definition Classes
      AgentManagement
82.  def getPatchAt(x: Double, y: Double): Patch
    Definition Classes
      World2D → AgentManagement → World
    Annotations
      @throws( classOf[AgentException] )
83.  def getPatchAtWrap(x: Int, y: Int): Patch
84.  def getPatchAtWrap(x: Double, y: Double): Patch
85.  def getPatchScratch: Array[Array[Double]]
    Definition Classes
      GrossWorldState
86.  def getTurtle(id: Long): Turtle
    Definition Classes
      TurtleManagement
87.  def getVariablesArraySize(patch: Patch): Int
    Definition Classes
      AgentManagement
88.  def getVariablesArraySize(observer: Observer): Int
    Definition Classes
      ObserverManagement
89.  def getVariablesArraySize(link: api.Link, breed: api.AgentSet): Int
    Definition Classes
      LinkManagement
90.  def getVariablesArraySize(turtle: api.Turtle, breed: api.AgentSet): Int
    Definition Classes
      TurtleManagement
91.  def growMax(min: Int, max: Int, value: Int, d: Int): Int
    Definition Classes
      DimensionManagement
    Annotations
      @throws( classOf[WorldDimensionException] )
92.  def growMin(min: Int, max: Int, value: Int, d: Int): Int
    Definition Classes
      DimensionManagement
    Annotations
      @throws( classOf[WorldDimensionException] )
93.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
94.  def importWorld(errorHandler: ErrorHandler, importerUser: ImporterUser, stringReader: StringReader, reader: BufferedReader): Unit
    Definition Classes
      World2D → World
    Annotations
      @throws( classOf[java.io.IOException] )
95.  val inRadiusOrCone: InRadiusOrCone
    Definition Classes
      World2D → World
96.  def indexOfVariable(agent: Agent, name: String): Int
    Definition Classes
      AgentManagement
97.  def indexOfVariable(agentKind: AgentKind, name: String): Int
    Definition Classes
      AgentManagement
98.  def isBreed(breed: AgentSet): Boolean
    Definition Classes
      TurtleManagement
99.  def isDimensionVariable(variableName: String): Boolean
    Definition Classes
      DimensionManagement
100.  final def isInstanceOf[T0]: Boolean
     Definition Classes
       Any
101.  def isLinkBreed(breed: AgentSet): Boolean
     Definition Classes
       LinkManagement
102.  def lineThickness(agent: Agent): Double
     Definition Classes
       TurtleManagement
103.  val lineThicknesses: Map[Agent, Double]
     Attributes
       protected
     Definition Classes
       TurtleManagement
104.  def linkBreedOwns(breed: AgentSet, name: String): Boolean
     Definition Classes
       LinkManagement
105.  val linkBreedShapes: BreedShapes
     Definition Classes
       LinkManagement
106.  val linkBreeds: Map[String, TreeAgentSet]
     Definition Classes
       LinkManagement → WorldKernel
107.  def linkBreedsOwnIndexOf(breed: AgentSet, name: String): Int
     Definition Classes
       LinkManagement
108.  def linkBreedsOwnNameAt(breed: AgentSet, index: Int): String
     Definition Classes
       LinkManagement
109.  val linkManager: LinkManager
     Definition Classes
       World2D → LinkManagement → CoreWorld
110.  def linkShapeList: ShapeList
     Definition Classes
       LinkManagement
111.  val linkShapes: ShapeListTracker
     Definition Classes
       LinkManagement
112.  def links: TreeAgentSet
     Definition Classes
       CoreWorld → WorldKernel → World
113.  def linksOwnIndexOf(name: String): Int
     Definition Classes
       LinkManagement
114.  def linksOwnNameAt(index: Int): String
     Definition Classes
       LinkManagement
115.  val mainRNG: MersenneTwisterFast
     Definition Classes
       CoreWorld → World
116.  def markDrawingClean(): Unit
     Definition Classes
       GrossWorldState
117.  def markPatchColorsClean(): Unit
     Definition Classes
       GrossWorldState
118.  def markPatchColorsDirty(): Unit
     Definition Classes
       GrossWorldState
119.  def maxPxcor: Int
     Definition Classes
       DimensionManagement
120.  def maxPxcorBoxed: Double
     Definition Classes
       DimensionManagement
121.  def maxPycor: Int
     Definition Classes
       DimensionManagement
122.  def maxPycorBoxed: Double
     Definition Classes
       DimensionManagement
123.  def mayHavePartiallyTransparentObjects: Boolean
     Definition Classes
       GrossWorldState
124.  def minPxcor: Int
     Definition Classes
       DimensionManagement
125.  def minPxcorBoxed: Double
     Definition Classes
       DimensionManagement
126.  def minPycor: Int
     Definition Classes
       DimensionManagement
127.  def minPycorBoxed: Double
     Definition Classes
       DimensionManagement
128.  final def ne(arg0: AnyRef): Boolean
     Definition Classes
       AnyRef
129.  def newLinkId(): Long
     Definition Classes
       LinkManagement
130.  def newProgram(interfaceGlobals: Seq[String]): Program
     Definition Classes
       CompilationManagement
131.  def newProgram: Program
     Definition Classes
       CompilationManagement
132.  def newTurtleId(): Long
     Definition Classes
       TurtleManagement
133.  def nextTurtleIndex: Long
     Definition Classes
       TurtleManagement
134.  def nextTurtleIndex(nextTurtleIndex: Long): Unit
     Definition Classes
       TurtleManagement
135.  val noLinks: AgentSet
     Definition Classes
       AgentManagement
136.  val noPatches: AgentSet
     Definition Classes
       AgentManagement
137.  val noTurtles: AgentSet
     Definition Classes
       AgentManagement
138.  final def notify(): Unit
     Definition Classes
       AnyRef
     Annotations
       @native()
139.  final def notifyAll(): Unit
     Definition Classes
       AnyRef
     Annotations
       @native()
140.  def notifyWatchers(agent: Agent, vn: Int, value: AnyRef): Unit
     Definition Classes
       WatcherManagement
141.  val observer: Observer
     Definition Classes
       ObserverManagement → WorldKernel
142.  def observerOwnsIndexOf(name: String): Int
     Definition Classes
       AgentManagement
143.  def observerOwnsNameAt(index: Int): String
     Definition Classes
       AgentManagement
144.  val observers: AgentSet
     Definition Classes
       ObserverManagement → WorldKernel
145.  def oldProgram: Program
     Definition Classes
       CompilationManagement
146.  def patchChangedColorAt(patchId: Int, color: Double): Unit
     Definition Classes
       GrossWorldState
147.  def patchColors: Array[Int]
     Definition Classes
       GrossWorldState
148.  def patchColorsDirty: Boolean
     Definition Classes
       GrossWorldState
149.  def patchSize(patchSize: Double): Boolean
     Definition Classes
       DimensionManagement
150.  def patchSize: Double
     Definition Classes
       DimensionManagement
151.  def patches: IndexedAgentSet
     Definition Classes
       CoreWorld → WorldKernel → World
152.  def patchesAllBlack: Boolean
     Definition Classes
       GrossWorldState
153.  def patchesOwnIndexOf(name: String): Int
     Definition Classes
       AgentManagement
154.  def patchesOwnNameAt(index: Int): String
     Definition Classes
       AgentManagement
155.  def patchesWithLabels: Int
     Definition Classes
       GrossWorldState
156.  def program(program: Program): Unit
     Definition Classes
       CompilationManagement
157.  def program: Program
     Definition Classes
       CompilationManagement → WorldKernel → World
158.  def program_=(p: Program): Unit
     Definition Classes
       CompilationManagement
159.  val protractor: Protractor
     Definition Classes
       World2D → World → World
160.  def realloc(): Unit
     Definition Classes
       CompilationManagement → World
161.  def recreateAllBreeds(): Unit
     Attributes
       protected
     Definition Classes
       CompilationManagement
162.  def rememberOldProgram(): Unit
     Definition Classes
       CompilationManagement
163.  def removeLineThickness(agent: Agent): Unit
     Definition Classes
       TurtleManagement
164.  def sendPixels: Boolean
     Definition Classes
       GrossWorldState
165.  def setDimensionVariable(variableName: String, value: Int, d: WorldDimensions): WorldDimensions
     Definition Classes
       DimensionManagement
     Annotations
       @throws( classOf[WorldDimensionException] )
166.  def setLineThickness(agent: Agent, size: Double): Unit
     Definition Classes
       TurtleManagement
167.  def setObserverVariableByName(varName: String, value: AnyRef): Unit
     Definition Classes
       ObserverManagement
     Annotations
       @throws( classOf[AgentException] ) @throws( classOf[LogoException] )
168.  def setUpShapes(clearOld: Boolean): Unit
     Definition Classes
       AgentManagement
169.  def sprout(patch: Patch, breed: AgentSet): Turtle
     Definition Classes
       World2D → World
170.  def stamp(agent: Agent, erase: Boolean): Unit
     Definition Classes
       World2D → World
171.  final def synchronized[T0](arg0: ⇒ T0): T0
     Definition Classes
       AnyRef
172.  val tickCounter: TickCounter
     Definition Classes
       CoreWorld
173.  def ticks: Double
     Definition Classes
       CoreWorld → World
174.  val tieManager: TieManager
     Definition Classes
       World2D → CoreWorld
175.  val timer: Timer
     Definition Classes
       CoreWorld → World
176.  def toString(): String
     Definition Classes
       AnyRef → Any
177.  def topology: Topology
     Definition Classes
       CoreWorld → WorldKernel
178.  def trailDrawer: TrailDrawerInterface
     Definition Classes
       GrossWorldState
179.  def trailDrawer(trailDrawer: TrailDrawerInterface): Unit
     Definition Classes
       GrossWorldState
180.  val turtleBreedShapes: BreedShapes
     Definition Classes
       TurtleManagement
181.  def turtleShapeList: ShapeList
     Definition Classes
       TurtleManagement
182.  val turtleShapes: ShapeListTracker
     Definition Classes
       TurtleManagement
183.  def turtles: TreeAgentSet
     Definition Classes
       TurtleManagement → WorldKernel
184.  def turtlesOwnIndexOf(name: String): Int
     Definition Classes
       TurtleManagement
185.  def turtlesOwnNameAt(index: Int): String
     Definition Classes
       TurtleManagement
186.  def validPatchCoordinates(xc: Int, yc: Int): Boolean
     Definition Classes
       DimensionManagement
187.  final def wait(): Unit
     Definition Classes
       AnyRef
     Annotations
       @throws( ... )
188.  final def wait(arg0: Long, arg1: Int): Unit
     Definition Classes
       AnyRef
     Annotations
       @throws( ... )
189.  final def wait(arg0: Long): Unit
     Definition Classes
       AnyRef
     Annotations
       @throws( ... ) @native()
190.  def worldHeight: Int
     Definition Classes
       DimensionManagement
191.  def worldHeightBoxed: Double
     Definition Classes
       DimensionManagement
192.  def worldWidth: Int
     Definition Classes
       DimensionManagement
193.  def worldWidthBoxed: Double
     Definition Classes
       DimensionManagement
194.  def wrap(pos: Double, min: Double, max: Double): Double
     Definition Classes
       DimensionManagement
195.  def wrapAndRoundX(x: Double): Int
     Definition Classes
       DimensionManagement
     Annotations
       @throws( classOf[AgentException] )
196.  def wrapAndRoundY(y: Double): Int
     Definition Classes
       DimensionManagement
     Annotations
       @throws( classOf[AgentException] )
197.  def wrapX(x: Double): Double
     Definition Classes
       DimensionManagement
     Annotations
       @throws( classOf[AgentException] )
198.  def wrapY(y: Double): Double
     Definition Classes
       DimensionManagement
     Annotations
       @throws( classOf[AgentException] )
199.  def wrappedObserverX(x: Double): Double
     Definition Classes
       ObserverManagement
200.  def wrappedObserverY(y: Double): Double
     Definition Classes
       ObserverManagement
201.  def wrappingAllowedInX: Boolean
     Definition Classes
       DimensionManagement
202.  def wrappingAllowedInY: Boolean
     Definition Classes
       DimensionManagement

### Inherited from CompilationManagement

### Inherited from World

### Inherited from AgentManagement

### Inherited from ObserverManagement

### Inherited from LinkManagement

### Inherited from TurtleManagement

### Inherited from GrossWorldState

### Inherited from CoreWorld

### Inherited from WatcherManagement

### Inherited from WorldKernel

### Inherited from WorldWithWorldRenderable

### Inherited from WorldRenderable

### Inherited from api.World

### Inherited from DimensionManagement

### Inherited from WorldJ

### Inherited from AnyRef

### Inherited from Any

### Ungrouped