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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SugarSpace
public SugarSpace(String sugarFile)
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()
Bug reports and feature requests to RePast