|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kinetic.Behavior | +--kinetic.Jitter
gereates a randomized offset over time
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 |
public kinetic.KineticProperty amount
public kinetic.KineticProperty rate
Constructor Detail |
public Jitter()
public Jitter(double amount_val, double rate_val)
amount_val
- offset range usedrate_val
- milliseconds between randomizationspublic Jitter(double delay_val, double dur_val, double amount_val, double rate_val)
delay_val
- milliseconds of delaydur_val
- duration in millisecondsamount_val
- offset range usedrate_val
- milliseconds between randomizationsMethod Detail |
public void setAmount(double new_amount)
new_amount
- offset rangepublic void setRate(double new_rate)
new_rate
- new time delay between randomizationspublic void reset()
reset
in class Behavior
public void Process()
Process
in class Behavior
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |