Skip to content
Snippets Groups Projects
Commit c924d10a authored by Sebastian Ebert's avatar Sebastian Ebert
Browse files

fixed printing bug

parent f842ca17
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,10 @@ aspect SignalExpressions { ...@@ -9,7 +9,10 @@ aspect SignalExpressions {
eq Root.printExp() { eq Root.printExp() {
String result = ""; String result = "";
result += getExp().printExp();
if(getExp() != null){
result+=getExp().printExp();
}
return result; return result;
} }
......
...@@ -19,13 +19,13 @@ public class Main { ...@@ -19,13 +19,13 @@ public class Main {
String inputPath = (args.length > 0) ? args[0] : null; String inputPath = (args.length > 0) ? args[0] : null;
// if(inputPath == null){ if(inputPath == null){
// logger.error("No model found on given input path."); logger.error("No model found on given input path.");
// return; return;
// } }
List<PetriNet> petriNets = PnmlParser.parsePnml("src/main/nets/inputSignalNet.pnml"); // List<PetriNet> petriNets = PnmlParser.parsePnml("src/main/nets/jointTestNet1.pnml");
// List<PetriNet> petriNets = PnmlParser.parsePnml(inputPath); List<PetriNet> petriNets = PnmlParser.parsePnml(inputPath);
List<List<PetriNet>> disconnectedPetriNets = new ArrayList<>(); List<List<PetriNet>> disconnectedPetriNets = new ArrayList<>();
// petriNets.forEach(pn -> disconnectedPetriNets.add(GlobalToLocalNetsPostProcessor.disconnectNets(pn))); // petriNets.forEach(pn -> disconnectedPetriNets.add(GlobalToLocalNetsPostProcessor.disconnectNets(pn)));
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
<transition id="t1"> <transition id="t1">
<toolspecific tool="de.tudresden.inf.st.pnml.distributedPN" version="0.1"> <toolspecific tool="de.tudresden.inf.st.pnml.distributedPN" version="0.1">
<!-- <location>channel</location> <location>channel</location>
<subnet>channel</subnet>--> <subnet>channel</subnet>-->
<location>node-1</location> <location>node-1</location>
<subnet>subnet-1</subnet> <subnet>subnet-1</subnet>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment