diff --git a/AlgebraicDataflowArchitectureModel/src/algorithms/CodeGenerator.java b/AlgebraicDataflowArchitectureModel/src/algorithms/CodeGenerator.java index 87f7f8a..f0da1b8 100644 --- a/AlgebraicDataflowArchitectureModel/src/algorithms/CodeGenerator.java +++ b/AlgebraicDataflowArchitectureModel/src/algorithms/CodeGenerator.java @@ -33,12 +33,12 @@ } for (Edge e : rn.getInEdges()) { ResourceDependency re = (ResourceDependency) e; - String rename = ((ResourceNode) re.getDestination()).getIdentifierTemplate().getResourceName() + String rename = ((ResourceNode) re.getSource()).getIdentifierTemplate().getResourceName() .substring(0, 1).toUpperCase() - + ((ResourceNode) re.getDestination()).getIdentifierTemplate().getResourceName().substring(1); + + ((ResourceNode) re.getSource()).getIdentifierTemplate().getResourceName().substring(1); if (((PushPullAttribute) re.getAttribute()).getOptions().get(0) != PushPullValue.PUSH) type.addField(new FieldDeclaration(new Type(rename, rename), - ((ResourceNode) re.getDestination()).getIdentifierTemplate().getResourceName())); + ((ResourceNode) re.getSource()).getIdentifierTemplate().getResourceName())); } if (((StoreAttribute) rn.getAttribute()).isStored()) type.addField(new FieldDeclaration(DataConstraintModel.typeInt,