rsmp_schema 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rsmp_schema/convert/export/json_schema.rb +96 -54
- data/lib/rsmp_schema/schema.rb +80 -24
- data/lib/rsmp_schema/version.rb +1 -1
- data/lib/rsmp_schema.rb +2 -0
- data/schemas/tlc/1.0.10/sxl.yaml +20 -65
- data/schemas/tlc/1.0.13/sxl.yaml +20 -80
- data/schemas/tlc/1.0.14/sxl.yaml +20 -80
- data/schemas/tlc/1.0.15/sxl.yaml +20 -87
- data/schemas/tlc/1.0.7/sxl.yaml +20 -61
- data/schemas/tlc/1.0.8/sxl.yaml +20 -65
- data/schemas/tlc/1.0.9/sxl.yaml +20 -65
- data/schemas/tlc/1.1/alarms/A0303.json +111 -0
- data/schemas/tlc/1.1/alarms/A0304.json +137 -0
- data/schemas/tlc/1.1/alarms/alarms.json +33 -1
- data/schemas/tlc/1.1/commands/M0001.json +2 -2
- data/schemas/tlc/1.1/commands/M0005.json +1 -1
- data/schemas/tlc/1.1/commands/M0013.json +1 -1
- data/schemas/tlc/1.1/commands/M0019.json +1 -1
- data/schemas/tlc/1.1/commands/M0022.json +335 -0
- data/schemas/tlc/1.1/commands/M0023.json +64 -0
- data/schemas/tlc/1.1/commands/commands.json +32 -0
- data/schemas/tlc/1.1/statuses/S0001.json +3 -3
- data/schemas/tlc/1.1/statuses/S0002.json +1 -1
- data/schemas/tlc/1.1/statuses/S0003.json +1 -1
- data/schemas/tlc/1.1/statuses/S0004.json +1 -1
- data/schemas/tlc/1.1/statuses/S0007.json +1 -1
- data/schemas/tlc/1.1/statuses/S0008.json +1 -1
- data/schemas/tlc/1.1/statuses/S0009.json +1 -1
- data/schemas/tlc/1.1/statuses/S0010.json +1 -1
- data/schemas/tlc/1.1/statuses/S0011.json +1 -1
- data/schemas/tlc/1.1/statuses/S0012.json +1 -1
- data/schemas/tlc/1.1/statuses/S0013.json +2 -2
- data/schemas/tlc/1.1/statuses/S0020.json +1 -1
- data/schemas/tlc/1.1/statuses/S0032.json +96 -0
- data/schemas/tlc/1.1/statuses/S0033.json +93 -0
- data/schemas/tlc/1.1/statuses/S0034.json +40 -0
- data/schemas/tlc/1.1/statuses/S0205.json +8 -2
- data/schemas/tlc/1.1/statuses/S0206.json +8 -2
- data/schemas/tlc/1.1/statuses/S0207.json +8 -2
- data/schemas/tlc/1.1/statuses/S0208.json +72 -18
- data/schemas/tlc/1.1/statuses/statuses.json +48 -0
- data/schemas/tlc/1.1/sxl.yaml +596 -241
- metadata +9 -2
data/schemas/tlc/1.0.14/sxl.yaml
CHANGED
@@ -97,7 +97,6 @@ objects:
|
|
97
97
|
signalgroupstatus:
|
98
98
|
type: string
|
99
99
|
description: Signal group status as text field
|
100
|
-
range: "[text]"
|
101
100
|
pattern: "^[a-hA-G0-9N-P]*$"
|
102
101
|
cyclecounter:
|
103
102
|
type: integer
|
@@ -120,7 +119,6 @@ objects:
|
|
120
119
|
detectorlogicstatus:
|
121
120
|
type: string
|
122
121
|
description: Detector logic status as text field
|
123
|
-
range: "[text]"
|
124
122
|
S0003:
|
125
123
|
description: |-
|
126
124
|
Input status.
|
@@ -130,11 +128,9 @@ objects:
|
|
130
128
|
inputstatus:
|
131
129
|
type: string
|
132
130
|
description: Input status as text field
|
133
|
-
range: "[text]"
|
134
131
|
extendedinputstatus:
|
135
132
|
type: string
|
136
133
|
description: Extended input status as text field
|
137
|
-
range: "[text]"
|
138
134
|
S0004:
|
139
135
|
description: |-
|
140
136
|
Output status.
|
@@ -144,11 +140,9 @@ objects:
|
|
144
140
|
outputstatus:
|
145
141
|
type: string
|
146
142
|
description: Output status as text field
|
147
|
-
range: "[text]"
|
148
143
|
extendedoutputstatus:
|
149
144
|
type: string
|
150
145
|
description: Extended output status as text field
|
151
|
-
range: "[text]"
|
152
146
|
S0005:
|
153
147
|
description: |-
|
154
148
|
Traffic Light Controller starting.
|
@@ -183,15 +177,13 @@ objects:
|
|
183
177
|
During maintenance work the controller might be using dark mode (no output to the signal heads).
|
184
178
|
arguments:
|
185
179
|
intersection:
|
186
|
-
|
187
|
-
type: integer
|
180
|
+
type: integer_list
|
188
181
|
description: |-
|
189
182
|
0: Not applicable (only one intersection exists or applicable for all intersection of the traffic light controller)
|
190
183
|
Other value: Intersection number
|
191
184
|
range: "[0-255]"
|
192
185
|
status:
|
193
|
-
|
194
|
-
type: boolean
|
186
|
+
type: boolean_list
|
195
187
|
description: |-
|
196
188
|
False: Traffic Light Controller in dark mode
|
197
189
|
True: Traffic Light Controller not in dark mode
|
@@ -202,15 +194,13 @@ objects:
|
|
202
194
|
Signal timings is controlled manually by service personnel using the operating panel of the controller.
|
203
195
|
arguments:
|
204
196
|
intersection:
|
205
|
-
|
206
|
-
type: integer
|
197
|
+
type: integer_list
|
207
198
|
description: |-
|
208
199
|
0: Not applicable (only one intersection exists or applicable for all intersection of the traffic light controller)
|
209
200
|
Other value: Intersection number
|
210
201
|
range: "[0-255]"
|
211
202
|
status:
|
212
|
-
|
213
|
-
type: boolean
|
203
|
+
type: boolean_list
|
214
204
|
description: |-
|
215
205
|
False: Manual control inactive
|
216
206
|
True: Manual control active
|
@@ -221,15 +211,13 @@ objects:
|
|
221
211
|
Usually only used in case normal detectors can't be used, e.g. during maintenance work.
|
222
212
|
arguments:
|
223
213
|
intersection:
|
224
|
-
|
225
|
-
type: integer
|
214
|
+
type: integer_list
|
226
215
|
description: |-
|
227
216
|
0: Not applicable (only one intersection exists or applicable for all intersection of the traffic light controller)
|
228
217
|
Other value: Intersection number
|
229
218
|
range: "[0-255]"
|
230
219
|
status:
|
231
|
-
|
232
|
-
type: boolean
|
220
|
+
type: boolean_list
|
233
221
|
description: |-
|
234
222
|
False: Fixed time control inactive
|
235
223
|
True: Fixed time control active
|
@@ -240,15 +228,13 @@ objects:
|
|
240
228
|
Used to determine if the controller is operating independently or operating with other controllers (coordination).
|
241
229
|
arguments:
|
242
230
|
intersection:
|
243
|
-
|
244
|
-
type: integer
|
231
|
+
type: integer_list
|
245
232
|
description: |-
|
246
233
|
0: Not applicable (only one intersection exists or applicable for all intersection of the traffic light controller)
|
247
234
|
Other value: Intersection number
|
248
235
|
range: "[0-255]"
|
249
236
|
status:
|
250
|
-
|
251
|
-
type: boolean
|
237
|
+
type: boolean_list
|
252
238
|
description: |-
|
253
239
|
False: Isolated control disabled
|
254
240
|
True: Isolated control enabled (Vehicle actuated control or Fixed time control)
|
@@ -259,15 +245,13 @@ objects:
|
|
259
245
|
Yellow flash may be used during a serious fault (depending on configuration) or maintenance work. It can also be manually set using M0001.
|
260
246
|
arguments:
|
261
247
|
intersection:
|
262
|
-
|
263
|
-
type: integer
|
248
|
+
type: integer_list
|
264
249
|
description: |-
|
265
250
|
0: Not applicable (only one intersection exists or applicable for all intersection of the traffic light controller)
|
266
251
|
Other value: Intersection number
|
267
252
|
range: "[0-255]"
|
268
253
|
status:
|
269
|
-
|
270
|
-
type: boolean
|
254
|
+
type: boolean_list
|
271
255
|
description: |-
|
272
256
|
False: Yellow flash disabled
|
273
257
|
True: Yellow flash enabled
|
@@ -278,15 +262,13 @@ objects:
|
|
278
262
|
All red can be manually set using the controllers operating panel during maintenance work.
|
279
263
|
arguments:
|
280
264
|
intersection:
|
281
|
-
|
282
|
-
type: integer
|
265
|
+
type: integer_list
|
283
266
|
description: |-
|
284
267
|
0: Not applicable (only one intersection exists or applicable for all intersection of the traffic light controller)
|
285
268
|
Other value: Intersection number
|
286
269
|
range: "[0-255]"
|
287
270
|
status:
|
288
|
-
|
289
|
-
type: boolean
|
271
|
+
type: boolean_list
|
290
272
|
description: |-
|
291
273
|
False: All red disabled
|
292
274
|
True: All red enabled
|
@@ -297,15 +279,13 @@ objects:
|
|
297
279
|
The "police key" is a external control switch present in some controllers that manually switches the controller to either dark mode or yellow flash.
|
298
280
|
arguments:
|
299
281
|
intersection:
|
300
|
-
|
301
|
-
type: integer
|
282
|
+
type: integer_list
|
302
283
|
description: |-
|
303
284
|
0: Not applicable (only one intersection exists or applicable for all intersection of the traffic light controller)
|
304
285
|
Other value: Intersection number
|
305
286
|
range: "[0-255]"
|
306
287
|
status:
|
307
|
-
|
308
|
-
type: integer
|
288
|
+
type: integer_list
|
309
289
|
values:
|
310
290
|
0: disabled
|
311
291
|
1: dark mode
|
@@ -373,15 +353,13 @@ objects:
|
|
373
353
|
Can be used for the management system to check the current control mode (startup, normal, standby, failure, test).
|
374
354
|
arguments:
|
375
355
|
intersection:
|
376
|
-
|
377
|
-
type: integer
|
356
|
+
type: integer_list
|
378
357
|
description: |-
|
379
358
|
0: Not applicable (only one intersection exists or applicable for all intersection of the traffic light controller)
|
380
359
|
Other value: Intersection number
|
381
360
|
range: "[0-255]"
|
382
361
|
controlmode:
|
383
|
-
|
384
|
-
type: string
|
362
|
+
type: string_list
|
385
363
|
values:
|
386
364
|
startup: Startup mode
|
387
365
|
control: Normal control
|
@@ -397,7 +375,6 @@ objects:
|
|
397
375
|
detectorlogics:
|
398
376
|
type: string
|
399
377
|
description: Manually set detector logics (1/0) as text field
|
400
|
-
range: "[text]"
|
401
378
|
pattern: "^[01]*$"
|
402
379
|
S0022:
|
403
380
|
description: |-
|
@@ -408,7 +385,6 @@ objects:
|
|
408
385
|
status:
|
409
386
|
type: string
|
410
387
|
description: Comma separated list of configured time plans. E.g. "1,2,3,5"
|
411
|
-
range: "[text]"
|
412
388
|
S0023:
|
413
389
|
description: |-
|
414
390
|
Dynamic bands.
|
@@ -428,7 +404,6 @@ objects:
|
|
428
404
|
|
429
405
|
E.g.
|
430
406
|
pp-dd-ee,pp-dd-ee
|
431
|
-
range: "[text]"
|
432
407
|
pattern: "(^$)|(^(?<item>(\\d{1,2})\\-\\d{1,2}-\\d{1,2})(,\\g<item>)*$)"
|
433
408
|
S0024:
|
434
409
|
description: |-
|
@@ -448,7 +423,6 @@ objects:
|
|
448
423
|
|
449
424
|
E.g.
|
450
425
|
pp-tt,pp-tt
|
451
|
-
range: "[text]"
|
452
426
|
pattern: "^(\\d{1,2}\\-\\d{1,2})(?:,(\\d{1,2}\\-\\d{1,2}))*$"
|
453
427
|
S0026:
|
454
428
|
description: |-
|
@@ -476,7 +450,6 @@ objects:
|
|
476
450
|
Each segment is separated with a comma
|
477
451
|
E.g.
|
478
452
|
d-t,d-t
|
479
|
-
range: "[text]"
|
480
453
|
S0027:
|
481
454
|
description: |-
|
482
455
|
Time tables.
|
@@ -505,7 +478,6 @@ objects:
|
|
505
478
|
|
506
479
|
E.g.
|
507
480
|
t-o-h-m,t-o-h-m
|
508
|
-
range: "[text]"
|
509
481
|
S0028:
|
510
482
|
description: |-
|
511
483
|
Cycle time.
|
@@ -524,7 +496,6 @@ objects:
|
|
524
496
|
|
525
497
|
E.g.
|
526
498
|
pp-tt,pp-tt
|
527
|
-
range: "[text]"
|
528
499
|
S0029:
|
529
500
|
description: |-
|
530
501
|
Forced input status.
|
@@ -534,7 +505,6 @@ objects:
|
|
534
505
|
status:
|
535
506
|
type: string
|
536
507
|
description: Forced input status as text field
|
537
|
-
range: "[text]"
|
538
508
|
S0091:
|
539
509
|
description: |-
|
540
510
|
Operator logged in/out OP-panel.
|
@@ -573,7 +543,6 @@ objects:
|
|
573
543
|
status:
|
574
544
|
type: string
|
575
545
|
description: Manufacturer, product name and version of traffic light controller
|
576
|
-
range: "[text]"
|
577
546
|
S0096:
|
578
547
|
description: |-
|
579
548
|
Current date and time
|
@@ -751,29 +720,25 @@ objects:
|
|
751
720
|
Requires security code 2.
|
752
721
|
arguments:
|
753
722
|
status:
|
754
|
-
|
723
|
+
type: string_list
|
755
724
|
description: Set operating mode
|
756
|
-
type: string
|
757
725
|
values:
|
758
726
|
NormalControl: Normal Control
|
759
727
|
YellowFlash: Enables yellow flash
|
760
728
|
Dark: Enables dark mode
|
761
729
|
securityCode:
|
762
|
-
|
730
|
+
type: string_list
|
763
731
|
description: Security code 2
|
764
|
-
type: string
|
765
732
|
timeout:
|
766
|
-
|
733
|
+
type: integer_list
|
767
734
|
description: |-
|
768
735
|
Time in minutes until controller automatically reverts to previous functional position.
|
769
736
|
0=no automatic return
|
770
|
-
type: integer
|
771
737
|
min: 0
|
772
738
|
max: 1440
|
773
739
|
intersection:
|
774
|
-
|
740
|
+
type: integer_list
|
775
741
|
description: Intersection number
|
776
|
-
type: integer
|
777
742
|
min: 0
|
778
743
|
max: 255
|
779
744
|
command: setValue
|
@@ -793,7 +758,6 @@ objects:
|
|
793
758
|
securityCode:
|
794
759
|
type: string
|
795
760
|
description: Security code 2
|
796
|
-
range: "[text]"
|
797
761
|
timeplan:
|
798
762
|
type: integer
|
799
763
|
description: designation of time plan
|
@@ -814,7 +778,6 @@ objects:
|
|
814
778
|
securityCode:
|
815
779
|
type: string
|
816
780
|
description: Security code 2
|
817
|
-
range: "[text]"
|
818
781
|
traficsituation:
|
819
782
|
type: integer
|
820
783
|
description: designation of traficsituation
|
@@ -832,7 +795,6 @@ objects:
|
|
832
795
|
securityCode:
|
833
796
|
type: string
|
834
797
|
description: Security code 2
|
835
|
-
range: "[text]"
|
836
798
|
command: setRestart
|
837
799
|
M0005:
|
838
800
|
description: |-
|
@@ -849,7 +811,6 @@ objects:
|
|
849
811
|
securityCode:
|
850
812
|
type: string
|
851
813
|
description: Security code 2
|
852
|
-
range: "[text]"
|
853
814
|
emergencyroute:
|
854
815
|
type: integer
|
855
816
|
description: Number of emergency route
|
@@ -872,7 +833,6 @@ objects:
|
|
872
833
|
securityCode:
|
873
834
|
type: string
|
874
835
|
description: Security code 2
|
875
|
-
range: "[text]"
|
876
836
|
input:
|
877
837
|
type: integer
|
878
838
|
description: Number of Input
|
@@ -893,7 +853,6 @@ objects:
|
|
893
853
|
securityCode:
|
894
854
|
type: string
|
895
855
|
description: Security code 2
|
896
|
-
range: "[text]"
|
897
856
|
command: setFixedTime
|
898
857
|
M0012:
|
899
858
|
description: |-
|
@@ -930,11 +889,9 @@ objects:
|
|
930
889
|
"5,4143,65:22,1,4"
|
931
890
|
|
932
891
|
Such a message would order signal group 6,7,10,17,22 to green and signal group 5,11,24 to red
|
933
|
-
range: "[text]"
|
934
892
|
securityCode:
|
935
893
|
type: string
|
936
894
|
description: Security code 2
|
937
|
-
range: "[text]"
|
938
895
|
command: setStart
|
939
896
|
M0013:
|
940
897
|
description: |-
|
@@ -965,11 +922,9 @@ objects:
|
|
965
922
|
"5,4143:65:22,1,4"
|
966
923
|
|
967
924
|
Such a message would activate input 6,7,10,17,22 and deactivate input 5,11,24
|
968
|
-
range: "[text]"
|
969
925
|
securityCode:
|
970
926
|
type: string
|
971
927
|
description: Security code 2
|
972
|
-
range: "[text]"
|
973
928
|
command: setInput
|
974
929
|
M0014:
|
975
930
|
description: |-
|
@@ -994,11 +949,9 @@ objects:
|
|
994
949
|
|
995
950
|
E.g.
|
996
951
|
dd-ee,dd-ee
|
997
|
-
range: "[text]"
|
998
952
|
securityCode:
|
999
953
|
type: string
|
1000
954
|
description: Security code 2
|
1001
|
-
range: "[text]"
|
1002
955
|
command: setCommands
|
1003
956
|
M0015:
|
1004
957
|
description: |-
|
@@ -1018,7 +971,6 @@ objects:
|
|
1018
971
|
securityCode:
|
1019
972
|
type: string
|
1020
973
|
description: Security code 2
|
1021
|
-
range: "[text]"
|
1022
974
|
command: setOffset
|
1023
975
|
M0016:
|
1024
976
|
description: |-
|
@@ -1048,11 +1000,9 @@ objects:
|
|
1048
1000
|
|
1049
1001
|
E.g.
|
1050
1002
|
d-t,d-t
|
1051
|
-
range: "[text]"
|
1052
1003
|
securityCode:
|
1053
1004
|
type: string
|
1054
1005
|
description: Security code 2
|
1055
|
-
range: "[text]"
|
1056
1006
|
command: setWeekTable
|
1057
1007
|
M0017:
|
1058
1008
|
description: |-
|
@@ -1083,11 +1033,9 @@ objects:
|
|
1083
1033
|
|
1084
1034
|
E.g.
|
1085
1035
|
t-o-h-m,t-o-h-m
|
1086
|
-
range: "[text]"
|
1087
1036
|
securityCode:
|
1088
1037
|
type: string
|
1089
1038
|
description: Security code 2
|
1090
|
-
range: "[text]"
|
1091
1039
|
command: setTimeTable
|
1092
1040
|
M0018:
|
1093
1041
|
description: |-
|
@@ -1107,7 +1055,6 @@ objects:
|
|
1107
1055
|
securityCode:
|
1108
1056
|
type: string
|
1109
1057
|
description: Security code 2
|
1110
|
-
range: "[text]"
|
1111
1058
|
command: setCycleTime
|
1112
1059
|
M0019:
|
1113
1060
|
description: |-
|
@@ -1124,7 +1071,6 @@ objects:
|
|
1124
1071
|
securityCode:
|
1125
1072
|
type: string
|
1126
1073
|
description: Security code 2
|
1127
|
-
range: "[text]"
|
1128
1074
|
input:
|
1129
1075
|
type: integer
|
1130
1076
|
description: Number of Input
|
@@ -1149,11 +1095,9 @@ objects:
|
|
1149
1095
|
oldSecurityCode:
|
1150
1096
|
type: string
|
1151
1097
|
description: Previous security code
|
1152
|
-
range: "[text]"
|
1153
1098
|
newSecurityCode:
|
1154
1099
|
type: string
|
1155
1100
|
description: New security code
|
1156
|
-
range: "[text]"
|
1157
1101
|
command: setSecurityCode
|
1158
1102
|
M0104:
|
1159
1103
|
description: |-
|
@@ -1164,7 +1108,6 @@ objects:
|
|
1164
1108
|
securityCode:
|
1165
1109
|
type: string
|
1166
1110
|
description: Security code 1
|
1167
|
-
range: "[text]"
|
1168
1111
|
year:
|
1169
1112
|
type: integer
|
1170
1113
|
description: |-
|
@@ -1314,7 +1257,6 @@ objects:
|
|
1314
1257
|
securityCode:
|
1315
1258
|
type: string
|
1316
1259
|
description: Security code 2
|
1317
|
-
range: "[text]"
|
1318
1260
|
command: setStart
|
1319
1261
|
M0011:
|
1320
1262
|
description: |-
|
@@ -1331,7 +1273,6 @@ objects:
|
|
1331
1273
|
securityCode:
|
1332
1274
|
type: string
|
1333
1275
|
description: Security code 2
|
1334
|
-
range: "[text]"
|
1335
1276
|
command: setStop
|
1336
1277
|
Detector logic:
|
1337
1278
|
description:
|
@@ -1505,7 +1446,6 @@ objects:
|
|
1505
1446
|
securityCode:
|
1506
1447
|
type: string
|
1507
1448
|
description: Security code 2
|
1508
|
-
range: "[text]"
|
1509
1449
|
mode:
|
1510
1450
|
type: boolean
|
1511
1451
|
description: |-
|