|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.deepthought.sidious.greenhouse.ScreenSetPoint
@Immutable public class ScreenSetPoint
This class implements the abstraction of a setpoint of the screens.
Nested Class Summary | |
---|---|
private static class |
ScreenSetPoint.ScreenStep
Internal enum to describe possible adjustments. |
Field Summary | |
---|---|
private SuperLinkID |
irradianceID
The id of the irradiance sensor. |
private static org.apache.commons.logging.Log |
logger
Logger for this class. |
private double |
setting
The setting of this setpoint. |
Constructor Summary | |
---|---|
ScreenSetPoint(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 irradianceID
Constructor Detail |
---|
public ScreenSetPoint(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 |