org.isam.exehda.services.tips
Class DataManagerImpl
java.lang.Object
|
+--org.isam.exehda.services.tips.DataManagerImpl
- All Implemented Interfaces:
- DataManager
- public class DataManagerImpl
- extends java.lang.Object
- implements DataManager
Field Summary |
(package private) java.util.Hashtable |
sensorTable
Associations |
Method Summary |
java.lang.Double |
getConstancy(java.lang.String sensorName)
|
java.lang.Object |
getSensorHistory(java.lang.String sensorName)
Get an object with the history of the readings of the
hostid, sensor pair |
java.lang.Object |
getSensorValue(java.lang.String sensorName)
Returns the last received value of the sensor identified by
sensorName value for the hostid host |
java.lang.Double |
getUtility()
|
boolean |
hasConstancy(java.lang.String sensorName)
|
void |
setConstancy(java.lang.String sensorName,
java.lang.Double value)
|
void |
setSensorValue(java.lang.String sensorName,
java.lang.Object value)
|
void |
setUtility(java.lang.Double value)
|
void |
summary()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sensorTable
java.util.Hashtable sensorTable
- Associations
DataManagerImpl
public DataManagerImpl()
getSensorValue
public java.lang.Object getSensorValue(java.lang.String sensorName)
- Description copied from interface:
DataManager
- Returns the last received value of the sensor identified by
sensorName value for the hostid host
- Specified by:
getSensorValue
in interface DataManager
- Parameters:
sensorName
- Identification of the sensor
- Returns:
- an Object which corresponds to the last received data
getSensorHistory
public java.lang.Object getSensorHistory(java.lang.String sensorName)
- Description copied from interface:
DataManager
- Get an object with the history of the readings of the
hostid, sensor pair
- Specified by:
getSensorHistory
in interface DataManager
- Parameters:
sensorName
- Identification of the sensor
- Returns:
- an Object with the history of the received data
setSensorValue
public void setSensorValue(java.lang.String sensorName,
java.lang.Object value)
- Specified by:
setSensorValue
in interface DataManager
hasConstancy
public boolean hasConstancy(java.lang.String sensorName)
- Specified by:
hasConstancy
in interface DataManager
getConstancy
public java.lang.Double getConstancy(java.lang.String sensorName)
- Specified by:
getConstancy
in interface DataManager
setConstancy
public void setConstancy(java.lang.String sensorName,
java.lang.Double value)
- Specified by:
setConstancy
in interface DataManager
getUtility
public java.lang.Double getUtility()
- Specified by:
getUtility
in interface DataManager
setUtility
public void setUtility(java.lang.Double value)
- Specified by:
setUtility
in interface DataManager
summary
public void summary()