org.nlogo.api
Interface World

All Known Subinterfaces:
World3D
All Known Implementing Classes:
World, World3D

public interface World


Field Summary
static double INFINITESIMAL
           
 
Method Summary
 String breedsOwnNameAt(AgentSet breed, int i)
           
 Patch fastGetPatchAt(int x, int y)
           
 double followOffsetX()
           
 double followOffsetY()
           
 Object getDrawing()
           
 Patch getPatch(int i)
           
 Patch getPatchAt(double x, double y)
           
 int getVariablesArraySize(Link link, AgentSet breed)
           
 int getVariablesArraySize(Turtle turtle, AgentSet breed)
           
 AgentSet links()
           
 ShapeList linkShapeList()
           
 String linksOwnNameAt(int i)
           
 void markDrawingClean()
           
 void markPatchColorsClean()
           
 void markPatchColorsDirty()
           
 int maxPxcor()
           
 int maxPycor()
           
 int minPxcor()
           
 int minPycor()
           
 Observer observer()
           
 int[] patchColors()
           
 boolean patchColorsDirty()
           
 AgentSet patches()
           
 boolean patchesAllBlack()
           
 int patchesWithLabels()
           
 double patchSize()
           
 Program program()
           
 Protractor protractor()
           
 boolean sendPixels()
           
 double ticks()
           
 AgentSet turtles()
           
 ShapeList turtleShapeList()
           
 String turtlesOwnNameAt(int i)
           
 int worldHeight()
           
 int worldWidth()
           
 double wrap(double pos, double min, double max)
           
 double wrappedObserverX(double x)
           
 double wrappedObserverY(double y)
           
 boolean wrappingAllowedInX()
           
 boolean wrappingAllowedInY()
           
 double wrapX(double x)
           
 double wrapY(double y)
           
 

Field Detail

INFINITESIMAL

static final double INFINITESIMAL
See Also:
Constant Field Values
Method Detail

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)