org.nlogo.api
Interface World
- All Known Subinterfaces:
- World3D
- All Known Implementing Classes:
- World, World3D
public interface World
INFINITESIMAL
static final double INFINITESIMAL
- See Also:
- Constant Field Values
patchSize
double patchSize()
worldWidth
int worldWidth()
worldHeight
int worldHeight()
minPxcor
int minPxcor()
minPycor
int minPycor()
maxPxcor
int maxPxcor()
maxPycor
int maxPycor()
wrappingAllowedInX
boolean wrappingAllowedInX()
wrappingAllowedInY
boolean wrappingAllowedInY()
wrap
double wrap(double pos,
double min,
double max)
ticks
double ticks()
observer
Observer observer()
getPatch
Patch getPatch(int i)
getPatchAt
Patch getPatchAt(double x,
double y)
throws AgentException
- Throws:
AgentException
fastGetPatchAt
Patch fastGetPatchAt(int x,
int y)
patchColors
int[] patchColors()
patchesAllBlack
boolean patchesAllBlack()
patchesWithLabels
int patchesWithLabels()
followOffsetX
double followOffsetX()
followOffsetY
double followOffsetY()
wrapX
double wrapX(double x)
throws AgentException
- Throws:
AgentException
wrapY
double wrapY(double y)
throws AgentException
- Throws:
AgentException
turtles
AgentSet turtles()
patches
AgentSet patches()
links
AgentSet links()
program
Program program()
turtleShapeList
ShapeList turtleShapeList()
linkShapeList
ShapeList linkShapeList()
getDrawing
Object getDrawing()
sendPixels
boolean sendPixels()
markDrawingClean
void markDrawingClean()
protractor
Protractor protractor()
wrappedObserverX
double wrappedObserverX(double x)
wrappedObserverY
double wrappedObserverY(double y)
patchColorsDirty
boolean patchColorsDirty()
markPatchColorsDirty
void markPatchColorsDirty()
markPatchColorsClean
void markPatchColorsClean()
getVariablesArraySize
int getVariablesArraySize(Link link,
AgentSet breed)
getVariablesArraySize
int getVariablesArraySize(Turtle turtle,
AgentSet breed)
linksOwnNameAt
String linksOwnNameAt(int i)
turtlesOwnNameAt
String turtlesOwnNameAt(int i)
breedsOwnNameAt
String breedsOwnNameAt(AgentSet breed,
int i)