|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.deepthought.sidious.greenhouse.CO2SetPoint
@Immutable public class CO2SetPoint
This class represents the CO2 setpoint of the greenhouse.
Nested Class Summary | |
---|---|
private static class |
CO2SetPoint.CO2Step
Internal enum to describe possible adjustments. |
Field Summary | |
---|---|
private SuperLinkID |
co2ID
The id of the CO2 setpoint. |
private static double |
DECREASE_PER_MIN
Expected decrease per minute. |
private static double |
INCREASE_PER_MIN
Expected increase per minute. |
private static org.apache.commons.logging.Log |
logger
Logger for this class |
private double |
setting
The setting of this CO2SetPoint. |
Constructor Summary | |
---|---|
CO2SetPoint(double setting)
Constructor. |
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 co2ID
private static final double INCREASE_PER_MIN
private static final double DECREASE_PER_MIN
Constructor Detail |
---|
public CO2SetPoint(double setting)
setting
- the setting of this CO2SetPointMethod 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 |