sdr 0.7

net.cscott.sdr.calls
Class TimedPosition

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

public class TimedPosition
extends Timed<TimedPosition>

A TimedPosition combines a Position with a timestamp indicating when that particular position should be reached. The timestamp is always absolute.

Version:
$Id: TimedPosition.java,v 1.3 2006-10-27 05:14:34 cananian Exp $
Author:
C. Scott Ananian

Field Summary
 Position position
          The dancer position called for at the given time.
 
Fields inherited from class net.cscott.sdr.calls.Timed
isAbsolute, time
 
Constructor Summary
TimedPosition(Position position, Fraction time, boolean isAbsolute)
           
 
Method Summary
 TimedPosition makeAbsolute(Timed<?> reference)
          Given a reference, make this Timed absolute.
 
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, toString, wait, wait, wait
 

Field Detail

position

public final Position position
The dancer position called for at the given time.

Constructor Detail

TimedPosition

public TimedPosition(Position position,
                     Fraction time,
                     boolean isAbsolute)
Method Detail

makeAbsolute

public TimedPosition 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<TimedPosition>
Parameters:
reference - The previous Timed (must be absolute)

sdr 0.7

Copyright © 2006-2009 C. Scott Ananian