sdr 0.7

net.cscott.sdr.calls
Class TimedAction

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

public class TimedAction
extends Timed<TimedAction>

A TimedAction combines an Action with a timestamp indicating notionally when that particular action should occur, although the exact timing and duration depends on the action: some actions may begin at the specified time, with others (for example) may be centered on the time given. The timestamp may be absolute or relative.

Version:
$Id: TimedAction.java,v 1.1 2006-10-26 18:33:19 cananian Exp $
Author:
C. Scott Ananian

Field Summary
 Action action
          The dancer action called for at the given time.
 
Fields inherited from class net.cscott.sdr.calls.Timed
isAbsolute, time
 
Constructor Summary
TimedAction(Action action, Fraction time, boolean isAbsolute)
           
 
Method Summary
 TimedAction 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

action

public final Action action
The dancer action called for at the given time.

Constructor Detail

TimedAction

public TimedAction(Action action,
                   Fraction time,
                   boolean isAbsolute)
Method Detail

makeAbsolute

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

sdr 0.7

Copyright © 2006-2009 C. Scott Ananian