public class SolarToggle extends Object implements Toggling
set value
is used for Toggling action, on sun rise, the rise value
is used. The action is similar to a SchmidtTrigger, but the latter
does not allow a setting value higher than a rising value.| Modifier and Type | Field and Description |
|---|---|
private double |
lastsol
The last measurement added.
|
private double |
rise
The solar height toggle at sun rise.
|
private double |
set
The solar height toggle at sun set.
|
| Modifier | Constructor and Description |
|---|---|
protected |
SolarToggle()
Common constructor.
|
|
SolarToggle(double offtrig,
double ontrig)
Constructs a new Schmidt trigger.
|
|
SolarToggle(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 |
setTriggers(double offtrig,
double ontrig)
Sets the two trigger values.
|
String |
toString()
Returns the two toggle edges as a description.
|
private double lastsol
private double set
private double rise
protected SolarToggle()
public SolarToggle(String parameter)
#off
and #on must be separated with a comma.public SolarToggle(double offtrig,
double ontrig)
#off trigger must be less than the second argument, the
#on trigger.protected void setTriggers(double offtrig,
double ontrig)
public boolean addHit(double val)
#on value is used, the #off value otherwise.