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.
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()