final class World3D extends World with api.World3D
- Source
- World3D.java
- Alphabetic
- By Inheritance
- World3D
- World3D
- World
- WorldWithWorldRenderable
- WorldRenderable
- World
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new World3D()
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
-
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
- World
-
def
agentKindToAgentSet(agentKind: AgentKind): AgentSet
- Definition Classes
- World
- def allStoredValues(): Iterator[AnyRef]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def auxRNG(): MersenneTwisterFast
-
def
breedOwns(breed: AgentSet, name: String): Boolean
- Definition Classes
- World
-
def
breedsOwnIndexOf(breed: AgentSet, name: String): Int
- Definition Classes
- World
- def breedsOwnNameAt(breed: api.AgentSet, index: Int): String
- def changeTopology(xWrapping: Boolean, yWrapping: Boolean, zWrapping: Boolean): Unit
- def changeTopology(xWrapping: Boolean, yWrapping: Boolean): Unit
-
def
checkLinkShapeName(name: String): String
- Definition Classes
- World
-
def
checkTurtleShapeName(name: String): String
- Definition Classes
- World
- def clearAll(): Unit
- def clearDrawing(): Unit
- def clearGlobals(): Unit
-
def
clearLinks(): Unit
- Definition Classes
- World
-
def
clearPatches(): Unit
- Definition Classes
- World
-
def
clearTurtles(): Unit
- Definition Classes
- World
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
compareLinkBreeds(breed1: AgentSet, breed2: AgentSet): Int
- Definition Classes
- World
-
def
compiler(): CompilerServices
- Definition Classes
- World
-
def
compiler_=(compiler: CompilerServices): Unit
- Definition Classes
- World
- def createPatches(minPxcor: Int, maxPxcor: Int, minPycor: Int, maxPycor: Int, minPzcor: Int, maxPzcor: Int): Unit
- def createPatches(minPxcor: Int, maxPxcor: Int, minPycor: Int, maxPycor: Int): Unit
- def createPatches(dim: WorldDimensions): Unit
- def createTurtle(breed: AgentSet, c: Int, h: Int): Turtle
- def createTurtle(breed: AgentSet): Turtle
-
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
- World
-
def
diffuse(param: Double, vn: Int): Unit
- Definition Classes
- World
- def diffuse4(param: Double, vn: Int): Unit
-
def
displayOn(displayOn: Boolean): Unit
- Definition Classes
- World
-
def
displayOn(): Boolean
- Definition Classes
- World
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equalDimensions(d: WorldDimensions): Boolean
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def exportWorld(writer: PrintWriter, full: Boolean): Unit
- def fastGetPatchAt(xc: Int, yc: Int): Patch
- def fastGetPatchAt(xc: Int, yc: Int, zc: Int): Patch
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def followOffsetX(): Double
- def followOffsetY(): Double
- def followOffsetZ(): Double
-
def
generateSeed(): Double
- Definition Classes
- World
- def getBreed(breedName: String): AgentSet
-
def
getBreedSingular(breed: AgentSet): String
- Definition Classes
- World
-
def
getBreeds(): Map[String, _ <: AgentSet]
- Definition Classes
- World
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- def getDimensions(): WorldDimensions
- def getDrawing(): AnyRef
-
def
getLink(end1: Any, end2: Any, breed: AgentSet): Link
- Definition Classes
- World
- def getLinkBreed(breedName: String): AgentSet
-
def
getLinkBreedSingular(breed: AgentSet): String
- Definition Classes
- World
-
def
getLinkBreeds(): Map[String, _ <: AgentSet]
- Definition Classes
- World
-
def
getLinkShape(name: String): Shape
- Definition Classes
- World
-
def
getLinkVariablesArraySize(breed: AgentSet): Int
- Definition Classes
- World
-
def
getObserverVariableByName(var: String): AnyRef
- Definition Classes
- World
-
def
getOrCreateDummyLink(end1: Any, end2: Any, breed: AgentSet): Link
- Definition Classes
- World
-
def
getOrCreateLink(end1: Turtle, end2: Turtle, breed: AgentSet): Link
- Definition Classes
- World
-
def
getOrCreateLink(end1: Double, end2: Double, breed: AgentSet): Link
- Definition Classes
- World
- def getOrCreateTurtle(id: Long): Turtle
- def getPatch(id: Int): Patch
- def getPatchAt(x: Double, y: Double, z: Double): Patch3D
- def getPatchAt(x: Double, y: Double): Patch
- def getPatchAtWrap(x: Double, y: Double, z: Double): Patch
-
def
getPatchAtWrap(x: Double, y: Double): Patch
- Definition Classes
- World
-
def
getPatchScratch(): Array[Array[Double]]
- Definition Classes
- World
- def getPatchScratch3d(): Array[Array[Array[Double]]]
-
def
getTurtle(id: Long): Turtle
- Definition Classes
- World
- def getVariablesArraySize(link: api.Link, breed: api.AgentSet): Int
- def getVariablesArraySize(turtle: api.Turtle, breed: api.AgentSet): Int
-
def
getVariablesArraySize(patch: Patch): Int
- Definition Classes
- World
-
def
getVariablesArraySize(observer: Observer): Int
- Definition Classes
- World
-
def
growMax(min: Int, max: Int, value: Int, d: Int): Int
- Definition Classes
- World
-
def
growMin(min: Int, max: Int, value: Int, d: Int): Int
- Definition Classes
- World
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- def importWorld(errorHandler: ErrorHandler, importerUser: ImporterUser, stringReader: StringReader, reader: BufferedReader): Unit
-
def
indexOfVariable(agent: Agent, name: String): Int
- Definition Classes
- World
-
def
indexOfVariable(agentKind: AgentKind, name: String): Int
- Definition Classes
- World
-
def
isBreed(breed: AgentSet): Boolean
- Definition Classes
- World
- def isDimensionVariable(variableName: String): Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isLinkBreed(breed: AgentSet): Boolean
- Definition Classes
- World
-
def
lineThickness(agent: Agent): Double
- Definition Classes
- World
-
def
linkBreedOwns(breed: AgentSet, name: String): Boolean
- Definition Classes
- World
-
def
linkBreedsOwnIndexOf(breed: AgentSet, name: String): Int
- Definition Classes
- World
-
def
linkBreedsOwnNameAt(breed: AgentSet, index: Int): String
- Definition Classes
- World
- def linkShapeList(): ShapeList
- def linkShapes(): ShapeListTracker
- def links(): TreeAgentSet
-
def
linksOwnIndexOf(name: String): Int
- Definition Classes
- World
- def linksOwnNameAt(index: Int): String
- def mainRNG(): MersenneTwisterFast
- def markDrawingClean(): Unit
-
def
markPatchColorsClean(): Unit
- Definition Classes
- World → WorldRenderable
-
def
markPatchColorsDirty(): Unit
- Definition Classes
- World → WorldRenderable
- def maxPxcor(): Int
-
def
maxPxcorBoxed(): Double
- Definition Classes
- World
- def maxPycor(): Int
-
def
maxPycorBoxed(): Double
- Definition Classes
- World
- def maxPzcor(): Int
- def maxPzcorBoxed(): Double
-
def
mayHavePartiallyTransparentObjects(): Boolean
Returns true if there is at least one partially transparent turtle, patch, link, or 3D stamp present.
Returns true if there is at least one partially transparent turtle, patch, link, or 3D stamp present. This determines whether it is necessary to sort the objects by their distance to the observer before rendering, which is necessary for transparency to work in OpenGL.
- returns
True if the scene has at least one partially transparent item
- Definition Classes
- World → WorldRenderable
- def minPxcor(): Int
-
def
minPxcorBoxed(): Double
- Definition Classes
- World
- def minPycor(): Int
-
def
minPycorBoxed(): Double
- Definition Classes
- World
- def minPzcor(): Int
- def minPzcorBoxed(): Double
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newProgram(interfaceGlobals: Seq[String]): Program
- def newProgram(): Program
-
def
noLinks(): AgentSet
- Definition Classes
- World
-
def
noPatches(): AgentSet
- Definition Classes
- World
-
def
noTurtles(): AgentSet
- Definition Classes
- World
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- def observer(): Observer
- def observerOwnsIndexOf(name: String): Int
-
def
observerOwnsNameAt(index: Int): String
- Definition Classes
- World
-
def
observers(): AgentSet
- Definition Classes
- World
- def patchColors(): Array[Int]
-
def
patchColorsDirty(): Boolean
- Definition Classes
- World → WorldRenderable
-
def
patchSize(patchSize: Double): Boolean
- Definition Classes
- World
- def patchSize(): Double
- def patches(): AgentSet
- def patchesAllBlack(): Boolean
-
def
patchesOwnIndexOf(name: String): Int
- Definition Classes
- World
-
def
patchesOwnNameAt(index: Int): String
- Definition Classes
- World
- def patchesWithLabels(): Int
-
def
program(program: Program): Unit
- Definition Classes
- World
- def program(): Program
- def protractor(): Protractor
- def protractor3D(): api.Protractor3D
- def realloc(): Unit
-
def
rememberOldProgram(): Unit
- Definition Classes
- World
-
def
removeLineThickness(agent: Agent): Unit
- Definition Classes
- World
-
def
roundX(x: Double): Int
- Definition Classes
- World
-
def
roundY(y: Double): Int
- Definition Classes
- World
- def roundZ(z: Double): Int
- def sendPixels(): Boolean
- def setDimensionVariable(variableName: String, value: Int, d: WorldDimensions): WorldDimensions
-
def
setLineThickness(agent: Agent, size: Double): Unit
- Definition Classes
- World
- def setObserverVariableByName(var: String, value: Any): Unit
-
def
setUpShapes(clearOld: Boolean): Unit
- Definition Classes
- World
- def shortestPathZ(z1: Double, z2: Double): Double
- def stamp(agent: Agent, erase: Boolean): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def ticks(): Double
- def timer(): Timer
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def trailDrawer(): TrailDrawerInterface
-
def
trailDrawer(trailDrawer: TrailDrawerInterface): Unit
- Definition Classes
- World
- def turtleShapeList(): ShapeList
- def turtleShapes(): ShapeListTracker
- def turtles(): TreeAgentSet
-
def
turtlesOwnIndexOf(name: String): Int
- Definition Classes
- World
- def turtlesOwnNameAt(index: Int): String
- def validPatchCoordinates(xc: Int, yc: Int, zc: Int): Boolean
-
def
validPatchCoordinates(xc: Int, yc: Int): Boolean
- Definition Classes
- World
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def worldDepth(): Int
- def worldDepthBoxed(): Double
- def worldHeight(): Int
-
def
worldHeightBoxed(): Double
- Definition Classes
- World
- def worldWidth(): Int
-
def
worldWidthBoxed(): Double
- Definition Classes
- World
- def wrap(pos: Double, min: Double, max: Double): Double
- def wrapX(x: Double): Double
- def wrapY(y: Double): Double
- def wrapZ(z: Double): Double
- def wrappedObserverX(x: Double): Double
- def wrappedObserverY(y: Double): Double
- def wrappedObserverZ(z: Double): Double
- def wrappingAllowedInX(): Boolean
- def wrappingAllowedInY(): Boolean
- def wrappingAllowedInZ(): Boolean