Squeak Class Documentation category index | class index  
 
Alarm
  category: Balloon3D-Wonderland Time
  superclass: Object
  subclasses:

This class implements the alarms for Wonderlands. The user specifies the time the alarm should go off (either in a certain amount of time or at a specific moment) and the task the system should execute when the alarm goes off.

instance methods
  accessing
  checkTime

  management
  execute
setScheduler:
setTask:
setTime:
stop

class methods
  intialize-release
  do:at:inScheduler:
do:in:inScheduler:

instance methods
  accessing top  
 

checkTime

Returns the time the alarm is set to go off at


  management top  
 

execute

Execute the appointed task because it's the appointed hour


 

setScheduler:

Set the Scheduler that manages this Alarm


 

setTask:

Specifies the task the alarm executes when it goes off


 

setTime:

Specifies the time the alarm goes off


 

stop

This method removes the Alarm from myScheduler's list of active Alarms


class methods
  intialize-release top  
 

do:at:inScheduler:

Creates an alarm that does the specified task at the specified time


 

do:in:inScheduler:

This sets an alarm that will expire in waitTime seconds and execute the specified task