Class AlarmClock

java.lang.Object
  |
  +--AlarmClock

class AlarmClock
extends java.lang.Object


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

ring

Sound ring
the Sound object that we play when the AlarmClock rings.


ringname

java.lang.String ringname
the name of the file from which we got the sound

Constructor Detail

AlarmClock

public AlarmClock(java.lang.String filename)
Create a new Sound object, using the filename provided.

Parameters:
filename - the name of the .wav file containing the ring sound
Method Detail

main

public static void main(java.lang.String[] args)
Test fixture for the AlarmClock class.

Parameters:
args - user arguments (ignored)

ring

public void ring()
Ring the alarm.



Generated by BlueJ