class World2D extends World with CompilationManagement
- Source
- World.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- World2D
- CompilationManagement
- World
- AgentManagement
- ObserverManagement
- LinkManagement
- TurtleManagement
- GrossWorldState
- CoreWorld
- WatcherManagement
- WorldKernel
- WorldWithWorldRenderable
- WorldRenderable
- World
- DimensionManagement
- WorldJ
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new World2D()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val _links: TreeAgentSet
-
val
_maxPxcorBoxed: Double
- Definition Classes
- DimensionManagement
-
val
_maxPycorBoxed: Double
- Definition Classes
- DimensionManagement
-
val
_mayHavePartiallyTransparentObjects: Boolean
- Attributes
- protected
- Definition Classes
- GrossWorldState
-
val
_minPxcorBoxed: Double
- Definition Classes
- DimensionManagement
-
val
_minPycorBoxed: Double
- Definition Classes
- DimensionManagement
-
val
_patchColors: Array[Int]
- Attributes
- protected
- Definition Classes
- GrossWorldState
-
val
_patchScratch: Array[Array[Double]]
- Attributes
- protected
- Definition Classes
- GrossWorldState
-
val
_patchesWithLabels: Int
- Attributes
- protected
- Definition Classes
- GrossWorldState
-
val
_turtles: TreeAgentSet
- Attributes
- protected
- Definition Classes
- TurtleManagement
-
val
_worldHeightBoxed: Double
- Definition Classes
- DimensionManagement
-
val
_worldWidthBoxed: Double
- Definition Classes
- DimensionManagement
-
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
-
def
agentSetOfKind(agentKind: AgentKind): AgentSet
- Definition Classes
- AgentManagement
- def allStoredValues: Iterator[AnyRef]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val auxRNG: MersenneTwisterFast
-
def
breedOwns(breed: AgentSet, name: String): Boolean
- Definition Classes
- TurtleManagement
-
val
breeds: Map[String, TreeAgentSet]
- Definition Classes
- TurtleManagement → WorldKernel
-
val
breedsOwnCache: HashMap[String, Integer]
- Attributes
- protected
- Definition Classes
- AgentManagement → LinkManagement → TurtleManagement
-
def
breedsOwnIndexOf(breed: AgentSet, name: String): Int
- Definition Classes
- TurtleManagement
-
def
breedsOwnNameAt(breed: api.AgentSet, index: Int): String
- Definition Classes
- TurtleManagement
-
def
buildBreedCaches(): Unit
- Attributes
- protected
- Definition Classes
- CompilationManagement
- def changeTopology(xWrapping: Boolean, yWrapping: Boolean): Unit
-
def
checkLinkShapeName(name: String): String
- Definition Classes
- LinkManagement
-
def
checkTurtleShapeName(name: String): String
- Definition Classes
- TurtleManagement
-
def
clearAll(): Unit
- Definition Classes
- World2D → AgentManagement → LinkManagement → TurtleManagement → GrossWorldState → CoreWorld → WorldKernel
- def clearDrawing(): Unit
-
def
clearGlobals(): Unit
- Definition Classes
- ObserverManagement
-
def
clearLinks(): Unit
- Definition Classes
- LinkManagement
-
def
clearObserverPosition(): Unit
- Definition Classes
- ObserverManagement
-
def
clearPatches(): Unit
- Definition Classes
- AgentManagement
-
def
clearTurtles(): Unit
- Definition Classes
- TurtleManagement
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
def
compareLinkBreeds(breed1: AgentSet, breed2: AgentSet): Int
- Definition Classes
- LinkManagement
-
def
compiler: CompilerServices
- Definition Classes
- CompilationManagement
-
def
compiler_=(compiler: CompilerServices): Unit
- Definition Classes
- CompilationManagement
- def copy(): World
-
def
copyAgents(other: AgentManagement, newWorld: World): Unit
- Definition Classes
- AgentManagement
-
def
copyDimensions(other: DimensionManagement): Unit
- Definition Classes
- DimensionManagement
-
def
copyGrossState(other: GrossWorldState): Unit
- Definition Classes
- GrossWorldState
-
def
createObserver(): Observer
- Attributes
- protected
- Definition Classes
- World2D → ObserverManagement
-
def
createPatches(minPxcor: Int, maxPxcor: Int, minPycor: Int, maxPycor: Int): Unit
- Definition Classes
- World2D → AgentManagement
-
def
createPatches(dim: WorldDimensions): Unit
- Definition Classes
- AgentManagement
-
def
createTurtle(breed: AgentSet, c: Int, h: Int): Turtle
- Definition Classes
- World2D → TurtleManagement
-
def
createTurtle(breed: AgentSet): Turtle
- Definition Classes
- World2D → TurtleManagement
-
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
- def diffuse(param: Double, vn: Int): Unit
- def diffuse4(param: Double, vn: Int): Unit
-
val
dimensionVariableNames: Seq[String]
- Attributes
- protected
- Definition Classes
- World2D → DimensionManagement
-
def
displayOn(displayOn: Boolean): Unit
- Definition Classes
- GrossWorldState
-
def
displayOn: Boolean
- Definition Classes
- GrossWorldState
- def drawLine(x0: Double, y0: Double, x1: Double, y1: Double, color: AnyRef, size: Double, mode: String): Unit
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equalDimensions(d: WorldDimensions): Boolean
- Definition Classes
- DimensionManagement
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def exportWorld(writer: PrintWriter, full: Boolean): Unit
-
def
fastGetPatchAt(xc: Int, yc: Int): Patch
- Definition Classes
- World2D → AgentManagement → World
-
def
followOffsetX: Double
- Definition Classes
- ObserverManagement
-
def
followOffsetY: Double
- Definition Classes
- ObserverManagement
-
def
generateSeed: Double
- Definition Classes
- CoreWorld
-
def
getBreed(breedName: String): TreeAgentSet
- Definition Classes
- TurtleManagement
-
def
getBreedSingular(breed: AgentSet): String
- Definition Classes
- TurtleManagement
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def getDimensions: WorldDimensions
-
def
getDrawing: AnyRef
- Definition Classes
- GrossWorldState
-
def
getLink(end1: AnyRef, end2: AnyRef, breed: AgentSet): Link
- Definition Classes
- LinkManagement
-
def
getLinkBreed(breedName: String): AgentSet
- Definition Classes
- LinkManagement
-
def
getLinkBreedSingular(breed: AgentSet): String
- Definition Classes
- LinkManagement
-
def
getLinkShape(name: String): Shape
- Definition Classes
- LinkManagement
-
def
getLinkVariablesArraySize(breed: AgentSet): Int
- Definition Classes
- LinkManagement
-
def
getObserverVariableByName(varName: String): AnyRef
- Definition Classes
- ObserverManagement
-
def
getOrCreateDummyLink(end1: AnyRef, end2: AnyRef, breed: AgentSet): Link
- Definition Classes
- AgentManagement
-
def
getOrCreateLink(end1: Turtle, end2: Turtle, breed: AgentSet): Link
- Definition Classes
- AgentManagement
-
def
getOrCreateLink(end1: Double, end2: Double, breed: AgentSet): Link
- Definition Classes
- AgentManagement
-
def
getOrCreateTurtle(id: Long): Turtle
- Definition Classes
- World2D → AgentManagement
-
def
getPatch(id: Int): Patch
- Definition Classes
- AgentManagement
-
def
getPatchAt(x: Double, y: Double): Patch
- Definition Classes
- World2D → AgentManagement → World
- Annotations
- @throws( classOf[AgentException] )
- def getPatchAtWrap(x: Int, y: Int): Patch
- def getPatchAtWrap(x: Double, y: Double): Patch
-
def
getPatchScratch: Array[Array[Double]]
- Definition Classes
- GrossWorldState
-
def
getTurtle(id: Long): Turtle
- Definition Classes
- TurtleManagement
-
def
getVariablesArraySize(patch: Patch): Int
- Definition Classes
- AgentManagement
-
def
getVariablesArraySize(observer: Observer): Int
- Definition Classes
- ObserverManagement
-
def
getVariablesArraySize(link: api.Link, breed: api.AgentSet): Int
- Definition Classes
- LinkManagement
-
def
getVariablesArraySize(turtle: api.Turtle, breed: api.AgentSet): Int
- Definition Classes
- TurtleManagement
-
def
growMax(min: Int, max: Int, value: Int, d: Int): Int
- Definition Classes
- DimensionManagement
- Annotations
- @throws( classOf[WorldDimensionException] )
-
def
growMin(min: Int, max: Int, value: Int, d: Int): Int
- Definition Classes
- DimensionManagement
- Annotations
- @throws( classOf[WorldDimensionException] )
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def importWorld(errorHandler: ErrorHandler, importerUser: ImporterUser, stringReader: StringReader, reader: BufferedReader): Unit
- val inRadiusOrCone: InRadiusOrCone
-
def
indexOfVariable(agent: Agent, name: String): Int
- Definition Classes
- AgentManagement
-
def
indexOfVariable(agentKind: AgentKind, name: String): Int
- Definition Classes
- AgentManagement
-
def
isBreed(breed: AgentSet): Boolean
- Definition Classes
- TurtleManagement
-
def
isDimensionVariable(variableName: String): Boolean
- Definition Classes
- DimensionManagement
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isLinkBreed(breed: AgentSet): Boolean
- Definition Classes
- LinkManagement
-
def
lineThickness(agent: Agent): Double
- Definition Classes
- TurtleManagement
-
val
lineThicknesses: Map[Agent, Double]
- Attributes
- protected
- Definition Classes
- TurtleManagement
-
def
linkBreedOwns(breed: AgentSet, name: String): Boolean
- Definition Classes
- LinkManagement
-
val
linkBreedShapes: BreedShapes
- Definition Classes
- LinkManagement
-
val
linkBreeds: Map[String, TreeAgentSet]
- Definition Classes
- LinkManagement → WorldKernel
-
def
linkBreedsOwnIndexOf(breed: AgentSet, name: String): Int
- Definition Classes
- LinkManagement
-
def
linkBreedsOwnNameAt(breed: AgentSet, index: Int): String
- Definition Classes
- LinkManagement
-
val
linkManager: LinkManager
- Definition Classes
- World2D → LinkManagement → CoreWorld
-
def
linkShapeList: ShapeList
- Definition Classes
- LinkManagement
-
val
linkShapes: ShapeListTracker
- Definition Classes
- LinkManagement
-
def
links: TreeAgentSet
- Definition Classes
- CoreWorld → WorldKernel → World
-
def
linksOwnIndexOf(name: String): Int
- Definition Classes
- LinkManagement
-
def
linksOwnNameAt(index: Int): String
- Definition Classes
- LinkManagement
- val mainRNG: MersenneTwisterFast
-
def
markDrawingClean(): Unit
- Definition Classes
- GrossWorldState
-
def
markPatchColorsClean(): Unit
- Definition Classes
- GrossWorldState
-
def
markPatchColorsDirty(): Unit
- Definition Classes
- GrossWorldState
-
def
maxPxcor: Int
- Definition Classes
- DimensionManagement
-
def
maxPxcorBoxed: Double
- Definition Classes
- DimensionManagement
-
def
maxPycor: Int
- Definition Classes
- DimensionManagement
-
def
maxPycorBoxed: Double
- Definition Classes
- DimensionManagement
-
def
mayHavePartiallyTransparentObjects: Boolean
- Definition Classes
- GrossWorldState
-
def
minPxcor: Int
- Definition Classes
- DimensionManagement
-
def
minPxcorBoxed: Double
- Definition Classes
- DimensionManagement
-
def
minPycor: Int
- Definition Classes
- DimensionManagement
-
def
minPycorBoxed: Double
- Definition Classes
- DimensionManagement
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newLinkId(): Long
- Definition Classes
- LinkManagement
-
def
newProgram(interfaceGlobals: Seq[String]): Program
- Definition Classes
- CompilationManagement
-
def
newProgram: Program
- Definition Classes
- CompilationManagement
-
def
newTurtleId(): Long
- Definition Classes
- TurtleManagement
-
def
nextTurtleIndex: Long
- Definition Classes
- TurtleManagement
-
def
nextTurtleIndex(nextTurtleIndex: Long): Unit
- Definition Classes
- TurtleManagement
-
val
noLinks: AgentSet
- Definition Classes
- AgentManagement
-
val
noPatches: AgentSet
- Definition Classes
- AgentManagement
-
val
noTurtles: AgentSet
- Definition Classes
- AgentManagement
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
def
notifyWatchers(agent: Agent, vn: Int, value: AnyRef): Unit
- Definition Classes
- WatcherManagement
-
val
observer: Observer
- Definition Classes
- ObserverManagement → WorldKernel
-
def
observerOwnsIndexOf(name: String): Int
- Definition Classes
- AgentManagement
-
def
observerOwnsNameAt(index: Int): String
- Definition Classes
- AgentManagement
-
val
observers: AgentSet
- Definition Classes
- ObserverManagement → WorldKernel
-
def
oldProgram: Program
- Definition Classes
- CompilationManagement
-
def
patchChangedColorAt(patchId: Int, color: Double): Unit
- Definition Classes
- GrossWorldState
-
def
patchColors: Array[Int]
- Definition Classes
- GrossWorldState
-
def
patchColorsDirty: Boolean
- Definition Classes
- GrossWorldState
-
def
patchSize(patchSize: Double): Boolean
- Definition Classes
- DimensionManagement
-
def
patchSize: Double
- Definition Classes
- DimensionManagement
-
def
patches: IndexedAgentSet
- Definition Classes
- CoreWorld → WorldKernel → World
-
def
patchesAllBlack: Boolean
- Definition Classes
- GrossWorldState
-
def
patchesOwnIndexOf(name: String): Int
- Definition Classes
- AgentManagement
-
def
patchesOwnNameAt(index: Int): String
- Definition Classes
- AgentManagement
-
def
patchesWithLabels: Int
- Definition Classes
- GrossWorldState
-
def
program(program: Program): Unit
- Definition Classes
- CompilationManagement
-
def
program: Program
- Definition Classes
- CompilationManagement → WorldKernel → World
-
def
program_=(p: Program): Unit
- Definition Classes
- CompilationManagement
- val protractor: Protractor
-
def
realloc(): Unit
- Definition Classes
- CompilationManagement → World
-
def
recreateAllBreeds(): Unit
- Attributes
- protected
- Definition Classes
- CompilationManagement
-
def
rememberOldProgram(): Unit
- Definition Classes
- CompilationManagement
-
def
removeLineThickness(agent: Agent): Unit
- Definition Classes
- TurtleManagement
-
def
sendPixels: Boolean
- Definition Classes
- GrossWorldState
-
def
setDimensionVariable(variableName: String, value: Int, d: WorldDimensions): WorldDimensions
- Definition Classes
- DimensionManagement
- Annotations
- @throws( classOf[WorldDimensionException] )
-
def
setLineThickness(agent: Agent, size: Double): Unit
- Definition Classes
- TurtleManagement
-
def
setObserverVariableByName(varName: String, value: AnyRef): Unit
- Definition Classes
- ObserverManagement
- Annotations
- @throws( classOf[AgentException] ) @throws( classOf[LogoException] )
-
def
setUpShapes(clearOld: Boolean): Unit
- Definition Classes
- AgentManagement
- def sprout(patch: Patch, breed: AgentSet): Turtle
- def stamp(agent: Agent, erase: Boolean): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
tickCounter: TickCounter
- Definition Classes
- CoreWorld
- def ticks: Double
- val tieManager: TieManager
- val timer: Timer
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
topology: Topology
- Definition Classes
- CoreWorld → WorldKernel
-
def
trailDrawer: TrailDrawerInterface
- Definition Classes
- GrossWorldState
-
def
trailDrawer(trailDrawer: TrailDrawerInterface): Unit
- Definition Classes
- GrossWorldState
-
val
turtleBreedShapes: BreedShapes
- Definition Classes
- TurtleManagement
-
def
turtleShapeList: ShapeList
- Definition Classes
- TurtleManagement
-
val
turtleShapes: ShapeListTracker
- Definition Classes
- TurtleManagement
-
def
turtles: TreeAgentSet
- Definition Classes
- TurtleManagement → WorldKernel
-
def
turtlesOwnIndexOf(name: String): Int
- Definition Classes
- TurtleManagement
-
def
turtlesOwnNameAt(index: Int): String
- Definition Classes
- TurtleManagement
-
def
validPatchCoordinates(xc: Int, yc: Int): Boolean
- Definition Classes
- DimensionManagement
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
worldHeight: Int
- Definition Classes
- DimensionManagement
-
def
worldHeightBoxed: Double
- Definition Classes
- DimensionManagement
-
def
worldWidth: Int
- Definition Classes
- DimensionManagement
-
def
worldWidthBoxed: Double
- Definition Classes
- DimensionManagement
-
def
wrap(pos: Double, min: Double, max: Double): Double
- Definition Classes
- DimensionManagement
-
def
wrapAndRoundX(x: Double): Int
- Definition Classes
- DimensionManagement
- Annotations
- @throws( classOf[AgentException] )
-
def
wrapAndRoundY(y: Double): Int
- Definition Classes
- DimensionManagement
- Annotations
- @throws( classOf[AgentException] )
-
def
wrapX(x: Double): Double
- Definition Classes
- DimensionManagement
- Annotations
- @throws( classOf[AgentException] )
-
def
wrapY(y: Double): Double
- Definition Classes
- DimensionManagement
- Annotations
- @throws( classOf[AgentException] )
-
def
wrappedObserverX(x: Double): Double
- Definition Classes
- ObserverManagement
-
def
wrappedObserverY(y: Double): Double
- Definition Classes
- ObserverManagement
-
def
wrappingAllowedInX: Boolean
- Definition Classes
- DimensionManagement
-
def
wrappingAllowedInY: Boolean
- Definition Classes
- DimensionManagement