public void resetDataSet(Long objId) { this.dataSets.put(objId, new AttributeValueList()); this.timeSets.put(objId, new TimeList()); }
/** * Initializes the variables in the manager belonging the updates and * samples of the given aggregation. this method will be called after the * creation of an aggregation-definition * * @param identityIdList The list of identity Ids */ protected void createAggregationValuesList(LongList identityIdList) { for (Long identityId : identityIdList) { periodicAggregationValuesLast.put(identityId, new AggregationValue()); periodicAggregationValuesCurrent.put(identityId, new AggregationValue()); isFilterTriggered.put(identityId, false); //initialize timList with the amount of parameterSets //final int parameterSetsCount = getAggregationDefinition(identityId).getParameterSets().size(); latestSampleTimeList.put(identityId, new TimeList()); sampleCountList.put(identityId, new ArrayList<Integer>()); this.populateAggregationValues(identityId); } }
public void addAttributeToDataSet(Long objId, Attribute attribute, Time time) { this.lock(); if (this.dataSets.get(objId) == null) { this.dataSets.put(objId, new AttributeValueList()); this.timeSets.put(objId, new TimeList()); } if (attribute == null) { this.dataSets.get(objId).add(null); this.timeSets.get(objId).add(time); } else { AttributeValue value = new AttributeValue(); value.setValue(attribute); this.dataSets.get(objId).add(value); this.timeSets.get(objId).add(time); } this.unlock(); }
Integer oldestIndex = manager.getDataSets().getOldestIndex(statLinkId, oldestTime); TimeList times = new TimeList(); AttributeValueList values = new AttributeValueList(); TimeList allTimes = manager.getDataSets().getTimeSet(statLinkId);