File tree 3 files changed +24
-4
lines changed
3 files changed +24
-4
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+
3
+ A Petri net is a directed bipartite graph,
4
+ where nodes are partitioned to two kinds -- places and transitions.
5
+
6
+ We implement a net by adjacency list.
7
+
8
+ */
9
+
10
+ import { Value } from "../value"
11
+
1
12
export type Net = {
2
13
placeEntries : Map < string , PlaceEntry >
3
14
transitionEntries : Map < string , TransitionEntry >
4
15
}
5
16
17
+ export type Parameter = {
18
+ name : string
19
+ t : Value
20
+ }
21
+
6
22
export type TransitionEntry = {
7
23
id : string
8
24
name : string
25
+ inputParameters : Array < Parameter >
26
+ outputParameters : Array < Parameter >
9
27
inputs : Array < PlaceEntry >
10
28
outputs : Array < PlaceEntry >
11
29
}
12
30
13
31
export type PlaceEntry = {
14
32
id : string
15
33
name : string
16
- }
17
-
18
- export type ChoiceEntry = {
19
- //
34
+ inputs : Array < TransitionEntry >
35
+ outputs : Array < TransitionEntry >
20
36
}
Original file line number Diff line number Diff line change
1
+ export type Value = {
2
+ //
3
+ }
Original file line number Diff line number Diff line change
1
+ export * from "./Value"
You can’t perform that action at this time.
0 commit comments