-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmodel.edn
66 lines (64 loc) · 1.76 KB
/
model.edn
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
;;;;
;;;; Example model for a state view
;;;;
#{{:el :state-machine
:id :state/state-machine1
:name "Simple State Machine"
:ct [;;;
;;; States
;;;
{:el :start-state
:id :state/start}
{:el :state
:id :state/state1
:name "State 1"}
{:el :state
:id :state/state2
:name "State 2"}
{:el :state
:id :state/state3
:name "Compound State 3"
:ct #{{:el :start-state
:id :state/compound-start}
{:el :state
:id :state/state3-1
:name "State 3.1"}
{:el :state
:id :state/state3-2
:name "State 3.2"}
{:el :end-state
:id :state/compound-end}}}
{:el :end-state
:id :state/end}
;;;
;;; Transitions
;;;
{:el :transition
:id :state/start-to-state1
:from :state/start
:to :state/state1}
{:el :transition
:id :state/state1-to-state2
:from :state/state1
:to :state/state2
:name "transits from 1 to 2"}
{:el :transition
:id :state/state2-to-state3
:from :state/state2
:to :state/state3}
{:el :transition
:id :state/compound-start-to-state3-1
:from :state/compound-start
:to :state/state3-1}
{:el :transition
:id :state/state3-1-to-state3-2
:from :state/state3-1
:to :state/state3-2}
{:el :transition
:id :state/state3-2-to-compound-end
:from :state/state3-2
:to :state/compound-end}
{:el :transition
:id :state/state3-to-end
:from :state/state3
:to :state/end}]}}