|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectstella.util.SolarToggle
public class SolarToggle
A Solar height toggle with two different values. If the sun is setting, i.e.
the last measurement was higher than the current, then the 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.
| Field Summary | |
|---|---|
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. |
| Constructor Summary | |
|---|---|
protected |
SolarToggle()
Common constructor. |
|
SolarToggle(double offtrig,
double ontrig)
Constructs a new Schmidt trigger. |
|
SolarToggle(String parameter)
Constructs a new Schmidt trigger. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private double lastsol
private double set
private double rise
| Constructor Detail |
|---|
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.
| Method Detail |
|---|
protected void setTriggers(double offtrig,
double ontrig)
public boolean addHit(double val)
#on value is used, the #off value otherwise.
addHit in interface Togglingpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||