Skip to content

Commit

Permalink
Fixed LPN generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Curtis Madsen committed May 28, 2018
1 parent 72f607a commit 87ccb76
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,10 @@ public static LPN convertToLHPN(ArrayList<String> specs, ArrayList<Object[]> con
}
if (!rate.equals("") || !reactionProductions.equals("")) {
if (rate.equals("")) {
rate = "(" + reactionProductions + ")";
rate = "(" + np + "*(" + reactionProductions + "))";
}
else if (!reactionProductions.equals("")) {
rate = "(" + rate + "+" + reactionProductions + ")";
rate = "(" + rate + "+" + np + "*(" + reactionProductions + "))";
}
LHPN.addTransition(specs.get(i) + "_trans" + transNum);
LHPN.addMovement(previousPlaceName, specs.get(i) + "_trans" + transNum);
Expand Down

0 comments on commit 87ccb76

Please sign in to comment.