-
Notifications
You must be signed in to change notification settings - Fork 0
/
FSM.json
executable file
·113 lines (113 loc) · 2.17 KB
/
FSM.json
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"name": "ModifyLinks_MapReduce",
"InitialState": {
"name": "S1",
"MetaType": "Default_State",
"scriptCode": "",
"Constraint": "",
"Constraints": "",
"link": [
{
"name": "Link1",
"MetaType": "Link",
"Dst_node": "MRSwitch1",
"Src_node": "h1",
"Loss": 0,
"Bandwidth_Mbps": 1000,
"Latency_ms": 0
}
]
},
"Intermediate_States": [
{
"name": "S2",
"MetaType": "State",
"scriptCode": "",
"Constraint": "",
"link": [
{
"name": "Link2",
"MetaType": "Link",
"Dst_node": "MRSwitch1",
"Src_node": "h2",
"Loss": 0,
"Bandwidth_Mbps": 100,
"Latency_ms": 0
}
]
},
{
"name": "S3",
"MetaType": "State",
"scriptCode": "",
"Constraint": "",
"link": [
{
"name": "Link3",
"MetaType": "Link",
"Dst_node": "MRSwitch1",
"Src_node": "h1",
"Loss": 20,
"Bandwidth_Mbps": 10,
"Latency_ms": 5
}
]
}
],
"FinalState": {
"name": "S4",
"MetaType": "Final_State",
"scriptCode": "",
"Constraint": "",
"Constraints": "",
"link": [
{
"name": "Link4",
"MetaType": "Link",
"Dst_node": "MRSwitch1",
"Src_node": "h2",
"Loss": 20,
"Bandwidth_Mbps": 0,
"Latency_ms": 15
}
]
},
"Guards": [
{
"name": "Guard3",
"MetaType": "Guard",
"Condition": "y=0",
"src": "S3",
"dst": "S4",
"timer": {
"name": "y",
"MetaType": "Deterministic_Timer",
"Value": 5
}
},
{
"name": "Guard1",
"MetaType": "Guard",
"Condition": "t=0",
"src": "S1",
"dst": "S2",
"timer": {
"name": "t",
"MetaType": "Deterministic_Timer",
"Value": 5
}
},
{
"name": "Guard2",
"MetaType": "Guard",
"Condition": "x=0",
"src": "S2",
"dst": "S3",
"timer": {
"name": "x",
"MetaType": "Deterministic_Timer",
"Value": 5
}
}
]
}