A C G I M N R S U 

A

a03 - package a03
 

C

Cabin - Class in a03
A class to represent a cabin at a resort.
Cabin(String, int) - Constructor for class a03.Cabin
Create a Cabin with the given name and number of bedrooms.

G

getBasicRent() - Method in class a03.Cabin
The basic rent for this Cabin, based on number of rooms.
getCurrentRent() - Method in class a03.Cabin
Calculate how much rent this room is bringing in.
getMaxOccupancy() - Method in class a03.Cabin
Get the maximum capacity of this Cabin.
getName() - Method in class a03.Cabin
Get the name of this Cabin.
getNumOccupants() - Method in class a03.Cabin
Get the current number of occupants.
getNumRooms() - Method in class a03.Cabin
Get the number of bedrooms in this Cabin.
getSurcharge() - Method in class a03.Cabin
The surcharge for this Cabin, based on the number of people in it.

I

isOccupied() - Method in class a03.Cabin
Return whether this room is occupied.

M

main(String[]) - Static method in class a03.Manager
 
Manager - Class in a03
A program that uses the Cabin class to run a small resort business for three days.
Manager() - Constructor for class a03.Manager
 
MAX_PEOPLE_PER_ROOM - Static variable in class a03.Cabin
 

N

name - Variable in class a03.Cabin
The name for this Cabin.
numRooms - Variable in class a03.Cabin
The number of bedrooms this Cabin has.

R

removeOccupants() - Method in class a03.Cabin
Mark this room as open for rental.

S

setBaseRate(double) - Static method in class a03.Cabin
Set the basic rental rate for all Cabins.
setExtraPersonRate(double) - Static method in class a03.Cabin
Set the surcharge for each extra person in the Cabin.
setExtraRoomRate(double) - Static method in class a03.Cabin
Set the amount the rate rises for every bedroom after the first.
setOccupants(int) - Method in class a03.Cabin
Rent this Cabin to a group of the given size.

U

USUAL_PEOPLE_PER_ROOM - Static variable in class a03.Cabin
 
A C G I M N R S U 
Skip navigation links