Petri net
Place ¶
Bases: Annotated
A place in a Petri net.
Attributes:
| Name | Type | Description |
|---|---|---|
id | str | Unique identifier of the place. |
object_type | str | Type of the object associated with this place. |
place_type | Literal['sink', 'source', None] | None | Either "sink", "source", or None. |
Source code in src/ocelescope/src/ocelescope/resource/default/petri_net.py
Transition ¶
Bases: Annotated
A transition in a Petri net.
Attributes:
| Name | Type | Description |
|---|---|---|
id | str | Unique identifier of the transition. |
label | Optional[str] | Optional label describing the transition. |
Source code in src/ocelescope/src/ocelescope/resource/default/petri_net.py
Arc ¶
Bases: Annotated
An arc connecting places and transitions in a Petri net.
Attributes:
| Name | Type | Description |
|---|---|---|
source | str | ID of the source node (place or transition). |
target | str | ID of the target node (place or transition). |
variable | str | Whether the arc represents a variable connection. |
Source code in src/ocelescope/src/ocelescope/resource/default/petri_net.py
PetriNet ¶
Bases: Resource
An object-centric Petri net representation.
Attributes:
| Name | Type | Description |
|---|---|---|
places | list[Place] | List of places in the Petri net. |
transitions | list[Transition] | List of transitions in the Petri net. |
arcs | list[Arc] | List of arcs connecting places and transitions. |