Skip to content

Commit

Permalink
Update generator
Browse files Browse the repository at this point in the history
- Adjust docstrings
- Remove unused attribute 'cluster'
  • Loading branch information
OliverStolzBO committed Apr 15, 2024
1 parent 233ab33 commit 73f0fb8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pfdl_scheduler/petri_net/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,16 @@ class PetriNetGenerator:
Attributes:
path_for_image: The path where the image of the generated Petri Net is saved.
net: The snakes Petri Net instance.
draw_net: A boolean indiciating whether the net should be drawn.
tasks: A dict representing the Tasks of the given Process object.
transition_dict: A dict for mapping the UUIDs of the Transitions to their behavior.
place_dict: A dict for mapping the service uuid to the place name.
task_started_uuid: The uuid of the 'Task started' place.
callbacks: A PetriNetCallbacks instance representing functions called while execution.
generate_test_ids: A boolean indicating if test ids (counting from 0) should be generated.
used_in_extension: A boolean indicating if the Generator is used within the extension.
tree: The Node representing the productionTask and therefore the tree including all program components.
file_name: The filename of the petri net image.
"""

def __init__(
Expand All @@ -99,6 +102,7 @@ def __init__(
used_in_extension: A boolean indicating if the Generator is used within the extension.
generate_test_ids: A boolean indicating if test ids (counting from 0) should be generated.
draw_net: A boolean indicating if the petri net should be drawn.
file_name: The desired filename of the petri net image.
"""

if used_in_extension:
Expand Down

0 comments on commit 73f0fb8

Please sign in to comment.