summaryrefslogtreecommitdiff
path: root/tools/verification/dot2/automata.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/verification/dot2/automata.py')
-rw-r--r--tools/verification/dot2/automata.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/verification/dot2/automata.py b/tools/verification/dot2/automata.py
index bdeb98baa8b0..f6921cf3c914 100644
--- a/tools/verification/dot2/automata.py
+++ b/tools/verification/dot2/automata.py
@@ -19,9 +19,9 @@ class Automata:
invalid_state_str = "INVALID_STATE"
- def __init__(self, file_path):
+ def __init__(self, file_path, model_name=None):
self.__dot_path = file_path
- self.name = self.__get_model_name()
+ self.name = model_name or self.__get_model_name()
self.__dot_lines = self.__open_dot()
self.states, self.initial_state, self.final_states = self.__get_state_variables()
self.events = self.__get_event_variables()