public class HistoricalDataPoint extends java.lang.Object implements IDataPoint
| Modifier and Type | Field and Description |
|---|---|
private int |
dataTypeId |
private int |
id |
private PointValueDao |
pointValueDao |
private com.serotonin.timer.SimulationTimer |
timer |
| Constructor and Description |
|---|
HistoricalDataPoint(int id,
int dataTypeId,
com.serotonin.timer.SimulationTimer timer,
PointValueDao pointValueDao) |
| Modifier and Type | Method and Description |
|---|---|
int |
getDataTypeId() |
int |
getId() |
java.util.List<PointValueTime> |
getLatestPointValues(int limit) |
PointValueTime |
getPointValue() |
PointValueTime |
getPointValueBefore(long time) |
java.util.List<PointValueTime> |
getPointValues(long since) |
java.util.List<PointValueTime> |
getPointValuesBetween(long from,
long to) |
void |
setPointValue(PointValueTime newValue,
SetPointSource source) |
void |
updatePointValue(PointValueTime newValue) |
void |
updatePointValue(PointValueTime newValue,
boolean async) |
private final int id
private final int dataTypeId
private final PointValueDao pointValueDao
private final com.serotonin.timer.SimulationTimer timer
public HistoricalDataPoint(int id,
int dataTypeId,
com.serotonin.timer.SimulationTimer timer,
PointValueDao pointValueDao)
public int getId()
public java.util.List<PointValueTime> getLatestPointValues(int limit)
getLatestPointValues in interface IDataPointpublic void updatePointValue(PointValueTime newValue)
updatePointValue in interface IDataPointpublic void updatePointValue(PointValueTime newValue, boolean async)
updatePointValue in interface IDataPointpublic void setPointValue(PointValueTime newValue, SetPointSource source)
setPointValue in interface IDataPointpublic PointValueTime getPointValue()
getPointValue in interface IDataPointpublic PointValueTime getPointValueBefore(long time)
getPointValueBefore in interface IDataPointpublic java.util.List<PointValueTime> getPointValues(long since)
getPointValues in interface IDataPointpublic java.util.List<PointValueTime> getPointValuesBetween(long from, long to)
getPointValuesBetween in interface IDataPointpublic int getDataTypeId()
getDataTypeId in interface IDataPoint