diff --git a/AlgebraicDataflowArchitectureModel/src/algorithm/UpdateConflictCheck.java b/AlgebraicDataflowArchitectureModel/src/algorithm/UpdateConflictCheck.java index 014b2a4..0961d98 100644 --- a/AlgebraicDataflowArchitectureModel/src/algorithm/UpdateConflictCheck.java +++ b/AlgebraicDataflowArchitectureModel/src/algorithm/UpdateConflictCheck.java @@ -11,13 +11,17 @@ } boolean check() { - boolean result = false; + boolean result = true; for (Node node : graph.getResourceDependencyGraph().getNodes()) { - if (node.getInEdges().size() > 1) - result = true; + if (node.getIndegree() > 1) + result = false; } for (Node node : graph.getResourceDependencyGraph().getNodes()) { - + if (node.getIndegree() == 0) { + for (Node out : node.getSuccessors()) { + + } + } } return result; }