AnnotatedOcpnDrawing
What
options with a badge per non-flow cell, and dashed borders for the added places.
crate::visualization::ocpn draws an AnnotatedOcpn from: the net, buildoptions 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, buildocpn*:ObjectCentricPetriNetJson— An object-centric Petri net as a flat list of places, transitions and arcs.
final_marking*:HashMap<String, u32>— Tokens per place at the end, by place name.
initial_marking*:HashMap<String, u32>— Tokens per place at the start, by place name.
transitions*:Vec<JsonTransition>— The transitions, each appearing once even when several object types share it.
badges:HashMap<String, Vec<TypeBadge>>— Object types drawn as a row of badges in the transition of an activity, by activity,
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": {}
}