newNode.addPhysicalQuantity(quantity);
node.addChild(newNode);
}
catch(IOException | InvalidRangeException e)
{
throw new GeppettoExecutionException(e);
}
}
}
}
}
}
_currentRecordingIndex++;
}
}
else
{
for(RecordingModel recording : _recordings)
{
UpdateRecordingStateTreeVisitor updateStateTreeVisitor = new UpdateRecordingStateTreeVisitor(recording, watchTree.getInstancePath(), _currentRecordingIndex++);
watchTree.apply(updateStateTreeVisitor);
if(updateStateTreeVisitor.getError() != null)
{
throw new GeppettoExecutionException(updateStateTreeVisitor.getError());
}
}
}
}
}