|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.deepthought.sidious.supportsystem.SystemSettings
public final class SystemSettings
This class represent systemwide constants. All constants can supposably be collected from a properties file.
This implementation facilitates the replacement of specific sensor id's for testing purposes.
Field Summary | |
---|---|
private static SuperLinkID |
co2ID
The SuperLinkID of the CO2 sensor |
private static SuperLinkID |
humidityID
The SuperLinkID of the humidity sensor |
private static SuperLinkID |
irradianceID
The SuperLinkID of the light irradiance sensor |
private static org.apache.commons.logging.Log |
logger
Logger for this class |
private static SuperLinkID |
outsideHumidityID
The SuperLinkID of the outside humidity sensor |
private static SuperLinkID |
outsideTemperatureID
The SuperLinkID of the outside temperature sensor |
private static java.util.Properties |
properties
|
private static SuperLinkID |
temperatureID
The SuperLinkID of the temperature sensor |
private static boolean |
testMode
Used when system is set to debug mode |
private static SuperLinkID |
timeID
The SuperLinkID of the time sensor |
private static int |
TIMESTEP
The systemwide timestep in minutes |
Constructor Summary | |
---|---|
SystemSettings()
|
Method Summary | |
---|---|
static SuperLinkID |
getCO2ID()
Returns the SuperLinkID of the CO2 sensor. |
static SuperLinkID |
getCO2SetPointID()
Returns the id of the CO2 setpoint. |
static SuperLinkID |
getHeaterSetPointID()
Returns the id of the heater setpoint. |
static SuperLinkID |
getHumidityID()
Returns the SuperLinkID of the humidity sensor. |
static SuperLinkID |
getIrradianceID()
Returns the SuperLinkID of the light irradiance sensor. |
static SuperLinkID |
getOutsideHumidityID()
Returns the SuperLinkID of the outside humidity sensor. |
static SuperLinkID |
getOutsideTemperatureID()
Returns the SuperLinkID of the outside temperature sensor. |
static SuperLinkID |
getScreenSetPointID()
Returns the id of the screen setpoint. |
static SuperLinkID |
getTemperatureID()
Returns the SuperLinkID of the temperature sensor. |
static SuperLinkID |
getTimeID()
|
static int |
getTimestep()
Returns the systemwide time step. |
static SuperLinkID |
getWindowSetPointID()
Returns the id of the window setpoint. |
static boolean |
isTestMode()
Tells whether or not the system is in testMode. |
private static java.util.Properties |
readProperties()
Method returns the Properties object of this. |
static void |
setCO2ID(SuperLinkID co2ID)
|
static void |
setHumidityID(SuperLinkID humidityID)
|
static void |
setIrradianceID(SuperLinkID irradianceID)
|
static void |
setOutsideHumidityID(SuperLinkID outsideHumidityID)
|
static void |
setOutsideTemperatureID(SuperLinkID outsideTemperatureID)
|
static void |
setTemperatureID(SuperLinkID temperatureID)
|
static void |
setTestMode(boolean testMode)
Sets whether or not test mode is enabled. |
static void |
setTimeID(SuperLinkID timeID)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.util.Properties properties
private static final org.apache.commons.logging.Log logger
private static SuperLinkID co2ID
SuperLinkID
of the CO2 sensor
private static SuperLinkID humidityID
SuperLinkID
of the humidity sensor
private static SuperLinkID irradianceID
SuperLinkID
of the light irradiance sensor
private static SuperLinkID outsideHumidityID
SuperLinkID
of the outside humidity sensor
private static SuperLinkID outsideTemperatureID
SuperLinkID
of the outside temperature sensor
private static SuperLinkID temperatureID
SuperLinkID
of the temperature sensor
private static SuperLinkID timeID
SuperLinkID
of the time sensor
private static int TIMESTEP
private static boolean testMode
Constructor Detail |
---|
public SystemSettings()
Method Detail |
---|
public static SuperLinkID getCO2ID()
SuperLinkID
of the CO2 sensor.
public static SuperLinkID getCO2SetPointID()
public static SuperLinkID getHeaterSetPointID()
public static SuperLinkID getHumidityID()
SuperLinkID
of the humidity sensor.
public static SuperLinkID getIrradianceID()
SuperLinkID
of the light irradiance sensor.
public static SuperLinkID getOutsideHumidityID()
SuperLinkID
of the outside humidity sensor.
public static SuperLinkID getOutsideTemperatureID()
SuperLinkID
of the outside temperature sensor.
public static SuperLinkID getScreenSetPointID()
public static SuperLinkID getTemperatureID()
SuperLinkID
of the temperature sensor.
public static SuperLinkID getTimeID()
public static int getTimestep()
public static SuperLinkID getWindowSetPointID()
public static void setCO2ID(SuperLinkID co2ID)
co2ID
- the co2ID to setpublic static void setHumidityID(SuperLinkID humidityID)
humidityID
- the humidityID to setpublic static void setIrradianceID(SuperLinkID irradianceID)
irradianceID
- the irradianceID to setpublic static void setOutsideHumidityID(SuperLinkID outsideHumidityID)
outsideHumidityID
- the outsideHumidityID to setpublic static void setOutsideTemperatureID(SuperLinkID outsideTemperatureID)
outsideTemperatureID
- the outsideTemperatureID to setpublic static void setTemperatureID(SuperLinkID temperatureID)
temperatureID
- the temperatureID to setpublic static void setTimeID(SuperLinkID timeID)
timeID
- the timeID to setpublic static boolean isTestMode()
true
if system is in test mode.public static void setTestMode(boolean testMode)
testMode
- true to enable test modeprivate static java.util.Properties readProperties()
Properties
object of this.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |