Commit 92a8c946 authored by Vincent Aravantinos's avatar Vincent Aravantinos
Browse files

bugfix

refs 2799
parent 40532130
......@@ -38,7 +38,7 @@ import org.fortiss.tooling.kernel.model.INamedCommentedElement;
* @author aravantinos
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 84D32729B55692A5F4D6DB01340B833A
* @ConQAT.Rating YELLOW Hash: 56ACA41A1E11F7D166A061CFD952C133
*/
public class FMUModelDescriptionTextGenerator {
......@@ -54,12 +54,12 @@ public class FMUModelDescriptionTextGenerator {
buf.append(") on ").append(new Date().toString()).append(" -->\n");
buf.append("<fmiModelDescription fmiVersion=\"2.0\" ");
buf.append("generationTool=\"AutoFOCUS 3 " + version + "\" ");
buf.append("modelName=\"" + fmuPkg.getModelDescription().getName() + "\" ");
buf.append("modelName=\"AutoFOCUS3_" + fmuPkg.getModelDescription().getName() + "\" ");
buf.append(getDescAttribute(fmuPkg.getModelDescription()));
buf.append("guid=\"org.fortiss.af3.fmu." + fmuPkg.getModelDescription().getName() + "\">\n");
buf.append("<CoSimulation ");
buf.append("modelIdentifier=\"AutoFOCUS3_" + fmuPkg.getModelDescription().getName() + "\" ");
buf.append("modelIdentifier=\"" + fmuPkg.getModelDescription().getName() + "\" ");
buf.append("canHandleVariableCommunicationStepSize=\"true\" />\n\n");
buf.append("<TypeDefinitions>\n");
......@@ -91,7 +91,7 @@ public class FMUModelDescriptionTextGenerator {
res += "variability=\"discrete\" ";
res += "valueReference=\"" + i + "\" ";
res += "causality=\"" + (isInput ? "input" : "output") + "\" ";
res += isInput ? "initial=\"exact\" " : "";
res += isInput ? "" : "initial=\"exact\" ";
res += getDescAttribute(var);
res += ">\n";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment