dk.deepthought.sidious.supportsystem
Class SystemSettings

java.lang.Object
  extended by dk.deepthought.sidious.supportsystem.SystemSettings

public final class SystemSettings
extends java.lang.Object

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.

Author:
Deepthought

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

properties

private static final java.util.Properties properties

logger

private static final org.apache.commons.logging.Log logger
Logger for this class


co2ID

private static SuperLinkID co2ID
The SuperLinkID of the CO2 sensor


humidityID

private static SuperLinkID humidityID
The SuperLinkID of the humidity sensor


irradianceID

private static SuperLinkID irradianceID
The SuperLinkID of the light irradiance sensor


outsideHumidityID

private static SuperLinkID outsideHumidityID
The SuperLinkID of the outside humidity sensor


outsideTemperatureID

private static SuperLinkID outsideTemperatureID
The SuperLinkID of the outside temperature sensor


temperatureID

private static SuperLinkID temperatureID
The SuperLinkID of the temperature sensor


timeID

private static SuperLinkID timeID
The SuperLinkID of the time sensor


TIMESTEP

private static int TIMESTEP
The systemwide timestep in minutes


testMode

private static boolean testMode
Used when system is set to debug mode

Constructor Detail

SystemSettings

public SystemSettings()
Method Detail

getCO2ID

public static SuperLinkID getCO2ID()
Returns the SuperLinkID of the CO2 sensor.

Returns:
id of the CO2 sensor

getCO2SetPointID

public static SuperLinkID getCO2SetPointID()
Returns the id of the CO2 setpoint.

Returns:
the CO2 setpoint id

getHeaterSetPointID

public static SuperLinkID getHeaterSetPointID()
Returns the id of the heater setpoint.

Returns:
the heater setpoint id

getHumidityID

public static SuperLinkID getHumidityID()
Returns the SuperLinkID of the humidity sensor.

Returns:
id of the humidity sensor

getIrradianceID

public static SuperLinkID getIrradianceID()
Returns the SuperLinkID of the light irradiance sensor.

Returns:
id of the outside irradiance sensor

getOutsideHumidityID

public static SuperLinkID getOutsideHumidityID()
Returns the SuperLinkID of the outside humidity sensor.

Returns:
id of the outside humidity sensor

getOutsideTemperatureID

public static SuperLinkID getOutsideTemperatureID()
Returns the SuperLinkID of the outside temperature sensor.

Returns:
id of the outside temperature sensor

getScreenSetPointID

public static SuperLinkID getScreenSetPointID()
Returns the id of the screen setpoint.

Returns:
the screen setpoint id

getTemperatureID

public static SuperLinkID getTemperatureID()
Returns the SuperLinkID of the temperature sensor.

Returns:
id of the temperature sensor

getTimeID

public static SuperLinkID getTimeID()
Returns:
the timeID

getTimestep

public static int getTimestep()
Returns the systemwide time step.

Returns:
the timestep

getWindowSetPointID

public static SuperLinkID getWindowSetPointID()
Returns the id of the window setpoint.

Returns:
the window setpoint id

setCO2ID

public static void setCO2ID(SuperLinkID co2ID)
Parameters:
co2ID - the co2ID to set

setHumidityID

public static void setHumidityID(SuperLinkID humidityID)
Parameters:
humidityID - the humidityID to set

setIrradianceID

public static void setIrradianceID(SuperLinkID irradianceID)
Parameters:
irradianceID - the irradianceID to set

setOutsideHumidityID

public static void setOutsideHumidityID(SuperLinkID outsideHumidityID)
Parameters:
outsideHumidityID - the outsideHumidityID to set

setOutsideTemperatureID

public static void setOutsideTemperatureID(SuperLinkID outsideTemperatureID)
Parameters:
outsideTemperatureID - the outsideTemperatureID to set

setTemperatureID

public static void setTemperatureID(SuperLinkID temperatureID)
Parameters:
temperatureID - the temperatureID to set

setTimeID

public static void setTimeID(SuperLinkID timeID)
Parameters:
timeID - the timeID to set

isTestMode

public static boolean isTestMode()
Tells whether or not the system is in testMode.

Returns:
true if system is in test mode.

setTestMode

public static void setTestMode(boolean testMode)
Sets whether or not test mode is enabled.

Parameters:
testMode - true to enable test mode

readProperties

private static java.util.Properties readProperties()
Method returns the Properties object of this.

Returns:
the properties of this


Copyright © Deepthought Development - All Rights Reserved.