diff --git a/AlgebraicDataflowArchitectureModel/src/simulator/ChannelState.java b/AlgebraicDataflowArchitectureModel/src/simulator/ChannelState.java index 1fdc906..9fd4993 100644 --- a/AlgebraicDataflowArchitectureModel/src/simulator/ChannelState.java +++ b/AlgebraicDataflowArchitectureModel/src/simulator/ChannelState.java @@ -75,16 +75,18 @@ public List> getDependedChannelSelectorValues(Map dependingVarToVal) { List> channelValuesList = new ArrayList<>(); if (dependingParamAndValues != null) { - boolean isMatch = true; + boolean doesMatch = true; for (Expression dependingVariable: dependingVarToVal.keySet()) { if (dependingParamAndValues.keySet().contains(dependingVariable)) { if (!dependingParamAndValues.get(dependingVariable).equals(dependingVarToVal.get(dependingVariable))) { - isMatch = false; + doesMatch = false; } } } - if (isMatch) { - return new ArrayList<>(); + if (doesMatch) { + List> chValsList = new ArrayList<>(); + chValsList.add(new ArrayList<>()); + return chValsList; } else { return null; }