kinetic
Class Delay

java.lang.Object
  |
  +--kinetic.TimeFilter
        |
        +--kinetic.Delay
All Implemented Interfaces:
java.io.Serializable

public class Delay
extends TimeFilter

Basic time filter that shifts the incommin time by a given amount. This allows an object to be delayed or shifted forward in time.

See Also:
Serialized Form

Field Summary
 kinetic.KineticProperty amount
          property holdin the time shift amount
 
Fields inherited from class kinetic.TimeFilter
duration, isDone, properties
 
Constructor Summary
Delay(double amount_val)
          constructs a new instance of Delay
Delay(double amount_val, double dur)
          constructs a new instance of Delay
 
Method Summary
 double apply(double time)
          main routtine that calulates the new value of time
 
Methods inherited from class kinetic.TimeFilter
clear, getDuration, getPropertyList, isDone, PrepareVariables, reset, setDuration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

amount

public kinetic.KineticProperty amount
property holdin the time shift amount

Constructor Detail

Delay

public Delay(double amount_val)
constructs a new instance of Delay

Parameters:
amount_val - time shift amount

Delay

public Delay(double amount_val,
             double dur)
constructs a new instance of Delay

Parameters:
amount_val - time shift amount - ms
dur - set the duration in which this timefilter is valid -ms
Method Detail

apply

public double apply(double time)
main routtine that calulates the new value of time

Specified by:
apply in class TimeFilter
Parameters:
time - incomming value of time - ms
Returns:
the new value of time