Minnow Project

Class Simulation

Simulation

public class Simulation

AP® Computer Science Marine Biology Simulation:
A Simulation object controls a simulation of fish movement in an Environment.

The Simulation class is copyright© 2002 College Entrance Examination Board (www.collegeboard.com). It has been modified, as allowed by the GNU General Public License, to extend the EnvAppController class.

Version:
1 January 2003
See Also:
Environment, EnvDisplay, Fish

Constructor Summary
Simulation(Environment env, EnvDisplay display)
          Constructs a Simulation object for a particular environment.
 
Method Summary
 void step()
          Runs through a single step of this simulation.
 

Constructor Detail

Simulation

public Simulation(Environment env,
                  EnvDisplay display)
Constructs a Simulation object for a particular environment.
Parameters:
env - the environment on which the simulation will run
display - an object that knows how to display the environment
Method Detail

step

public void step()
Runs through a single step of this simulation.

Minnow Project

Copyright© 2002-2003 Alyce Brady