diff --git a/AlgebraicDataflowArchitectureModel/src/algorithms/DataStorageDecision.java b/AlgebraicDataflowArchitectureModel/src/algorithms/DataStorageDecision.java index 1973d6d..120b29a 100644 --- a/AlgebraicDataflowArchitectureModel/src/algorithms/DataStorageDecision.java +++ b/AlgebraicDataflowArchitectureModel/src/algorithms/DataStorageDecision.java @@ -3,9 +3,7 @@ import java.util.HashSet; import models.*; -import models.algebra.Position; -import models.algebra.Term; -import models.algebra.Variable; +import models.algebra.*; import models.dataConstraintModel.ChannelMember; import models.dataConstraintModel.DataConstraintModel; import models.dataFlowModel.*; @@ -32,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()) {