kinetic
Class Pulse

java.lang.Object
  |
  +--kinetic.Behavior
        |
        +--kinetic.Pulse
All Implemented Interfaces:
java.io.Serializable

public class Pulse
extends Behavior

creates a decaying oscillation offset on a property

See Also:
Serialized Form

Field Summary
 kinetic.KineticProperty amount
          peak offset value
 kinetic.KineticProperty damping
          speed the oscillation amplitude wave decays to zero
 kinetic.KineticProperty phase
          radian phase shift
 kinetic.KineticProperty rate
          osciallation rate (radians over life span)
 
Fields inherited from class kinetic.Behavior
current_time, duration, isDone, owner, properties, timeFilters
 
Constructor Summary
Pulse()
          creats new instance of Pulse
Pulse(double delay_val, double dur_val, double amount_val, double rate_val, double damping_val, double phase_val)
          creates a new instance of pulse
 
Method Summary
 void Process()
          main routine to calculate the new value for the owner property
 
Methods inherited from class kinetic.Behavior
addTimeFilter, apply, clear, getDuration, getPropertyList, getTimeFilterList, isDone, PrepareVariables, reset, setOwner
 
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
peak offset value


rate

public kinetic.KineticProperty rate
osciallation rate (radians over life span)


damping

public kinetic.KineticProperty damping
speed the oscillation amplitude wave decays to zero


phase

public kinetic.KineticProperty phase
radian phase shift

Constructor Detail

Pulse

public Pulse()
creats new instance of Pulse


Pulse

public Pulse(double delay_val,
             double dur_val,
             double amount_val,
             double rate_val,
             double damping_val,
             double phase_val)
creates a new instance of pulse

Parameters:
delay_val - time delay - ms
dur_val - duration/lifespan - ms
amount_val - peak offset amount
rate_val - radians over lifespan
damping_val - oscillation amplitude deacy rate
phase_val - radian phase offset
Method Detail

Process

public void Process()
main routine to calculate the new value for the owner property

Specified by:
Process in class Behavior