Commit 93628118 authored by Ludovic Apvrille's avatar Ludovic Apvrille

Correcting bug on TMLChoice in NetworkInterfaceOut

parent e71afe60
......@@ -172,7 +172,7 @@ public class TaskNetworkInterfaceOUT extends TMLTask {
TMLSendEvent sendEvtFeedback = new TMLSendEvent("sendEvtFeedback_VC" + i, referenceObject);
sendEvtFeedback.setEvent(outputFeedbackEvents.get(i));
addElement(testingVC, sendEvtFeedback);
testingEOP.addGuard("vc == " + i);
testingVC.addGuard("vc == " + i);
TMLStopState stopVC = new TMLStopState("stopVC" + i, referenceObject);
addElement(sendEvtFeedback, stopVC);
......
......@@ -3715,10 +3715,19 @@ public class GTURTLEModeling {
return str;
}
private String header() {
String head = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<TURTLEGMODELING version=\"" + DefaultText.getVersion() + "\"";
//head += ModelParameter.toXML();
head += ">\n\n";
return head;
}
public String makeOneDiagramXMLFromGraphicalModel(TURTLEPanel tp, int indexOfDiagram) {
StringBuffer sb = new StringBuffer();
//sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<TURTLEGMODELING>\n\n");
sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<TURTLEGMODELING version=\"" + DefaultText.getVersion() + "\">\n\n");
sb.append(header());
StringBuffer s;
String str;
......@@ -3745,7 +3754,7 @@ public class GTURTLEModeling {
public String makeXMLFromTurtleModeling(int index, String extensionToName) {
StringBuffer sb = new StringBuffer();
//sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<TURTLEGMODELING>\n\n");
sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<TURTLEGMODELING version=\"" + DefaultText.getVersion() + "\">\n\n");
sb.append(header());
StringBuffer s;
String str;
......@@ -5439,7 +5448,7 @@ public class GTURTLEModeling {
return null;
}
sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<TURTLEGMODELING version=\"" + DefaultText.getVersion() + "\">\n\n");
sb.append(header());
if (index2 > -1) {
sb.append("<Modeling type=\"Analysis\" nameTab=\"Analysis\" >\n");
......
Markdown is supported
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