Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
B
C
F
G
M
P
R
S
U
V
B
BirdFeeder
- class
BirdFeeder
.
This class models a simple bird feeder.
BirdFeeder(int)
- Constructor for class
BirdFeeder
Construct a new bird feeder with the given amount of food.
bounceHorizontal()
- Method in class
Velocity
Bounce the vector as though it were bouncing off of a wall.
bounceVertical()
- Method in class
Velocity
Bounce the vector as though it were bouncing off of the floor or the ceiling.
C
Car
- class
Car
.
This class models the Cars that can be parked in a ParkingLot.
Car(String, int)
- Constructor for class
Car
Remember the brand and year.
F
feedTheBirds(int)
- Method in class
BirdFeeder
Feed each bird the serving size each until the food is all gone.
G
getBrand()
- Method in class
Car
Return the brand name of this Car.
getCarCount()
- Method in class
ParkingLot
Return the number of Cars presently in the ParkingLot.
getDX()
- Method in class
Velocity
Get the change in x per unit time represented by this vector.
getDY()
- Method in class
Velocity
Get the change in y per unit time represented by this vector.
getFoodLevel()
- Method in class
BirdFeeder
Return the amount of food in the feeder.
getMass()
- Method in class
Rock
Return the mass of this Rock in kilograms.
getYear()
- Method in class
Car
Return the model year of this Car.
M
magnitude()
- Method in class
Velocity
Return the magnitude (the length) of this vector.
P
ParkingLot
- class
ParkingLot
.
This class models a parking lot.
ParkingLot()
- Constructor for class
ParkingLot
A new ParkingLot object does not have any cars on it, initialize appropriately.
parkCar(Car)
- Method in class
ParkingLot
Park one Car in the lot (ie, add it to the end of the list of cars currently in the lot).
parkCar(ArrayList)
- Method in class
ParkingLot
Park several Cars in the lot (ie, add them to the end of the list of cars currently in the lot).
R
Rock
- class
Rock
.
This class models a rock that has a certain mass.
Rock(double)
- Constructor for class
Rock
Initialize a Rock object with the given mass in kilograms.
Rover
- class
Rover
.
Rover(double)
- Constructor for class
Rover
Initialize a new Rover object using the given capacity in kilograms.
rotate(double)
- Method in class
Velocity
Turn the direction vector through a counter-clockwise angle specified in degrees.
S
setFoodLevel(int)
- Method in class
BirdFeeder
Fill the feeder.
U
unparkCar()
- Method in class
ParkingLot
Take the last car that was parked out of the lot.
V
Velocity
- class
Velocity
.
This class models a velocity vector (direction and magnitude) for a system of x-y coordinates.
Velocity(double, double)
- Constructor for class
Velocity
Initialize a new Velocity object, remembering the given (dx,dy) direction.
verifyLoad(ArrayList)
- Method in class
Rover
Check that we can in fact take the load of rocks that has been selected for us.
B
C
F
G
M
P
R
S
U
V
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes