Transition
Transition in a
PetriNetUsed as Input
0
functions accept this type(+5 nested)
Used as Output
0
functions return this type(+2 nested)
Type Definition
10 nested items
struct— Transition in a
PetriNetinputs*:Vec<(PlaceID, u32)>— The places this transition takes tokens from, with the number of tokens
label*:Option<String>— Activity label (
None if this transition is silent)name:Option<String>— External identifier (e.g., the PNML id), not used for identity
Example JSON Value
json
{
"inputs": [
[
1,
1
]
],
"label": "example",
"outputs": [
[
1,
1
]
]
}