-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExample5_MarkedGraph.tla
38 lines (29 loc) · 1.23 KB
/
Example5_MarkedGraph.tla
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
------------------------- MODULE Example5_MarkedGraph -----------------------------
\**********************************************************************************
\* A marked graph.
\*
\* `. ------
\* source -> | t1 | --
\* ^ ------ |
\* ------------------
\* .'
\**********************************************************************************
Places == {"source"} (* Define the net. *)
Transitions == {"t1"}
Arcs == [
source |-> {"t1"},
t1 |-> {"source"}
]
ArcWeights == <<>> \* Unspecified arc weights default to 1.
InitialMarking == [source |-> 1]
VARIABLE Marking
PN == INSTANCE PetriNet (* Instantiate it within a namespace. *)
Spec == PN!Spec (* Make Spec and Invariants available for the config file. *)
Invariants == PN!Invariants
-----------------------------------------------------------------------------------
\**********************************************************************************
\* Properties
\**********************************************************************************
IsMarkedGraph == PN!IsMarkedGraph
FinalMarking == PN!FinalMarking([source |-> 1])
===================================================================================