Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## uchicago.src.repastdemos.sugarscape
Class SugarSpace

    java.lang.Object
      uchicago.src.repastdemos.sugarscape.SugarSpace

    public class SugarSpace

extends java.lang.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.

Version:
  $Revision: 1.1 $ $Date: 2005/08/12 20:04:53 $
Author:
  Nick Collier

Constructor Summary
`SugarSpace(java.lang.String sugarFile)`

Method Summary
`Object2DGrid` | `getCurrentSugar()`
`java.awt.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(java.lang.String sugarFile)

Method Detail

### getSize

    public java.awt.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()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD