|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Simulation
Aquarium Lab Series: The Simulation class defines a simulation of fish in an Aquarium. (Not implemented yet.)
Aquarium
,
AquaFish
,
Display
Constructor Summary | |
Simulation(Aquarium aquarium,
Display d,
int numFish)
Construct and initialize a Simulation object. |
Method Summary | |
void |
run(int numSteps)
Run the simulation for the specified number of steps. |
void |
step()
Runs through one step of the simulation (without display). |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Simulation(Aquarium aquarium, Display d, int numFish)
aquarium
- simulation will act on fish in this aquariumd
- a Display object that will display aquarium
and all its fishMethod Detail |
public void run(int numSteps)
public void step()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |