|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
Class Summary | |
---|---|
Controller | THIS CLASS IS IMPLEMENTED FOR YOU -- DO NOT MODIFY IT! |
Fish | The state of a fish consists of its position in the pond (row and column), it's size, and the direction in which it is moving (UP, DOWN, LEFT, or RIGHT). |
Model | Model for the Fish Pond Simulation. |
Plant | The state of a plant includes it's position (row and column) and it's size. |
PublicTests | Here we provide a couple of simple tests so that you can see how you might write them on your own. |
View | THIS CLASS HAS BEEN WRITTEN FOR YOU -- DO NOT MODIFY IT! |
Exception Summary | |
---|---|
IllegalFishDirectionException | Thrown when a fish's direction is not set to one of the four static constants (Fish.UP, Fish.DOWN, Fish.LEFT, Fish.RIGHT). |
IllegalFishPositionException | Thrown when a fish is positioned in a way that doesn't make sense (either above another fish, or over a rock.) |
IllegalPlantPositionException | Thrown when a plant is positioned in a way that doesn't make sense (either above another plant, or over a rock.) |
IllegalPondSizeException | Thrown when someone tries to construct a Pond that is just too small! |
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |