RePast
v. 2.0

uchicago.src.sim.sugarScape
Class SugarSpace

java.lang.Object
  |
  +--uchicago.src.sim.sugarScape.SugarSpace

public class SugarSpace
extends Object

The space in which the SugarAgents act. In particular this space implements the growback rule G from Growing Artificial Societies.

The source has been annotated so see that for further details.


Constructor Summary
SugarSpace(String sugarFile)
           
 
Method Summary
 Object2DGrid getCurrentSugar()
           
 Dimension getSize()
           
 int getSugarAt(int x, int y)
           
 int getXSize()
           
 int getYSize()
           
 int takeSugarAt(int x, int y)
           
 void updateSugar()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SugarSpace

public SugarSpace(String sugarFile)
Method Detail

getSize

public Dimension getSize()

getCurrentSugar

public Object2DGrid getCurrentSugar()

updateSugar

public void updateSugar()

takeSugarAt

public int takeSugarAt(int x,
                       int y)

getSugarAt

public int getSugarAt(int x,
                      int y)

getXSize

public int getXSize()

getYSize

public int getYSize()

RePast
v. 2.0

Bug reports and feature requests to RePast