rsmp_schema 0.4.5 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rspec.yaml +1 -1
  3. data/.tool-versions +1 -0
  4. data/Gemfile.lock +23 -29
  5. data/lib/rsmp_schema/schema.rb +6 -3
  6. data/lib/rsmp_schema/version.rb +1 -1
  7. data/rsmp_schema.gemspec +5 -6
  8. data/schemas/core/3.1.5/status_subscribe.json +1 -1
  9. data/schemas/core/3.2/status_response.json +1 -1
  10. data/schemas/core/3.2.1/core.json +39 -0
  11. data/schemas/core/3.2.1/rsmp.json +133 -0
  12. data/schemas/tlc/1.2/alarms/A0001.json +3 -0
  13. data/schemas/tlc/1.2/alarms/A0002.json +3 -0
  14. data/schemas/tlc/1.2/alarms/A0003.json +3 -0
  15. data/schemas/tlc/1.2/alarms/A0004.json +3 -0
  16. data/schemas/tlc/1.2/alarms/A0005.json +3 -0
  17. data/schemas/tlc/1.2/alarms/A0006.json +3 -0
  18. data/schemas/tlc/1.2/alarms/A0007.json +59 -0
  19. data/schemas/tlc/1.2/alarms/A0008.json +61 -0
  20. data/schemas/tlc/1.2/alarms/A0009.json +3 -0
  21. data/schemas/tlc/1.2/alarms/A0010.json +3 -0
  22. data/schemas/tlc/1.2/alarms/A0101.json +3 -0
  23. data/schemas/tlc/1.2/alarms/A0201.json +60 -0
  24. data/schemas/tlc/1.2/alarms/A0202.json +60 -0
  25. data/schemas/tlc/1.2/alarms/A0301.json +132 -0
  26. data/schemas/tlc/1.2/alarms/A0302.json +158 -0
  27. data/schemas/tlc/1.2/alarms/A0303.json +132 -0
  28. data/schemas/tlc/1.2/alarms/A0304.json +158 -0
  29. data/schemas/tlc/1.2/alarms/alarms.json +286 -0
  30. data/schemas/tlc/1.2/commands/M0001.json +138 -0
  31. data/schemas/tlc/1.2/commands/M0002.json +112 -0
  32. data/schemas/tlc/1.2/commands/M0003.json +112 -0
  33. data/schemas/tlc/1.2/commands/M0004.json +85 -0
  34. data/schemas/tlc/1.2/commands/M0005.json +112 -0
  35. data/schemas/tlc/1.2/commands/M0006.json +112 -0
  36. data/schemas/tlc/1.2/commands/M0007.json +85 -0
  37. data/schemas/tlc/1.2/commands/M0008.json +112 -0
  38. data/schemas/tlc/1.2/commands/M0010.json +85 -0
  39. data/schemas/tlc/1.2/commands/M0011.json +85 -0
  40. data/schemas/tlc/1.2/commands/M0012.json +79 -0
  41. data/schemas/tlc/1.2/commands/M0013.json +79 -0
  42. data/schemas/tlc/1.2/commands/M0014.json +106 -0
  43. data/schemas/tlc/1.2/commands/M0015.json +112 -0
  44. data/schemas/tlc/1.2/commands/M0016.json +79 -0
  45. data/schemas/tlc/1.2/commands/M0017.json +79 -0
  46. data/schemas/tlc/1.2/commands/M0018.json +112 -0
  47. data/schemas/tlc/1.2/commands/M0019.json +139 -0
  48. data/schemas/tlc/1.2/commands/M0020.json +139 -0
  49. data/schemas/tlc/1.2/commands/M0021.json +79 -0
  50. data/schemas/tlc/1.2/commands/M0022.json +355 -0
  51. data/schemas/tlc/1.2/commands/M0023.json +85 -0
  52. data/schemas/tlc/1.2/commands/M0103.json +103 -0
  53. data/schemas/tlc/1.2/commands/M0104.json +220 -0
  54. data/schemas/tlc/1.2/commands/command_requests.json +7 -0
  55. data/schemas/tlc/1.2/commands/command_responses.json +7 -0
  56. data/schemas/tlc/1.2/commands/commands.json +398 -0
  57. data/schemas/tlc/1.2/rsmp.json +73 -0
  58. data/schemas/tlc/1.2/statuses/S0001.json +137 -0
  59. data/schemas/tlc/1.2/statuses/S0002.json +55 -0
  60. data/schemas/tlc/1.2/statuses/S0003.json +55 -0
  61. data/schemas/tlc/1.2/statuses/S0004.json +55 -0
  62. data/schemas/tlc/1.2/statuses/S0005.json +112 -0
  63. data/schemas/tlc/1.2/statuses/S0006.json +88 -0
  64. data/schemas/tlc/1.2/statuses/S0007.json +116 -0
  65. data/schemas/tlc/1.2/statuses/S0008.json +116 -0
  66. data/schemas/tlc/1.2/statuses/S0009.json +116 -0
  67. data/schemas/tlc/1.2/statuses/S0010.json +116 -0
  68. data/schemas/tlc/1.2/statuses/S0011.json +116 -0
  69. data/schemas/tlc/1.2/statuses/S0012.json +116 -0
  70. data/schemas/tlc/1.2/statuses/S0013.json +88 -0
  71. data/schemas/tlc/1.2/statuses/S0014.json +90 -0
  72. data/schemas/tlc/1.2/statuses/S0015.json +90 -0
  73. data/schemas/tlc/1.2/statuses/S0016.json +61 -0
  74. data/schemas/tlc/1.2/statuses/S0017.json +61 -0
  75. data/schemas/tlc/1.2/statuses/S0018.json +61 -0
  76. data/schemas/tlc/1.2/statuses/S0019.json +61 -0
  77. data/schemas/tlc/1.2/statuses/S0020.json +88 -0
  78. data/schemas/tlc/1.2/statuses/S0021.json +56 -0
  79. data/schemas/tlc/1.2/statuses/S0022.json +55 -0
  80. data/schemas/tlc/1.2/statuses/S0023.json +56 -0
  81. data/schemas/tlc/1.2/statuses/S0024.json +56 -0
  82. data/schemas/tlc/1.2/statuses/S0025.json +250 -0
  83. data/schemas/tlc/1.2/statuses/S0026.json +55 -0
  84. data/schemas/tlc/1.2/statuses/S0027.json +55 -0
  85. data/schemas/tlc/1.2/statuses/S0028.json +55 -0
  86. data/schemas/tlc/1.2/statuses/S0029.json +55 -0
  87. data/schemas/tlc/1.2/statuses/S0030.json +55 -0
  88. data/schemas/tlc/1.2/statuses/S0031.json +55 -0
  89. data/schemas/tlc/1.2/statuses/S0032.json +116 -0
  90. data/schemas/tlc/1.2/statuses/S0033.json +114 -0
  91. data/schemas/tlc/1.2/statuses/S0034.json +61 -0
  92. data/schemas/tlc/1.2/statuses/S0035.json +74 -0
  93. data/schemas/tlc/1.2/statuses/S0091.json +65 -0
  94. data/schemas/tlc/1.2/statuses/S0092.json +65 -0
  95. data/schemas/tlc/1.2/statuses/S0095.json +55 -0
  96. data/schemas/tlc/1.2/statuses/S0096.json +196 -0
  97. data/schemas/tlc/1.2/statuses/S0097.json +82 -0
  98. data/schemas/tlc/1.2/statuses/S0098.json +103 -0
  99. data/schemas/tlc/1.2/statuses/S0201.json +88 -0
  100. data/schemas/tlc/1.2/statuses/S0202.json +88 -0
  101. data/schemas/tlc/1.2/statuses/S0203.json +88 -0
  102. data/schemas/tlc/1.2/statuses/S0204.json +304 -0
  103. data/schemas/tlc/1.2/statuses/S0205.json +88 -0
  104. data/schemas/tlc/1.2/statuses/S0206.json +88 -0
  105. data/schemas/tlc/1.2/statuses/S0207.json +88 -0
  106. data/schemas/tlc/1.2/statuses/S0208.json +304 -0
  107. data/schemas/tlc/1.2/statuses/statuses.json +786 -0
  108. data/schemas/tlc/1.2/sxl.yaml +2082 -0
  109. metadata +113 -27
@@ -0,0 +1,139 @@
1
+ {
2
+ "description" : "Force input.\nForce a given input (1-255) of the controllers general purpose I/O to either True or False. Can be used for all types of input where the traffic light controller must react to external control.\nCan be used for bus priority, coordination between traffic controllers, external control systems, and much more.\nRequires security code 2.",
3
+ "allOf" : [
4
+ {
5
+ "properties" : {
6
+ "n" : {
7
+ "enum" : [
8
+ "input",
9
+ "inputValue",
10
+ "securityCode",
11
+ "status"
12
+ ]
13
+ },
14
+ "cO" : {
15
+ "const" : "setInput"
16
+ }
17
+ }
18
+ },
19
+ {
20
+ "if" : {
21
+ "required" : [
22
+ "q"
23
+ ],
24
+ "properties" : {
25
+ "q" : {
26
+ "const" : "undefined"
27
+ }
28
+ }
29
+ },
30
+ "then" : {
31
+ "s" : {
32
+ "type" : "null"
33
+ }
34
+ },
35
+ "else" : {
36
+ "allOf" : [
37
+ {
38
+ "if" : {
39
+ "required" : [
40
+ "n"
41
+ ],
42
+ "properties" : {
43
+ "n" : {
44
+ "const" : "status"
45
+ }
46
+ }
47
+ },
48
+ "then" : {
49
+ "properties" : {
50
+ "v" : {
51
+ "allOf" : [
52
+ {
53
+ "description" : "False: Release input\nTrue: Force input"
54
+ },
55
+ {
56
+ "$ref" : "../../../core/3.1.2/definitions.json#/boolean"
57
+ }
58
+ ]
59
+ }
60
+ }
61
+ }
62
+ },
63
+ {
64
+ "if" : {
65
+ "required" : [
66
+ "n"
67
+ ],
68
+ "properties" : {
69
+ "n" : {
70
+ "const" : "securityCode"
71
+ }
72
+ }
73
+ },
74
+ "then" : {
75
+ "properties" : {
76
+ "v" : {
77
+ "description" : "Security code 2",
78
+ "type" : "string"
79
+ }
80
+ }
81
+ }
82
+ },
83
+ {
84
+ "if" : {
85
+ "required" : [
86
+ "n"
87
+ ],
88
+ "properties" : {
89
+ "n" : {
90
+ "const" : "input"
91
+ }
92
+ }
93
+ },
94
+ "then" : {
95
+ "properties" : {
96
+ "v" : {
97
+ "allOf" : [
98
+ {
99
+ "description" : "Number of Input"
100
+ },
101
+ {
102
+ "$ref" : "../../../core/3.1.2/definitions.json#/integer"
103
+ }
104
+ ]
105
+ }
106
+ }
107
+ }
108
+ },
109
+ {
110
+ "if" : {
111
+ "required" : [
112
+ "n"
113
+ ],
114
+ "properties" : {
115
+ "n" : {
116
+ "const" : "inputValue"
117
+ }
118
+ }
119
+ },
120
+ "then" : {
121
+ "properties" : {
122
+ "v" : {
123
+ "allOf" : [
124
+ {
125
+ "description" : "False: input forced to False\nTrue: input forced to True"
126
+ },
127
+ {
128
+ "$ref" : "../../../core/3.1.2/definitions.json#/boolean"
129
+ }
130
+ ]
131
+ }
132
+ }
133
+ }
134
+ }
135
+ ]
136
+ }
137
+ }
138
+ ]
139
+ }
@@ -0,0 +1,139 @@
1
+ {
2
+ "description" : "Force output.\nForce a given output (1-255) of the controllers general purpose I/O to either True of False. Can be used for all types of output where the traffic light controller needs to control other equipment.\nCan be used for bus priority, coordination between traffic controllers, external control systems, and much more.\nRequires security code 2.",
3
+ "allOf" : [
4
+ {
5
+ "properties" : {
6
+ "n" : {
7
+ "enum" : [
8
+ "output",
9
+ "outputValue",
10
+ "securityCode",
11
+ "status"
12
+ ]
13
+ },
14
+ "cO" : {
15
+ "const" : "setOutput"
16
+ }
17
+ }
18
+ },
19
+ {
20
+ "if" : {
21
+ "required" : [
22
+ "q"
23
+ ],
24
+ "properties" : {
25
+ "q" : {
26
+ "const" : "undefined"
27
+ }
28
+ }
29
+ },
30
+ "then" : {
31
+ "s" : {
32
+ "type" : "null"
33
+ }
34
+ },
35
+ "else" : {
36
+ "allOf" : [
37
+ {
38
+ "if" : {
39
+ "required" : [
40
+ "n"
41
+ ],
42
+ "properties" : {
43
+ "n" : {
44
+ "const" : "status"
45
+ }
46
+ }
47
+ },
48
+ "then" : {
49
+ "properties" : {
50
+ "v" : {
51
+ "allOf" : [
52
+ {
53
+ "description" : "False: Force output\nTrue: Release output"
54
+ },
55
+ {
56
+ "$ref" : "../../../core/3.1.2/definitions.json#/boolean"
57
+ }
58
+ ]
59
+ }
60
+ }
61
+ }
62
+ },
63
+ {
64
+ "if" : {
65
+ "required" : [
66
+ "n"
67
+ ],
68
+ "properties" : {
69
+ "n" : {
70
+ "const" : "securityCode"
71
+ }
72
+ }
73
+ },
74
+ "then" : {
75
+ "properties" : {
76
+ "v" : {
77
+ "description" : "Security code 2",
78
+ "type" : "string"
79
+ }
80
+ }
81
+ }
82
+ },
83
+ {
84
+ "if" : {
85
+ "required" : [
86
+ "n"
87
+ ],
88
+ "properties" : {
89
+ "n" : {
90
+ "const" : "output"
91
+ }
92
+ }
93
+ },
94
+ "then" : {
95
+ "properties" : {
96
+ "v" : {
97
+ "allOf" : [
98
+ {
99
+ "description" : "Number of Output"
100
+ },
101
+ {
102
+ "$ref" : "../../../core/3.1.2/definitions.json#/integer"
103
+ }
104
+ ]
105
+ }
106
+ }
107
+ }
108
+ },
109
+ {
110
+ "if" : {
111
+ "required" : [
112
+ "n"
113
+ ],
114
+ "properties" : {
115
+ "n" : {
116
+ "const" : "outputValue"
117
+ }
118
+ }
119
+ },
120
+ "then" : {
121
+ "properties" : {
122
+ "v" : {
123
+ "allOf" : [
124
+ {
125
+ "description" : "False: output forced to False\nTrue: output forced to True"
126
+ },
127
+ {
128
+ "$ref" : "../../../core/3.1.2/definitions.json#/boolean"
129
+ }
130
+ ]
131
+ }
132
+ }
133
+ }
134
+ }
135
+ ]
136
+ }
137
+ }
138
+ ]
139
+ }
@@ -0,0 +1,79 @@
1
+ {
2
+ "description" : "Set trigger level sensitivity for loop detector.\nThe trigger level sensitivity determines at what level a loop detector should trigger. If it set too low then then traffic will not be detected as intended. If it is set too high the detector might give false positives.\nThis command provides the ability to fine tune loop detectors to make sure they detect traffic as intended.\nRequires security code 2",
3
+ "allOf" : [
4
+ {
5
+ "properties" : {
6
+ "n" : {
7
+ "enum" : [
8
+ "securityCode",
9
+ "status"
10
+ ]
11
+ },
12
+ "cO" : {
13
+ "const" : "setLevel"
14
+ }
15
+ }
16
+ },
17
+ {
18
+ "if" : {
19
+ "required" : [
20
+ "q"
21
+ ],
22
+ "properties" : {
23
+ "q" : {
24
+ "const" : "undefined"
25
+ }
26
+ }
27
+ },
28
+ "then" : {
29
+ "s" : {
30
+ "type" : "null"
31
+ }
32
+ },
33
+ "else" : {
34
+ "allOf" : [
35
+ {
36
+ "if" : {
37
+ "required" : [
38
+ "n"
39
+ ],
40
+ "properties" : {
41
+ "n" : {
42
+ "const" : "status"
43
+ }
44
+ }
45
+ },
46
+ "then" : {
47
+ "properties" : {
48
+ "v" : {
49
+ "description" : "Loop detector trigger level sensitivity is written as dd-ss where:\ndd=loop detector number\nss=sensitivity value",
50
+ "type" : "string"
51
+ }
52
+ }
53
+ }
54
+ },
55
+ {
56
+ "if" : {
57
+ "required" : [
58
+ "n"
59
+ ],
60
+ "properties" : {
61
+ "n" : {
62
+ "const" : "securityCode"
63
+ }
64
+ }
65
+ },
66
+ "then" : {
67
+ "properties" : {
68
+ "v" : {
69
+ "description" : "Security code 2",
70
+ "type" : "string"
71
+ }
72
+ }
73
+ }
74
+ }
75
+ ]
76
+ }
77
+ }
78
+ ]
79
+ }