PetriArcRef
An arc of a Petri net drawing.
Used as Input
0
functions accept this type
Used as Output
0
functions return this type(+1 nested)
Type Definition
15 nested items
struct— An arc of a Petri net drawing.
source*:PetriNodeRef— A place or transition of a Petri net drawing, e.g.,
{"kind": "place", "index": 3}.variant 1:struct— A place, by its id.
variant 2:struct— A transition, by its id.
target*:PetriNodeRef— A place or transition of a Petri net drawing, e.g.,
{"kind": "place", "index": 3}.variant 1:struct— A place, by its id.
variant 2:struct— A transition, by its id.
weight*:u32— How many tokens the arc moves.
Example JSON Value
json
{
"source": {
"index": 1,
"kind": "place"
},
"target": {
"index": 1,
"kind": "place"
},
"weight": 1
}