private static final class SineError.Relaxation extends Object
getCurrentRelax(double). Once isFinished(double) returns true, no
more changes in the relaxation will occur and the instance can be
removed from the currently active relaxation list.| Modifier and Type | Field and Description |
|---|---|
private double |
attain
The total offset this relaxation process should attain to.
|
private double |
deadtime
The deadtime of the process.
|
private double |
speed
The speed with which the system reaction during latency phase.
|
private double |
t0
The time this relaxation was started.
|
| Modifier | Constructor and Description |
|---|---|
private |
Relaxation(double tstart,
double total,
double toff,
double velocity)
Constructs a new relaxation process whose current offset is
determined by a function that returns zero during the deadtime
and will return its full offset latency and total offset
dependant after the deadtime.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getCurrentRelax(double t)
Returns the current relaxation state of this process.
|
boolean |
isFinished(double t)
Returns true if this relaxation process is finished.
|
private double t0
private double attain
private double deadtime
private double speed
private Relaxation(double tstart,
double total,
double toff,
double velocity)
public double getCurrentRelax(double t)
public boolean isFinished(double t)