ArrayList<DataVO> dataSetList = new ArrayList<DataVO>();
int rowNum = seriesCount * seriesSetCount;
List<DataSourceSeries> series = odbCore.getLatestSeriesData(dataSourceId, rowNum);
for (int i = 0; i < series.size(); i += seriesCount) {
TimeSeriesDataVO dataSet = new TimeSeriesDataVO(series.get(i).getDateTime());
for (int j = 0; j < seriesCount; j++) {
int idx = i+j;
dataSet.put(series.get(idx).getSeriesIndex(), series.get(idx).getSeriesIndexSeqVal());
}
dataSetList.add(dataSet);
}
return dataSetList;
// throw new GraphNotAvailableException();