org.nlogo.agent
Class World

java.lang.Object
  extended by org.nlogo.agent.World
All Implemented Interfaces:
RenderableWorld
Direct Known Subclasses:
World3D

public class World
extends Object
implements RenderableWorld


Field Summary
 org.nlogo.util.MersenneTwisterFast auxRNG
           
 boolean comeUpForAir
           
static double[] cosTable
           
 ExtensionManager extensionManager
           
 WeakHashMap lastRunTimes
           
 BreedShapes linkBreedShapes
           
 LinkManager linkManager
           
 ShapeList linkShapeList
           
 org.nlogo.util.MersenneTwisterFast mainRNG
           
 int patchesWithLabels
           
static double[] sinTable
           
 TieManager tieManager
           
 BreedShapes turtleBreedShapes
           
 ShapeList turtleShapeList
           
 
Constructor Summary
World(Shape defaultShape, Shape defaultLinkShape)
           
 
Method Summary
 AgentSet agentClassToAgentSet(Class agentClass)
           
 double averagePathLength(AgentSet nodeSet, AgentSet linkBreed)
          Calculates the average shortest-path length between all (distinct) pairs of nodes in the given nodeSet, by traveling along links of the given linkBreed.
 boolean breedOwns(AgentSet breed, String name)
           
 int breedsOwnIndexOf(AgentSet breed, String name)
           
 String breedsOwnNameAt(AgentSet breed, int index)
           
 void changeTopology(boolean xWrapping, boolean yWrapping)
           
 String checkLinkShapeName(String name)
           
 String checksum()
           
 String checkTurtleShapeName(String name)
           
 void clearAll()
           
 void clearDrawing()
           
 void clearGlobals()
           
 void clearLinks()
           
 void clearPatches()
           
 void clearTurtles()
           
 int compareLinkBreeds(AgentSet breed1, AgentSet breed2)
           
 void createPatches(int minPxcor, int maxPxcor, int minPycor, int maxPycor)
           
 void createPatches(WorldDimensions dim)
           
 Turtle createTurtle(AgentSet breed)
           
 Turtle createTurtle(AgentSet breed, int c, int h)
           
 Evaluator defaultEvaluator()
           
 void diffuse(double param, int vn)
           
 void diffuse4(double param, int vn)
           
 boolean displayOn()
           
 void displayOn(boolean displayOn)
           
 double distance(Agent agent1, Agent agent2, boolean wrap)
           
 double distance(Agent agent, double x2, double y2, boolean wrap)
           
 double distance(double x1, double y1, double x2, double y2, boolean wrap)
           
 double distanceToLink(RenderableLink link, double x, double y)
           
 boolean equalDimensions(WorldDimensions d)
           
 void exportWorld(PrintWriter writer, boolean full)
           
 Patch fastGetPatchAt(int xc, int yc)
           
 double followOffsetX()
           
 double followOffsetY()
           
 double generateSeed()
           
 AgentSet getBreed(String breedName)
           
 Map getBreeds()
           
 String getBreedSingular(AgentSet breed)
           
 WorldDimensions getDimensions()
           
 Object getDrawing()
           
 ExtensionManager getExtensionManager()
           
 List getImplicitLinkVariables()
           
 List getImplicitObserverVariables()
           
 List getImplicitPatchVariables()
           
 List getImplicitTurtleVariables()
           
 Link getLink(Double end1, Double end2, AgentSet breed)
           
 AgentSet getLinkBreed(String breedName)
           
 Map getLinkBreeds()
           
 String getLinkBreedSingular(AgentSet breed)
           
 int getLinkVariablesArraySize(AgentSet breed)
           
 Object getObserverVariableByName(String var)
           
 Link getOrCreateDummyLink(Object end1, Object end2, AgentSet breed)
           
 Link getOrCreateLink(Double end1, Double end2, AgentSet breed)
           
 Link getOrCreateLink(Turtle end1, Turtle end2, AgentSet breed)
           
 Turtle getOrCreateTurtle(long id)
           
 Patch getPatch(int id)
           
 Patch getPatchAt(double x, double y)
           
 Patch getPatchAtHeadingAndDistance(Agent a, double heading, double distance)
           
 Patch getPatchAtHeadingAndDistance(double x, double y, double heading, double distance)
           
 Patch getPatchAtWrap(double x, double y)
           
 double[][] getPatchScratch()
           
 double getTimer()
           
 Turtle getTurtle(long id)
           
 int getVariablesArraySize(Link link, AgentSet breed)
           
 int getVariablesArraySize(Observer observer)
           
 int getVariablesArraySize(Patch patch)
           
 int getVariablesArraySize(Turtle turtle, AgentSet breed)
           
 double gridRoot(double val)
           
 double gridRoot(int val)
           
 int growMax(int min, int max, int value, int d)
           
 int growMin(int min, int max, int value, int d)
           
 void importWorld(Importer.ErrorHandler errorHandler, ImporterUser importerUser, Importer.StringReader stringReader, BufferedReader reader)
           
 boolean inBounds(double x1, double y1, double x2, double y2, double x, double y)
           
 List inCone(Turtle startTurtle, AgentSet sourceSet, double radius, double angle, boolean wrap)
           
 int indexOfVariable(Agent agent, String name)
           
 int indexOfVariable(Class agentClass, String name)
           
 HashSet inNetworkRadius(Turtle sourceNode, AgentSet sourceSet, double radius, AgentSet linkBreed)
          This method performs a BFS from the sourceNode, following the network imposed by the given linkBreed, going up to radius layers out, and only collecting nodes that are members of sourceSet.
 List inRadius(Agent agent, AgentSet sourceSet, double radius, boolean wrap)
           
 void invalidateTurtleShape(Shape shapeToInvalidate)
           
 boolean isBreed(AgentSet breed)
           
 boolean isDimensionVariable(String variableName)
           
 boolean isDoubleLinkVariable(int vn)
           
 boolean isDoublePatchVariable(int vn)
           
 boolean isDoubleTurtleVariable(int vn)
           
 boolean isLinkBreed(AgentSet breed)
           
 boolean isSpecialLinkVariable(int vn)
           
 boolean isSpecialPatchVariable(int vn)
           
 boolean isSpecialTurtleVariable(int vn)
           
 double lineThickness(Agent agent)
           
 boolean linkBreedOwns(AgentSet breed, String name)
           
 int linkBreedsOwnIndexOf(AgentSet breed, String name)
           
 String linkBreedsOwnNameAt(AgentSet breed, int index)
           
 AgentSet links()
           
 int linksOwnIndexOf(String name)
           
 String linksOwnNameAt(int index)
           
 void markDrawingClean()
           
 void markPatchColorsClean()
           
 void markPatchColorsDirty()
           
 int maxPxcor()
           
 Double maxPxcorBoxed()
           
 int maxPycor()
           
 Double maxPycorBoxed()
           
 int minPxcor()
           
 Double minPxcorBoxed()
           
 int minPycor()
           
 Double minPycorBoxed()
           
 int networkDistance(Turtle sourceNode, Turtle destNode, AgentSet linkBreed)
          This method performs a BFS from the sourceNode, following the network imposed by the given linkBreed, to find the distance to destNode.
 LogoList networkShortestPathLinks(org.nlogo.util.MersenneTwisterFast random, Turtle sourceNode, Turtle destNode, AgentSet linkBreed)
           
 LogoList networkShortestPathNodes(org.nlogo.util.MersenneTwisterFast random, Turtle sourceNode, Turtle destNode, AgentSet linkBreed)
          This method performs a BFS from the sourceNode, following the network imposed by the given linkBreed, to find the shortest path to destNode.
 AgentSet noLinks()
           
 AgentSet noPatches()
           
 AgentSet noTurtles()
           
 Observer observer()
           
 int observerOwnsIndexOf(String name)
           
 String observerOwnsNameAt(int index)
           
 AgentSet observers()
           
 int[] patchColors()
           
 boolean patchColorsDirty()
           
 AgentSet patches()
           
 boolean patchesAllBlack()
           
 int patchesOwnIndexOf(String name)
           
 String patchesOwnNameAt(int index)
           
 double patchSize()
           
 boolean patchSize(double patchSize)
           
 Program program()
           
 void program(Program program)
           
 void realloc()
           
static boolean recursivelyEqual(Object o1, Object o2)
           
 void rememberOldProgram()
           
 void removeLineThickness(Agent agent)
           
 void resetTicks()
           
 void resetTimer()
           
 int roundX(double x)
           
 int roundY(double y)
           
 boolean sendPixels()
           
 void setDefaultEvaluator(Evaluator eval)
           
 WorldDimensions setDimensionVariable(String variableName, int value, WorldDimensions d)
           
 void setExtensionManager(ExtensionManager mgr)
           
 void setLineThickness(Agent agent, double size)
           
 void setObserverVariableByName(String var, Object value)
           
 void stamp(Agent agent, boolean erase)
           
 void tick()
           
 void tick(double amount)
           
 double ticks()
           
 void ticks(double ticks)
           
 double towards(Agent fromAgent, Agent toAgent, boolean wrap)
           
 double towards(Agent fromAgent, double toX, double toY, boolean wrap)
           
 double towards(double fromX, double fromY, double toX, double toY, boolean wrap)
           
 double towardsPitch(Agent fromAgent, Agent toAgent, boolean wrap)
           
 double towardsPitch(Agent fromAgent, double toX, double toY, double toZ, boolean wrap)
           
 double towardsPitch(double fromX, double fromY, double fromZ, double toX, double toY, double toZ, boolean wrap)
           
 void trailDrawer(TrailDrawerInterface trailDrawer)
           
 AgentSet turtles()
           
 int turtlesOwnIndexOf(String name)
           
 String turtlesOwnNameAt(int index)
           
 boolean validPatchCoordinates(int xc, int yc)
           
 int worldHeight()
           
 Double worldHeightBoxed()
           
 int worldWidth()
           
 Double worldWidthBoxed()
           
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

turtleShapeList

public final ShapeList turtleShapeList

linkShapeList

public final ShapeList linkShapeList

lastRunTimes

public WeakHashMap lastRunTimes

linkManager

public LinkManager linkManager

extensionManager

public ExtensionManager extensionManager

tieManager

public TieManager tieManager

comeUpForAir

public volatile boolean comeUpForAir

mainRNG

public final org.nlogo.util.MersenneTwisterFast mainRNG

auxRNG

public final org.nlogo.util.MersenneTwisterFast auxRNG

patchesWithLabels

public int patchesWithLabels

linkBreedShapes

public final BreedShapes linkBreedShapes

turtleBreedShapes

public final BreedShapes turtleBreedShapes

sinTable

public static final double[] sinTable

cosTable

public static final double[] cosTable
Constructor Detail

World

public World(Shape defaultShape,
             Shape defaultLinkShape)
Method Detail

noTurtles

public AgentSet noTurtles()

noPatches

public AgentSet noPatches()

noLinks

public AgentSet noLinks()

trailDrawer

public void trailDrawer(TrailDrawerInterface trailDrawer)

changeTopology

public void changeTopology(boolean xWrapping,
                           boolean yWrapping)

wrappedObserverX

public double wrappedObserverX(double x)

wrappedObserverY

public double wrappedObserverY(double y)

followOffsetX

public double followOffsetX()

followOffsetY

public double followOffsetY()

wrappingAllowedInX

public boolean wrappingAllowedInX()
Specified by:
wrappingAllowedInX in interface RenderableWorld

wrappingAllowedInY

public boolean wrappingAllowedInY()
Specified by:
wrappingAllowedInY in interface RenderableWorld

exportWorld

public void exportWorld(PrintWriter writer,
                        boolean full)

importWorld

public void importWorld(Importer.ErrorHandler errorHandler,
                        ImporterUser importerUser,
                        Importer.StringReader stringReader,
                        BufferedReader reader)
                 throws IOException
Throws:
IOException

generateSeed

public double generateSeed()

setLineThickness

public void setLineThickness(Agent agent,
                             double size)

lineThickness

public double lineThickness(Agent agent)

removeLineThickness

public void removeLineThickness(Agent agent)

recursivelyEqual

public static boolean recursivelyEqual(Object o1,
                                       Object o2)

worldWidthBoxed

public Double worldWidthBoxed()

worldHeightBoxed

public Double worldHeightBoxed()

minPxcorBoxed

public Double minPxcorBoxed()

minPycorBoxed

public Double minPycorBoxed()

maxPxcorBoxed

public Double maxPxcorBoxed()

maxPycorBoxed

public Double maxPycorBoxed()

ticks

public double ticks()

ticks

public void ticks(double ticks)

tick

public void tick()

tick

public void tick(double amount)

resetTicks

public void resetTicks()

worldWidth

public int worldWidth()
Specified by:
worldWidth in interface RenderableWorld

worldHeight

public int worldHeight()
Specified by:
worldHeight in interface RenderableWorld

minPxcor

public int minPxcor()
Specified by:
minPxcor in interface RenderableWorld

minPycor

public int minPycor()
Specified by:
minPycor in interface RenderableWorld

maxPxcor

public int maxPxcor()
Specified by:
maxPxcor in interface RenderableWorld

maxPycor

public int maxPycor()
Specified by:
maxPycor in interface RenderableWorld

wrapX

public double wrapX(double x)
             throws AgentException
Throws:
AgentException

wrapY

public double wrapY(double y)
             throws AgentException
Throws:
AgentException

wrap

public double wrap(double pos,
                   double min,
                   double max)
Specified by:
wrap in interface RenderableWorld

diffuse

public void diffuse(double param,
                    int vn)
             throws AgentException,
                    PatchException
Throws:
AgentException
PatchException

diffuse4

public void diffuse4(double param,
                     int vn)
              throws AgentException,
                     PatchException
Throws:
AgentException
PatchException

roundX

public int roundX(double x)
           throws AgentException
Throws:
AgentException

roundY

public int roundY(double y)
           throws AgentException
Throws:
AgentException

distanceToLink

public double distanceToLink(RenderableLink link,
                             double x,
                             double y)

inBounds

public boolean inBounds(double x1,
                        double y1,
                        double x2,
                        double y2,
                        double x,
                        double y)

distance

public double distance(Agent agent,
                       double x2,
                       double y2,
                       boolean wrap)

distance

public double distance(Agent agent1,
                       Agent agent2,
                       boolean wrap)

gridRoot

public double gridRoot(double val)

gridRoot

public double gridRoot(int val)

distance

public double distance(double x1,
                       double y1,
                       double x2,
                       double y2,
                       boolean wrap)

getPatchAtHeadingAndDistance

public Patch getPatchAtHeadingAndDistance(Agent a,
                                          double heading,
                                          double distance)
                                   throws AgentException
Throws:
AgentException

getPatchAtHeadingAndDistance

public Patch getPatchAtHeadingAndDistance(double x,
                                          double y,
                                          double heading,
                                          double distance)
                                   throws AgentException
Throws:
AgentException

towards

public double towards(Agent fromAgent,
                      Agent toAgent,
                      boolean wrap)
               throws AgentException
Throws:
AgentException

towards

public double towards(Agent fromAgent,
                      double toX,
                      double toY,
                      boolean wrap)
               throws AgentException
Returns:
0 <= result < 360
Throws:
AgentException

towards

public double towards(double fromX,
                      double fromY,
                      double toX,
                      double toY,
                      boolean wrap)
               throws AgentException
Returns:
0 <= result < 360
Throws:
AgentException

towardsPitch

public double towardsPitch(Agent fromAgent,
                           Agent toAgent,
                           boolean wrap)
                    throws AgentException
Throws:
AgentException

towardsPitch

public double towardsPitch(Agent fromAgent,
                           double toX,
                           double toY,
                           double toZ,
                           boolean wrap)
                    throws AgentException
Throws:
AgentException

towardsPitch

public double towardsPitch(double fromX,
                           double fromY,
                           double fromZ,
                           double toX,
                           double toY,
                           double toZ,
                           boolean wrap)
                    throws AgentException
Throws:
AgentException

inCone

public List inCone(Turtle startTurtle,
                   AgentSet sourceSet,
                   double radius,
                   double angle,
                   boolean wrap)
            throws AgentException
Throws:
AgentException

createTurtle

public Turtle createTurtle(AgentSet breed)

createTurtle

public Turtle createTurtle(AgentSet breed,
                           int c,
                           int h)

inRadius

public List inRadius(Agent agent,
                     AgentSet sourceSet,
                     double radius,
                     boolean wrap)

observers

public AgentSet observers()

observer

public Observer observer()

patches

public AgentSet patches()

turtles

public AgentSet turtles()

links

public AgentSet links()

agentClassToAgentSet

public AgentSet agentClassToAgentSet(Class agentClass)

isDoublePatchVariable

public boolean isDoublePatchVariable(int vn)

isDoubleTurtleVariable

public boolean isDoubleTurtleVariable(int vn)

isDoubleLinkVariable

public boolean isDoubleLinkVariable(int vn)

isSpecialTurtleVariable

public boolean isSpecialTurtleVariable(int vn)

isSpecialPatchVariable

public boolean isSpecialPatchVariable(int vn)

isSpecialLinkVariable

public boolean isSpecialLinkVariable(int vn)

getImplicitObserverVariables

public List getImplicitObserverVariables()

getImplicitTurtleVariables

public List getImplicitTurtleVariables()

getImplicitPatchVariables

public List getImplicitPatchVariables()

getImplicitLinkVariables

public List getImplicitLinkVariables()

getDimensions

public WorldDimensions getDimensions()

isDimensionVariable

public boolean isDimensionVariable(String variableName)

setDimensionVariable

public WorldDimensions setDimensionVariable(String variableName,
                                            int value,
                                            WorldDimensions d)
                                     throws WorldDimensionException
Throws:
WorldDimensionException

growMin

public int growMin(int min,
                   int max,
                   int value,
                   int d)
            throws WorldDimensionException
Throws:
WorldDimensionException

growMax

public int growMax(int min,
                   int max,
                   int value,
                   int d)
            throws WorldDimensionException
Throws:
WorldDimensionException

equalDimensions

public boolean equalDimensions(WorldDimensions d)

getPatch

public Patch getPatch(int id)

getPatchAt

public Patch getPatchAt(double x,
                        double y)
                 throws AgentException
Throws:
AgentException

getPatchAtWrap

public Patch getPatchAtWrap(double x,
                            double y)

validPatchCoordinates

public boolean validPatchCoordinates(int xc,
                                     int yc)

fastGetPatchAt

public Patch fastGetPatchAt(int xc,
                            int yc)

getTurtle

public Turtle getTurtle(long id)

getLink

public Link getLink(Double end1,
                    Double end2,
                    AgentSet breed)

inNetworkRadius

public HashSet inNetworkRadius(Turtle sourceNode,
                               AgentSet sourceSet,
                               double radius,
                               AgentSet linkBreed)
This method performs a BFS from the sourceNode, following the network imposed by the given linkBreed, going up to radius layers out, and only collecting nodes that are members of sourceSet. Note: this method follows directed links both directions. But we could change its functionality when dealing with directed links -- I'm not sure what the right thing is. ~Forrest (5/11/2007)


networkDistance

public int networkDistance(Turtle sourceNode,
                           Turtle destNode,
                           AgentSet linkBreed)
This method performs a BFS from the sourceNode, following the network imposed by the given linkBreed, to find the distance to destNode. Directed links are only followed in the "forward" direction. It returns -1 if there is no path between the two nodes. ~Forrest (5/11/2007)


networkShortestPathNodes

public LogoList networkShortestPathNodes(org.nlogo.util.MersenneTwisterFast random,
                                         Turtle sourceNode,
                                         Turtle destNode,
                                         AgentSet linkBreed)
This method performs a BFS from the sourceNode, following the network imposed by the given linkBreed, to find the shortest path to destNode. Directed links are only followed in the "forward" direction. It returns an empty list if there is no path between the two nodes. The BFS proceeds in a random order, so if there are multiple shortest paths, a random one will be returned. Note, however, that the probability distribution of this random choice is subtly different from if we had enumerated *all* shortest paths, and chose one of them uniformly at random. I don't think there is an efficient way to implement it that other way. ~Forrest (5/11/2007)


networkShortestPathLinks

public LogoList networkShortestPathLinks(org.nlogo.util.MersenneTwisterFast random,
                                         Turtle sourceNode,
                                         Turtle destNode,
                                         AgentSet linkBreed)

averagePathLength

public double averagePathLength(AgentSet nodeSet,
                                AgentSet linkBreed)
Calculates the average shortest-path length between all (distinct) pairs of nodes in the given nodeSet, by traveling along links of the given linkBreed. It returns -1 if any two nodes in nodeSet are not connected by a path. Note: this method follows directed links both directions. But we could change its functionality when dealing with directed links -- I'm not sure what the right thing is. Seems like often the average path length (when only following links "forward)in a directed-graph would be undefined. ~Forrest (5/11/2007)


getOrCreateTurtle

public Turtle getOrCreateTurtle(long id)

getOrCreateLink

public Link getOrCreateLink(Double end1,
                            Double end2,
                            AgentSet breed)

getOrCreateLink

public Link getOrCreateLink(Turtle end1,
                            Turtle end2,
                            AgentSet breed)

getOrCreateDummyLink

public Link getOrCreateDummyLink(Object end1,
                                 Object end2,
                                 AgentSet breed)

patchColorsDirty

public boolean patchColorsDirty()

markPatchColorsDirty

public void markPatchColorsDirty()

markPatchColorsClean

public void markPatchColorsClean()

patchesAllBlack

public boolean patchesAllBlack()

patchColors

public int[] patchColors()

createPatches

public void createPatches(WorldDimensions dim)

createPatches

public void createPatches(int minPxcor,
                          int maxPxcor,
                          int minPycor,
                          int maxPycor)

clearAll

public void clearAll()

clearDrawing

public void clearDrawing()

stamp

public void stamp(Agent agent,
                  boolean erase)

patchSize

public double patchSize()
Specified by:
patchSize in interface RenderableWorld

patchSize

public boolean patchSize(double patchSize)

getDrawing

public Object getDrawing()

sendPixels

public boolean sendPixels()

markDrawingClean

public void markDrawingClean()

clearPatches

public void clearPatches()

clearTurtles

public void clearTurtles()

clearLinks

public void clearLinks()

clearGlobals

public void clearGlobals()

realloc

public void realloc()

getPatchScratch

public double[][] getPatchScratch()

indexOfVariable

public int indexOfVariable(Class agentClass,
                           String name)

indexOfVariable

public int indexOfVariable(Agent agent,
                           String name)

turtlesOwnNameAt

public String turtlesOwnNameAt(int index)

turtlesOwnIndexOf

public int turtlesOwnIndexOf(String name)

linksOwnIndexOf

public int linksOwnIndexOf(String name)

linksOwnNameAt

public String linksOwnNameAt(int index)

breedsOwnNameAt

public String breedsOwnNameAt(AgentSet breed,
                              int index)

breedsOwnIndexOf

public int breedsOwnIndexOf(AgentSet breed,
                            String name)

linkBreedsOwnNameAt

public String linkBreedsOwnNameAt(AgentSet breed,
                                  int index)

linkBreedsOwnIndexOf

public int linkBreedsOwnIndexOf(AgentSet breed,
                                String name)

patchesOwnNameAt

public String patchesOwnNameAt(int index)

patchesOwnIndexOf

public int patchesOwnIndexOf(String name)

observerOwnsNameAt

public String observerOwnsNameAt(int index)

observerOwnsIndexOf

public int observerOwnsIndexOf(String name)

isBreed

public boolean isBreed(AgentSet breed)

isLinkBreed

public boolean isLinkBreed(AgentSet breed)

getBreed

public AgentSet getBreed(String breedName)

getLinkBreed

public AgentSet getLinkBreed(String breedName)

getBreedSingular

public String getBreedSingular(AgentSet breed)

getLinkBreedSingular

public String getLinkBreedSingular(AgentSet breed)

compareLinkBreeds

public int compareLinkBreeds(AgentSet breed1,
                             AgentSet breed2)

getVariablesArraySize

public int getVariablesArraySize(Observer observer)

getVariablesArraySize

public int getVariablesArraySize(Patch patch)

getVariablesArraySize

public int getVariablesArraySize(Turtle turtle,
                                 AgentSet breed)

getVariablesArraySize

public int getVariablesArraySize(Link link,
                                 AgentSet breed)

getLinkVariablesArraySize

public int getLinkVariablesArraySize(AgentSet breed)

checkTurtleShapeName

public String checkTurtleShapeName(String name)

checkLinkShapeName

public String checkLinkShapeName(String name)

invalidateTurtleShape

public void invalidateTurtleShape(Shape shapeToInvalidate)

getBreeds

public Map getBreeds()

breedOwns

public boolean breedOwns(AgentSet breed,
                         String name)

getLinkBreeds

public Map getLinkBreeds()

linkBreedOwns

public boolean linkBreedOwns(AgentSet breed,
                             String name)

program

public Program program()

program

public void program(Program program)

rememberOldProgram

public void rememberOldProgram()

displayOn

public boolean displayOn()

displayOn

public void displayOn(boolean displayOn)

resetTimer

public void resetTimer()

getTimer

public double getTimer()

checksum

public String checksum()

getObserverVariableByName

public Object getObserverVariableByName(String var)

setObserverVariableByName

public void setObserverVariableByName(String var,
                                      Object value)
                               throws AgentException,
                                      LogoException
Throws:
AgentException
LogoException

setDefaultEvaluator

public void setDefaultEvaluator(Evaluator eval)

defaultEvaluator

public Evaluator defaultEvaluator()

setExtensionManager

public void setExtensionManager(ExtensionManager mgr)

getExtensionManager

public ExtensionManager getExtensionManager()