use of com.serotonin.m2m2.rt.script.AbstractPointWrapper in project ma-core-public by MangoAutomation.
the class DataSourceQuery method getPointsForSource.
/**
* Helper to extract points for a source
*/
private List<DataPointWrapper> getPointsForSource(DataSourceVO ds) {
List<DataPointWrapper> points = new ArrayList<DataPointWrapper>();
List<DataPointVO> dataPoints = DataPointDao.getInstance().getDataPoints(ds.getId());
for (DataPointVO vo : dataPoints) {
DataPointRT rt = Common.runtimeManager.getDataPoint(vo.getId());
AbstractPointWrapper wrapper = null;
if (rt != null)
wrapper = service.wrapPoint(engine, rt, setter);
points.add(new DataPointWrapper(vo, wrapper));
}
return points;
}
Aggregations