Class | Tree | Index | Help
| AP® Computer Science Marine Biology Simulation
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## Class Simulation

    java.lang.Object
      |
      +--Simulation

public class Simulation
extends java.lang.Object

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

Version:
  1 July 2002
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.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

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.

Class | Tree | Index | Help
| AP® Computer Science Marine Biology Simulation
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright© 2002 College Entrance Examination Board