kinetic
Class Jitter

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

public class Jitter
extends Behavior

gereates a randomized offset over time

See Also:
Serialized Form

Field Summary
 kinetic.KineticProperty amount
          property to hold the offset range
 kinetic.KineticProperty rate
          property to hold the number of milliseconds between each shift
 
Fields inherited from class kinetic.Behavior
current_time, duration, isDone, owner, properties, timeFilters
 
Constructor Summary
Jitter()
          constructs a new instance of the Jitter brhavior
Jitter(double amount_val, double rate_val)
          constructs a new instance of the Jitter brhavior
Jitter(double delay_val, double dur_val, double amount_val, double rate_val)
          constructs a new instance of the Jitter brhavior
 
Method Summary
 void Process()
          main routine for doing the calculation
 void reset()
          resets internal variables
 void setAmount(double new_amount)
          sets the offset range
 void setRate(double new_rate)
          sets the time between each randomization
 
Methods inherited from class kinetic.Behavior
addTimeFilter, apply, clear, getDuration, getPropertyList, getTimeFilterList, isDone, PrepareVariables, 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
property to hold the offset range


rate

public kinetic.KineticProperty rate
property to hold the number of milliseconds between each shift

Constructor Detail

Jitter

public Jitter()
constructs a new instance of the Jitter brhavior


Jitter

public Jitter(double amount_val,
              double rate_val)
constructs a new instance of the Jitter brhavior

Parameters:
amount_val - offset range used
rate_val - milliseconds between randomizations

Jitter

public Jitter(double delay_val,
              double dur_val,
              double amount_val,
              double rate_val)
constructs a new instance of the Jitter brhavior

Parameters:
delay_val - milliseconds of delay
dur_val - duration in milliseconds
amount_val - offset range used
rate_val - milliseconds between randomizations
Method Detail

setAmount

public void setAmount(double new_amount)
sets the offset range

Parameters:
new_amount - offset range

setRate

public void setRate(double new_rate)
sets the time between each randomization

Parameters:
new_rate - new time delay between randomizations

reset

public void reset()
resets internal variables

Overrides:
reset in class Behavior

Process

public void Process()
main routine for doing the calculation

Specified by:
Process in class Behavior