Skip to main content
summaryrefslogtreecommitdiffstats
blob: 81fca1eaf44c29d2a023ea04b70c4c8dd8013559 (plain) (blame)
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
67
68
69
70
71
72
73
RoomModel TemplateModel {

	ActorClass TestActor extends Base {
		Behavior {
			StateMachine {
				State state3
				RefinedState state1 {
					entry {
						"//refined"
					}
				}
				Transition tr2: state1 -> state3 {
					triggers {
						<in1: p0>
					}
				}
				RefinedTransition tr0 {
					action {
						"//refined"
					}
				}
				State state4
				State state5
				Transition tr3: state3 -> state4 {
					triggers {
						<in1: p0>
					}
				}
				Transition tr4: state3 -> state5 {
					triggers {
						<in2: p0>
					}
				}
			}
		}
	}

	ActorClass Base {
		Interface {
			Port p0: PC
		}
		Structure {
			external Port p0
		}
		Behavior {
			StateMachine {
				State state0
				State state1
				State state2
				Transition init0: initial -> state0
				Transition tr0: state0 -> state1 {
					triggers {
						<in1: p0>
					}
				}
				Transition tr1: state1 -> state2 {
					triggers {
						<in1: p0>
					}
				}
			}
		}
	}

	ProtocolClass PC {
		incoming {
			Message in1()
			Message in2()
		}
		outgoing { }
	}

}

Back to the top