|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface is implemented by any class that is a MatrixModel.
| Method Summary | |
void |
addView(MatrixView view)
Add a MatrixView to the current list of views that are looking at this model and want to hear about changes. |
Critter |
getCritter(int[] loc)
Get the Critter at the given (row,col) address in the cell array |
int[] |
getDimensions()
This method returns an int array containing the dimensions of the Matrix being modelled. |
void |
step()
Step the model one simulation step. |
| Method Detail |
public int[] getDimensions()
public void addView(MatrixView view)
view - the MatrixView to add to the list for this modelpublic void step()
public Critter getCritter(int[] loc)
loc - a 2-element int array containing the address of the desired cell.
The row address is in element [0] and the column address is in element [1].
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||