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.life
Interface Space

All Known Implementing Classes:
  InfiniteLifeSpace, LifeSpace

    public interface Space

Interface for spaces in the Life model. Life contains both an "infinite" space and a toroidal grid. We want to be able to treat them the same. This inteface allows us to do so.

Method Summary
`void` | `addAgent(LifeAgent agent)`
`Displayable` | `getDisplay()`
`int` | `getNumNeighbors(int x, int y)`
`int` | `getXSize()`
`int` | `getYSize()`
`boolean` | `isEmptyAt(int x, int y)`
`void` | `remove(LifeAgent agent)`
`void` | `removeAgentAt(int x, int y)`
`void` | `step(java.util.ArrayList list)`

Method Detail

### remove

    void remove(LifeAgent agent)

### removeAgentAt

    void removeAgentAt(int x,
                       int y)

### addAgent

    void addAgent(LifeAgent agent)

### getNumNeighbors

    int getNumNeighbors(int x,
                        int y)

### isEmptyAt

    boolean isEmptyAt(int x,
                      int y)

### getDisplay

    Displayable getDisplay()

### step

    void step(java.util.ArrayList list)

### getXSize

    int getXSize()

### getYSize

    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