checkVariableNames(ob);
try {
model.startUpdating();
for (String name : serieses.keySet()) {
DefaultXYSeries s = serieses.get(name);
Pair<? extends Number, ? extends Number> data = ob.getCurrentData(name);
Pair<? extends Number, ? extends Number> min = ob.getMin();
Pair<? extends Number, ? extends Number> max = ob.getMax();
if (min != null) {
s.setMin(0, min.getFirstValue());
s.setMin(1, min.getSecondValue());
}
if (max != null) {
s.setMax(0, max.getFirstValue());
s.setMax(1, max.getSecondValue());
}
if (data != null) {
s.addValuePair(data.getFirstValue(), data.getSecondValue());
}
// now check for sliding window flag
if (slidingWindow) {
// cut old values
s.cutToValueCount(MAX_VALUES);
}
}
} catch (Exception e) {
SimSystem.report(e);
} finally {