|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--kinetic.Behavior
|
+--kinetic.ExponentialChange
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.
| 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 |
protected kinetic.KineticProperty amount
protected kinetic.KineticProperty exponent
| Constructor Detail |
public ExponentialChange()
public ExponentialChange(double delay_val,
double dur_val,
double exp,
double amount_val)
delay_val - time until the behavior starts -msdur_val - life span of the bahavior - msexp - curvature exponentamount_val - offset amount| Method Detail |
public void setAmount(double new_amount)
new_amount - offset amountpublic void Process()
Process in class Behavior
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||