FileDocCategorySizeDatePackage
AlarmThread.javaAPI DocExample345Tue Dec 12 18:58:10 GMT 2000None

AlarmThread

public class AlarmThread extends Thread

Fields Summary
int
mySleeper
AlarmClock
myClock
Constructors Summary
AlarmThread(AlarmClock clock, int sleeperIndex)

	super();
	mySleeper = sleeperIndex;
	myClock = clock;
    
Methods Summary
public voidrun()

	try {
	    sleep(myClock.sleepFor[mySleeper]);
	} catch (InterruptedException e) {}
	myClock.wakeUpSleeper(mySleeper);