public class SchmidtTrigger extends Object implements Toggling
off value to change the toggle state to false. On the
other side, if the toggle state is at false, the new value added must
be at least above the on value to toggle.| Modifier and Type | Field and Description |
|---|---|
private boolean |
icurrent
The current state of the toggle trigger.
|
private double |
off
The value that must be undercut to turn the toggle from true to false.
|
private double |
on
The value that must be exceeded to turn the toggle from false to true.
|
| Modifier | Constructor and Description |
|---|---|
protected |
SchmidtTrigger()
Common constructor.
|
protected |
SchmidtTrigger(double offtrig,
double ontrig)
Constructs a new Schmidt trigger.
|
|
SchmidtTrigger(String parameter)
Constructs a new Schmidt trigger.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addHit(double val)
Return true, if the argument value is above the appropriate trigger.
|
protected void |
parse(String parameter)
|
protected void |
setTriggers(double offtrig,
double ontrig)
Sets the two trigger values.
|
String |
toString()
Returns the two toggle edges as a description.
|
private boolean icurrent
private double on
private double off
protected SchmidtTrigger()
public SchmidtTrigger(String parameter)
protected SchmidtTrigger(double offtrig,
double ontrig)
protected void parse(String parameter)
parameter - protected void setTriggers(double offtrig,
double ontrig)
public boolean addHit(double val)