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 IDataPoint
public void updatePointValue(PointValueTime newValue)
updatePointValue
in interface IDataPoint
public void updatePointValue(PointValueTime newValue, boolean async)
updatePointValue
in interface IDataPoint
public void setPointValue(PointValueTime newValue, SetPointSource source)
setPointValue
in interface IDataPoint
public PointValueTime getPointValue()
getPointValue
in interface IDataPoint
public PointValueTime getPointValueBefore(long time)
getPointValueBefore
in interface IDataPoint
public java.util.List<PointValueTime> getPointValues(long since)
getPointValues
in interface IDataPoint
public java.util.List<PointValueTime> getPointValuesBetween(long from, long to)
getPointValuesBetween
in interface IDataPoint
public int getDataTypeId()
getDataTypeId
in interface IDataPoint