org.openmuc.core.datamanager
Interface DataStorage

All Known Implementing Classes:
DataStorageImpl

public interface DataStorage

Provides an interface to access measurement and control data


Method Summary
 void addListener(DataStorageListener listener)
           
 boolean addMeasurement(Measurement msr)
           
 ChannelConfiguration getConfiguration()
           
 Value getCurrentValue()
           
 ChannelIdentifier getDataId()
           
 java.lang.String getLabel()
           
 long getLastUpdateTime()
           
 java.lang.Double getLowerLimit()
           
 State getState()
           
 java.lang.Double getUpperLimit()
           
 Value getValue(long timestamp)
          Get a Value object for the specified timestamp.
 java.util.List<Value> getValues(long startTime)
          Get a list of Value objects (time serie).
 java.util.List<Value> getValues(long startTime, long endTime)
          Get a list of Value objects (time serie).
 void setState(State state)
           
 void setValue(double value)
           
 

Method Detail

getDataId

ChannelIdentifier getDataId()

getLabel

java.lang.String getLabel()

getCurrentValue

Value getCurrentValue()

getValue

Value getValue(long timestamp)
Get a Value object for the specified timestamp.

Parameters:
timestamp -
Returns:
a Value object or null if none was found.

setValue

void setValue(double value)

getValues

java.util.List<Value> getValues(long startTime)
Get a list of Value objects (time serie).

Parameters:
startTime -
Returns:
a list of Value objects or an empty list if no Value has been found.

getValues

java.util.List<Value> getValues(long startTime,
                                long endTime)
Get a list of Value objects (time serie).

Parameters:
startTime -
endTime -
Returns:
a list of Value objects or an empty list if no Value has been found.

getLastUpdateTime

long getLastUpdateTime()

getState

State getState()

setState

void setState(State state)

getUpperLimit

java.lang.Double getUpperLimit()

getLowerLimit

java.lang.Double getLowerLimit()

getConfiguration

ChannelConfiguration getConfiguration()

addListener

void addListener(DataStorageListener listener)

addMeasurement

boolean addMeasurement(Measurement msr)