algoanim.util
Class Timing

java.lang.Object
  extended by algoanim.util.DisplayOptions
      extended by algoanim.util.Timing
Direct Known Subclasses:
MsTiming, TicksTiming

public abstract class Timing
extends DisplayOptions

An abstract representation of a Timing. This is based on a number and an arbitrary unit.

Author:
Jens Pfau

Constructor Summary
Timing(int theDelay)
          Creates a new Timing instance using the specified delay.
 
Method Summary
 int getDelay()
          Returns the numeric value for this Timing.
abstract  java.lang.String getUnit()
          Returns the contained unit as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Timing

public Timing(int theDelay)
Creates a new Timing instance using the specified delay.

Parameters:
theDelay - the numeric value for this Timing.
Method Detail

getUnit

public abstract java.lang.String getUnit()
Returns the contained unit as a String.

Returns:
the unit of this Timing.

getDelay

public int getDelay()
Returns the numeric value for this Timing.

Returns:
the numeric value for this Timing.