Skip to main content
Rust4PM

ObjectCentricPetriNetJson

An object-centric Petri net as a flat list of places, transitions and arcs.

Transitions shared by several object types are listed once. Each arc has the object type of
its place.
Used as Input

5

functions accept this type

Used as Output

1

function return this type(+1 nested)

Type Definition

20 nested items
struct— An object-centric Petri net as a flat list of places, transitions and arcs.
arcs*:Vec<JsonArc>— The arcs, each between a place and a transition.
final_marking*:HashMap<String, u32>— Tokens per place at the end, by place name.
[key: string]:u32
initial_marking*:HashMap<String, u32>— Tokens per place at the start, by place name.
[key: string]:u32
places*:Vec<JsonPlace>— The places, each belonging to one object type.
transitions*:Vec<JsonTransition>— The transitions, each appearing once even when several object types share it.

Example JSON Value

json
{
  "arcs": [
    {
      "source": "example",
      "target": "example"
    }
  ],
  "final_marking": {
    "something": 1
  },
  "initial_marking": {
    "something": 1
  },
  "places": [
    {
      "name": "example",
      "object_type": "order"
    }
  ],
  "transitions": [
    {
      "name": "example"
    }
  ]
}

Functions Accepting This Type(5)

Functions Returning This Type(1)