java.lang.Object | +--AlarmClock
Field Summary | |
(package private) Sound |
ring
the Sound object that we play when the AlarmClock rings. |
(package private) java.lang.String |
ringname
the name of the file from which we got the sound |
Constructor Summary | |
AlarmClock(java.lang.String filename)
Create a new Sound object, using the filename provided. |
Method Summary | |
static void |
main(java.lang.String[] args)
Test fixture for the AlarmClock class. |
void |
ring()
Ring the alarm. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
Sound ring
java.lang.String ringname
Constructor Detail |
public AlarmClock(java.lang.String filename)
filename
- the name of the .wav file containing the ring soundMethod Detail |
public static void main(java.lang.String[] args)
args
- user arguments (ignored)public void ring()