diff --git a/AlgebraicDataflowArchitectureModel/src/algorithms/JavaCodeGenerator.java b/AlgebraicDataflowArchitectureModel/src/algorithms/JavaCodeGenerator.java index 4941a19..d3b7f4f 100644 --- a/AlgebraicDataflowArchitectureModel/src/algorithms/JavaCodeGenerator.java +++ b/AlgebraicDataflowArchitectureModel/src/algorithms/JavaCodeGenerator.java @@ -252,10 +252,8 @@ codes.add(cu); } - // Declare the Pair class. boolean isCreatedPair = false; - for(ResourceNode rn : resources) { if(isCreatedPair) continue; if(model.getType("Pair").isAncestorOf(rn.getIdentifierTemplate().getResourceStateType())) { @@ -280,10 +278,6 @@ } } - - - - // Declare getter methods in the main type. for (Node n : graph.getNodes()) { ResourceNode rn = (ResourceNode) n; @@ -293,7 +287,7 @@ rn.getIdentifierTemplate().getResourceStateType()); getter.setBody(new Block()); getter.getBody().addStatement( - "return " + rn.getIdentifierTemplate().getResourceName() + "." + getter.getName() + "();"); + "return " + rn.getIdentifierTemplate().getResourceName() + ".getValue();"); mainType.addMethod(getter); }