Skip to content

Commit

Permalink
Fixes #25
Browse files Browse the repository at this point in the history
* Passed null into ExpressionEvaluator, replaced with Petri net
* Tested manually, seems to work
  • Loading branch information
Sarah Tattersall committed Feb 23, 2014
1 parent 4a42d48 commit 7c45bf2
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public TransitionFunctionEditor(TransitionEditorPanel transitionEditorPanel,
init(petriNet);
}

private void init(PetriNet petriNet) {
private void init(final PetriNet petriNet) {

final JTextArea function = new JTextArea();
function.setText(transitionController.getRateExpr());
Expand Down Expand Up @@ -80,8 +80,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
exit();
return;
}
//TODD: DONT PASS NULL
ExprEvaluator parser = new ExprEvaluator(null);
ExprEvaluator parser = new ExprEvaluator(petriNet);
if (parser.parseAndEvalExprForTransition(func) != null) {
_editor.setRate(func);
//transitionController.setRate(func);
Expand Down

0 comments on commit 7c45bf2

Please sign in to comment.