A C D F I L M O R S T W

A

AutoToilet - class AutoToilet.
A better Toilet.
AutoToilet() - Constructor for class AutoToilet
 

C

CLOG_PROBABILITY - Static variable in class Toilet
Probability that the toilet will clog and overflow if you try to flush TrashWaste.
color - Variable in class LiquidWaste
 
color - Variable in class SolidWaste
 
color - Variable in class TrashWaste
 
contents - Variable in class Toilet
Whatever's in the toilet.
count - Variable in class SolidWaste
 

D

deposit(LiquidWaste) - Method in class AutoToilet
Although we inherit the general Toilet.deposit(Waste) method from our parent class, we also override it with this more specific method for liquid waste.
deposit(Toilet) - Method in class Waste
This is a convenience function.
deposit(Waste) - Method in class Toilet
Place something in the toilet.
description - Variable in class Waste
 

F

FloatingOverflowException - exception FloatingOverflowException.
 
FloatingOverflowException() - Constructor for class FloatingOverflowException
 
flush() - Method in class AutoToilet
Like Toilet.flush(), but cleans up instead of throwing an exception.
flush() - Method in class Toilet
Make the contents of the toilet (if any) go away.

I

isYucky() - Method in class Toilet
Does the toilet need flushing?

L

LiquidWaste - class LiquidWaste.
 
LiquidWaste(String) - Constructor for class LiquidWaste
 

M

main(String[]) - Static method in class AutoToilet
Test function similar to Toilet.main(java.lang.String[]).
main(String[]) - Static method in class Toilet
This isn't necessarily the real main program, but it will be run if we type "java Toilet", so it is a good way to test the Toilet class.

O

odor - Variable in class SolidWaste
 

R

raiseSeat(boolean) - Method in class AutoToilet
Since this kind of toilet has an automatic seat raiser, the user can't move the seat.
raiseSeat(boolean) - Method in class Toilet
Change the seat position.
raiseSeatAuto(boolean) - Method in class AutoToilet
Internally, the class's implementation will call this protected method to move the seat.
random - Static variable in class Toilet
 

S

seatup - Variable in class Toilet
True iff the seat is up.
SolidWaste - class SolidWaste.
 
SolidWaste(String) - Constructor for class SolidWaste
 

T

Toilet - class Toilet.
This class approximates the standard interface to a physical toilet.
Toilet() - Constructor for class Toilet
 
toString() - Method in class Waste
To get a printable version of the waste, we just use its description string.
TrashWaste - class TrashWaste.
 
TrashWaste(String) - Constructor for class TrashWaste
 

W

Waste - class Waste.
Stuff that you might try to flush down a toilet.
Waste(String) - Constructor for class Waste
The constructor; we could add others.

A C D F I L M O R S T W