net.thestump.ghronos.timing.delay
Class Delay

java.lang.Object
  extended bynet.thestump.ghronos.timing.TimingStyle
      extended bynet.thestump.ghronos.timing.delay.DelayStyle
          extended bynet.thestump.ghronos.timing.delay.Delay
All Implemented Interfaces:
superwaba.ext.xplat.io.Storable

public class Delay
extends DelayStyle

Provides a delay timing style. Colons flash for the specified delay. Time decreases one second, every second thereafter.

Author:
Christopher C. Stump

Field Summary
static byte ID
          Timing style/Storable ID
static java.lang.String NAME
          Name of this timing style
 
Fields inherited from class net.thestump.ghronos.timing.delay.DelayStyle
delay
 
Fields inherited from class net.thestump.ghronos.timing.TimingStyle
appliedToBottomClock, appliedToTopClock, toStart, toStop
 
Constructor Summary
Delay()
           
 
Method Summary
 void execute(Clock topClock, Clock bottomClock)
          Applies the timing style to the appropriate clocks on a clock switch
 java.lang.String getDescription()
          Gets a description of this timing style which is used to display information about the timing style in a help dialog
 byte getID()
           
 superwaba.ext.xplat.io.Storable getInstance()
           
 void onRegister(Clock topClock, Clock bottomClock)
          Called when this TimingStyle is registered with the Mediator.
 void onUnRegister(Clock topClock, Clock bottomClock)
          Called when this TimingStyle is unregistered with the Mediator (when another TimingStyle is registered).
 java.lang.String toString()
           
 
Methods inherited from class net.thestump.ghronos.timing.delay.DelayStyle
getDelay, loadState, saveState, setDelay
 
Methods inherited from class net.thestump.ghronos.timing.TimingStyle
applyTo, evaluate, isAppliedTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public static final byte ID
Timing style/Storable ID

See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
Name of this timing style

See Also:
Constant Field Values
Constructor Detail

Delay

public Delay()
Method Detail

onUnRegister

public void onUnRegister(Clock topClock,
                         Clock bottomClock)
Description copied from class: TimingStyle
Called when this TimingStyle is unregistered with the Mediator (when another TimingStyle is registered). Is a place holder to do work before just before the timing style is trashed. Does nothing by default.

Overrides:
onUnRegister in class TimingStyle
Parameters:
topClock -
bottomClock -

onRegister

public void onRegister(Clock topClock,
                       Clock bottomClock)
Description copied from class: TimingStyle
Called when this TimingStyle is registered with the Mediator. Is a place holder to do work before just before the timing style is actually used. Does nothing by default. Note that this method IS NOT called when a timing style is recalled from the database

Overrides:
onRegister in class TimingStyle
Parameters:
topClock -
bottomClock -

execute

public void execute(Clock topClock,
                    Clock bottomClock)
Description copied from class: TimingStyle
Applies the timing style to the appropriate clocks on a clock switch

Specified by:
execute in class DelayStyle

toString

public java.lang.String toString()

getID

public byte getID()
Specified by:
getID in interface superwaba.ext.xplat.io.Storable
Specified by:
getID in class DelayStyle

getInstance

public superwaba.ext.xplat.io.Storable getInstance()
Specified by:
getInstance in interface superwaba.ext.xplat.io.Storable
Specified by:
getInstance in class DelayStyle

getDescription

public java.lang.String getDescription()
Description copied from class: TimingStyle
Gets a description of this timing style which is used to display information about the timing style in a help dialog

Specified by:
getDescription in class TimingStyle
Returns:
A brief description of how the timing style operates.


Copyright © 2004 Christopher C. Stump. All Rights Reserved.