diff --git a/AlgebraicDataflowArchitectureModel/src/simulator/Resource.java b/AlgebraicDataflowArchitectureModel/src/simulator/Resource.java index c221ec0..83b5eb6 100644 --- a/AlgebraicDataflowArchitectureModel/src/simulator/Resource.java +++ b/AlgebraicDataflowArchitectureModel/src/simulator/Resource.java @@ -25,14 +25,12 @@ || DataConstraintModel.typeList.isAncestorOf(resType) || DataConstraintModel.typeMap.isAncestorOf(resType) || DataConstraintModel.typeJson.isAncestorOf(resType)) { - if (resourceHierarchy.getChildren().size() <= 1) { - if (DataConstraintModel.typeList.isAncestorOf(resType)) { - // List resource - state = new ListResourceState(); - } else if (DataConstraintModel.typeMap.isAncestorOf(resType)) { - // Map resource - state = new MapResourceState(); - } + if (DataConstraintModel.typeList.isAncestorOf(resType)) { + // List resource + state = new ListResourceState(); + } else if (DataConstraintModel.typeMap.isAncestorOf(resType)) { + // Map resource + state = new MapResourceState(); } else { // Json resource state = new JsonResourceState();