Skip to main content
Rust4PM

Transition

Transition in a PetriNet
Used 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 PetriNet
inputs*: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
outputs*:Vec<(PlaceID, u32)>— The places this transition puts tokens into, with the number of tokens

Example JSON Value

json
{
  "inputs": [
    [
      1,
      1
    ]
  ],
  "label": "example",
  "outputs": [
    [
      1,
      1
    ]
  ]
}