kinetic
Class ExponentialChange

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

public class ExponentialChange
extends Behavior

generates a offset driven by an exponetial curve. The curve is bound by the values of amount and duration, but the supplied exponent determines the curvature of offset over time.

See Also:
Serialized Form

Field Summary
protected  kinetic.KineticProperty amount
          porpoerty to hold the offset amount
protected  kinetic.KineticProperty exponent
          property to hold the curvature exponent
 
Fields inherited from class kinetic.Behavior
current_time, duration, isDone, owner, properties, timeFilters
 
Constructor Summary
ExponentialChange()
          Creates a new instance of ExponentialChange
ExponentialChange(double delay_val, double dur_val, double exp, double amount_val)
          creates a new instance of ExponetialChange using parameters
 
Method Summary
 void Process()
          main routine that makes the calculation
 void setAmount(double new_amount)
          sets the offset amount
 
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

protected kinetic.KineticProperty amount
porpoerty to hold the offset amount


exponent

protected kinetic.KineticProperty exponent
property to hold the curvature exponent

Constructor Detail

ExponentialChange

public ExponentialChange()
Creates a new instance of ExponentialChange


ExponentialChange

public ExponentialChange(double delay_val,
                         double dur_val,
                         double exp,
                         double amount_val)
creates a new instance of ExponetialChange using parameters

Parameters:
delay_val - time until the behavior starts -ms
dur_val - life span of the bahavior - ms
exp - curvature exponent
amount_val - offset amount
Method Detail

setAmount

public void setAmount(double new_amount)
sets the offset amount

Parameters:
new_amount - offset amount

Process

public void Process()
main routine that makes the calculation

Specified by:
Process in class Behavior