diff --git a/AlgebraicDataflowArchitectureModel/src/algorithms/DataStorageDecision.java b/AlgebraicDataflowArchitectureModel/src/algorithms/DataStorageDecision.java index a1ea1cf..120b29a 100644 --- a/AlgebraicDataflowArchitectureModel/src/algorithms/DataStorageDecision.java +++ b/AlgebraicDataflowArchitectureModel/src/algorithms/DataStorageDecision.java @@ -30,8 +30,14 @@ flag = true; } } -// if (resource.getInEdges().size() == 0) -// flag = true; + boolean flag2 = false; + for (Edge e : resource.getOutEdges()) { + if (((PushPullAttribute) e.getAttribute()).getOptions().get(0) != PushPullValue.PUSH) { + flag2 = true; + } + } + if (resource.getInEdges().size() == 0 && flag2) + flag = true; ((StoreAttribute) resource.getAttribute()).setStored(flag); if (resource.getIdentifierTemplate().getResourceStateType() == null) { for (Edge e : resource.getInEdges()) {