public class SchmidtIntegralTrigger extends SchmidtTrigger
| Modifier and Type | Field and Description |
|---|---|
private boolean |
intcurrent
Current state of the integral part.
|
private Shelf<Double> |
integral
All measurements in the integral part.
|
private double |
intoff
Value that must be underrun to turn the toggle from true to false.
|
private double |
inton
Value that must be exceeded to turn the toggle from false to true.
|
private boolean |
or
Logical or of integral and immediate vote for total.
|
private double |
sum
Sum of all values currently in the integral list.
|
| Modifier | Constructor and Description |
|---|---|
protected |
SchmidtIntegralTrigger() |
protected |
SchmidtIntegralTrigger(double off,
double on,
boolean or,
int n,
double ioff,
double ion) |
|
SchmidtIntegralTrigger(String parameter) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addHit(double val)
Return true, if the argument value is above the appropriate trigger.
|
private void |
doubleParse(String parameter) |
private boolean |
integralHit(double val)
Takes a new measure in the integral list of the trigger.
|
boolean |
isOr() |
private void |
setIntegralTriggers(int n,
double ioff,
double ion) |
void |
setOr(boolean or) |
String |
toString()
Returns the two toggle edges as a description.
|
parse, setTriggersprivate boolean intcurrent
private double inton
private double intoff
private double sum
private boolean or
protected SchmidtIntegralTrigger()
public SchmidtIntegralTrigger(String parameter)
parameter - protected SchmidtIntegralTrigger(double off,
double on,
boolean or,
int n,
double ioff,
double ion)
private void doubleParse(String parameter)
private void setIntegralTriggers(int n,
double ioff,
double ion)
public boolean addHit(double val)
SchmidtTrigger.on
value is used, the SchmidtTrigger.off value otherwise.addHit in interface TogglingaddHit in class SchmidtTriggerprivate boolean integralHit(double val)
val - public boolean isOr()
public void setOr(boolean or)
or - the or to setpublic String toString()
toString in class SchmidtTrigger