sim
Interface MatrixController

All Known Implementing Classes:
BugWorld

public interface MatrixController

This interface is implemented by any class that coordinates a MatrixModel and one or more MatrixViewers.


Method Summary
 void animate(int millis)
          Step the model continuously with a pause in between each step.
 void step()
          Step the model one simulation step.
 

Method Detail

step

public void step()
Step the model one simulation step. This method is responsible in part for managing performance, so it should tell the views to suspend and resume repaints before and after the model is stepped.


animate

public void animate(int millis)
Step the model continuously with a pause in between each step. Stepping will continue until some other event brings it to a stop.

Parameters:
millis - the number of milliseconds between each clock tick