|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.deepthought.sidious.greenhouse.WindowSetPoint
@Immutable public class WindowSetPoint
This class represents the setpoint for the greenhouse windows.
Nested Class Summary | |
---|---|
private static class |
WindowSetPoint.WindowStep
Internal enum to describe possible adjustments. |
Field Summary | |
---|---|
private SuperLinkID |
humidityID
The id of the humidity sensor. |
private static org.apache.commons.logging.Log |
logger
Logger for this class |
private SuperLinkID |
outsideHumidityID
The id of the outside humidity sensor. |
private SuperLinkID |
outsideTemperatureID
The id of the outside temperature sensor. |
private double |
setting
The setting of this setpoint. |
private SuperLinkID |
temperatureID
The id of the temperature sensor. |
private static int |
windowAreaPercentage
Approximate window surface percentage. |
Constructor Summary | |
---|---|
WindowSetPoint(double setting)
Creates a new ScreenSetPoint with the specified setting. |
Method Summary | |
---|---|
State |
consequence(State state)
Calculates the consequense of applying this adjustable to the specified state. |
boolean |
equals(java.lang.Object obj)
|
SuperLinkID |
getID()
Returns the id of this Adjustable . |
double |
getSetting()
Returns the setting of this Adjustable . |
int |
hashCode()
|
java.util.Collection<Adjustable> |
possibleAdjustments()
Returns the possible adjustments from the current setting of this Adjustable . |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final org.apache.commons.logging.Log logger
private final double setting
private final SuperLinkID temperatureID
private final SuperLinkID humidityID
private final SuperLinkID outsideTemperatureID
private final SuperLinkID outsideHumidityID
private static final int windowAreaPercentage
Constructor Detail |
---|
public WindowSetPoint(double setting)
ScreenSetPoint
with the specified setting.
Input parameters should be between 0 and 100 percent. Parameters outside this will be rounded to nearest limit.
setting
- the settingMethod Detail |
---|
public State consequence(State state)
Adjustable
Returns a new State
as the calculated consequence of
applying this adjustable to the specified state
.
consequence
in interface Adjustable
state
- the input state
State
from applying this adjustable
to state
public java.util.Collection<Adjustable> possibleAdjustments()
Adjustable
Adjustable
.
The resulting adjustments represent all currently possible adjustments that can be applied to this adjustable.
possibleAdjustments
in interface Adjustable
public SuperLinkID getID()
Adjustable
Adjustable
.
getID
in interface Adjustable
public double getSetting()
Adjustable
Adjustable
.
getSetting
in interface Adjustable
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |