/** * @param node * @return */ private boolean updateNodesRecursive(NodeModel node) { boolean changes = false; for (NodeModel child : node.getChildren()) { changes = changes | updateNodesRecursive(child); } changes = changes | ReferencesController.getController().getSplmmAttributes().translate(node); return changes; }
private List<NodeModel> getMonitorNodes(NodeModel node) { List<NodeModel> result = new ArrayList<NodeModel>(); if (MonitoringUtils.isMonitoringNode(node)) { result.add(node); } for (NodeModel child : node.getChildren()) { result.addAll(getMonitorNodes(child)); } return result; }