summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2019-07-22 08:47:23 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2019-07-22 08:47:23 +0200
commit2db4b6967b367982515fa6b731abbd549cc5720e (patch)
treed3f088d03a483db3fe21b8ccfc7398cdf201525c
parent9372ca24757ebd5dbd7ba5ae8b49472f2c2ce521 (diff)
automata: Add set_param support in YAML files
-rwxr-xr-xlib/automata.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/automata.py b/lib/automata.py
index a6b37af..8a0357a 100755
--- a/lib/automata.py
+++ b/lib/automata.py
@@ -405,6 +405,8 @@ class PTA:
arg_to_param_map[argument['parameter']] = i
if 'argument_combination' in transition:
kwargs['argument_combination'] = transition['argument_combination']
+ if 'set_param' in transition:
+ kwargs['set_param'] = transition['set_param']
if 'is_interrupt' in transition:
kwargs['is_interrupt'] = transition['is_interrupt']
if not 'src' in transition: