net.thestump.ghronos.timing
Class Standard

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

public class Standard
extends TimingStyle

Provides a simple timing style. Time decreases 1 second each second

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.TimingStyle
appliedToBottomClock, appliedToTopClock, toStart, toStop
 
Constructor Summary
Standard()
           
 
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()
           
 java.lang.String toString()
           
 
Methods inherited from class net.thestump.ghronos.timing.TimingStyle
applyTo, evaluate, isAppliedTo, loadState, onRegister, onUnRegister, saveState
 
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

Standard

public Standard()
Method Detail

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.

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 TimingStyle
Parameters:
topClock - The application's top clock
bottomClock - The application's bottom clock

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 TimingStyle

getInstance

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


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