Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VIGNET Pierre
cadbiom
Commits
ed3fd1e9
Commit
ed3fd1e9
authored
Oct 30, 2018
by
VIGNET Pierre
Browse files
Add missing and useful doc for parse_condition
parent
dca40d7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
command_line/cadbiom_cmd/tools/models.py
View file @
ed3fd1e9
...
...
@@ -293,8 +293,19 @@ def parse_event(event):
def
parse_condition
(
condition
,
all_nodes
,
inhibitors_nodes
):
"""Return valid paths according the given logical formula and nodes.
"""Return valid paths according the given logical formula and nodes;
and set inhibitors_nodes
.. note:: inhibitors_nodes is modified(set) by this function.
:param condition: Condition string of a transition.
:param all_nodes: Nodes involved in transitions + frontier places.
:param inhibitors_nodes: Inactivated nodes in paths of conditions.
:type condition: <str>
:type inhibitors_nodes: <set>
:type all_nodes: <set>
:return: Set of paths. Each path is a tuple of nodes.
:rtype: <set>
"""
LOGGER
.
debug
(
"CONDITION: %s"
,
condition
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment