sdr 0.7

net.cscott.sdr.calls
Class TimedFormation

java.lang.Object
  extended by net.cscott.sdr.calls.Timed<TimedFormation>
      extended by net.cscott.sdr.calls.TimedFormation
All Implemented Interfaces:
Comparable<TimedFormation>

public class TimedFormation
extends Timed<TimedFormation>

A TimedFormation combines a Formation with a timestamp indicating when that particular formation should be reached. Timestamps can be either absolute or relative.

Version:
$Id: TimedFormation.java,v 1.2 2006-10-26 17:30:25 cananian Exp $
Author:
C. Scott Ananian

Field Summary
 Formation formation
          The dancer formation called for at the given time.
 
Fields inherited from class net.cscott.sdr.calls.Timed
isAbsolute, time
 
Constructor Summary
TimedFormation(Formation formation, Fraction time, boolean isAbsolute)
           
 
Method Summary
 TimedFormation makeAbsolute(Timed<?> reference)
          Given a reference, make this Timed absolute.
 String toString()
           
 
Methods inherited from class net.cscott.sdr.calls.Timed
compareTo, makeAbsolute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

formation

public final Formation formation
The dancer formation called for at the given time.

Constructor Detail

TimedFormation

public TimedFormation(Formation formation,
                      Fraction time,
                      boolean isAbsolute)
Method Detail

makeAbsolute

public TimedFormation makeAbsolute(Timed<?> reference)
Description copied from class: Timed
Given a reference, make this Timed absolute. Returns this if the Timed is already absolute. A null reference should be treated as one with an absolute time of zero.

Specified by:
makeAbsolute in class Timed<TimedFormation>
Parameters:
reference - The previous Timed (must be absolute)

toString

public String toString()
Overrides:
toString in class Object

sdr 0.7

Copyright © 2006-2009 C. Scott Ananian