Skip to main content
Rust4PM

AnnotatedOcpnDrawing

What crate::visualization::ocpn draws an AnnotatedOcpn from: the net, build
options with a badge per non-flow cell, and dashed borders for the added places.
Used as Input

0

functions accept this type

Used as Output

1

function return this type

Type Definition

237 nested items
AnnotatedOcpnDrawing— What crate::visualization::ocpn draws an AnnotatedOcpn from: the net, build
ocpn*:ObjectCentricPetriNetJson— An object-centric Petri net as a flat list of places, transitions and arcs.
options*:OcpnBuildOptions— How an object-centric Petri net is turned into a Graph.
overrides*:StyleOverrides— Per-element style changes, keyed by the index of the node or edge in the model's graph, which
edges:Object— By edge index.
nodes:Object— By node index.

Example JSON Value

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

Functions Returning This Type(1)