rsmp_schema 0.1.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/rsmp_schema/convert/export/json_schema.rb +96 -54
  4. data/lib/rsmp_schema/schema.rb +80 -24
  5. data/lib/rsmp_schema/version.rb +1 -1
  6. data/lib/rsmp_schema.rb +2 -0
  7. data/schemas/tlc/1.0.10/sxl.yaml +20 -65
  8. data/schemas/tlc/1.0.13/sxl.yaml +20 -80
  9. data/schemas/tlc/1.0.14/sxl.yaml +20 -80
  10. data/schemas/tlc/1.0.15/sxl.yaml +20 -87
  11. data/schemas/tlc/1.0.7/sxl.yaml +20 -61
  12. data/schemas/tlc/1.0.8/sxl.yaml +20 -65
  13. data/schemas/tlc/1.0.9/sxl.yaml +20 -65
  14. data/schemas/tlc/1.1/alarms/A0303.json +111 -0
  15. data/schemas/tlc/1.1/alarms/A0304.json +137 -0
  16. data/schemas/tlc/1.1/alarms/alarms.json +33 -1
  17. data/schemas/tlc/1.1/commands/M0001.json +2 -2
  18. data/schemas/tlc/1.1/commands/M0005.json +1 -1
  19. data/schemas/tlc/1.1/commands/M0013.json +1 -1
  20. data/schemas/tlc/1.1/commands/M0019.json +1 -1
  21. data/schemas/tlc/1.1/commands/M0022.json +335 -0
  22. data/schemas/tlc/1.1/commands/M0023.json +64 -0
  23. data/schemas/tlc/1.1/commands/commands.json +32 -0
  24. data/schemas/tlc/1.1/statuses/S0001.json +3 -3
  25. data/schemas/tlc/1.1/statuses/S0002.json +1 -1
  26. data/schemas/tlc/1.1/statuses/S0003.json +1 -1
  27. data/schemas/tlc/1.1/statuses/S0004.json +1 -1
  28. data/schemas/tlc/1.1/statuses/S0007.json +1 -1
  29. data/schemas/tlc/1.1/statuses/S0008.json +1 -1
  30. data/schemas/tlc/1.1/statuses/S0009.json +1 -1
  31. data/schemas/tlc/1.1/statuses/S0010.json +1 -1
  32. data/schemas/tlc/1.1/statuses/S0011.json +1 -1
  33. data/schemas/tlc/1.1/statuses/S0012.json +1 -1
  34. data/schemas/tlc/1.1/statuses/S0013.json +2 -2
  35. data/schemas/tlc/1.1/statuses/S0020.json +1 -1
  36. data/schemas/tlc/1.1/statuses/S0032.json +96 -0
  37. data/schemas/tlc/1.1/statuses/S0033.json +93 -0
  38. data/schemas/tlc/1.1/statuses/S0034.json +40 -0
  39. data/schemas/tlc/1.1/statuses/S0205.json +8 -2
  40. data/schemas/tlc/1.1/statuses/S0206.json +8 -2
  41. data/schemas/tlc/1.1/statuses/S0207.json +8 -2
  42. data/schemas/tlc/1.1/statuses/S0208.json +72 -18
  43. data/schemas/tlc/1.1/statuses/statuses.json +48 -0
  44. data/schemas/tlc/1.1/sxl.yaml +596 -241
  45. metadata +9 -2
@@ -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
- list: true
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
- list: true
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
- list: true
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
- list: true
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
- list: true
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
- list: true
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
- list: true
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
- list: true
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
- list: true
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
- list: true
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
- list: true
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
- list: true
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
- list: true
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
- list: true
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
- list: true
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
- list: true
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
@@ -613,29 +582,25 @@ objects:
613
582
  Requires security code 2.
614
583
  arguments:
615
584
  status:
616
- list: true
585
+ type: string_list
617
586
  description: Set operating mode
618
- type: string
619
587
  values:
620
588
  NormalControl: Normal Control
621
589
  YellowFlash: Enables yellow flash
622
590
  Dark: Enables dark mode
623
591
  securityCode:
624
- list: true
592
+ type: string_list
625
593
  description: Security code 2
626
- type: string
627
594
  timeout:
628
- list: true
595
+ type: integer_list
629
596
  description: |-
630
597
  Time in minutes until controller automatically reverts to previous functional position.
631
598
  0=no automatic return
632
- type: integer
633
599
  min: 0
634
600
  max: 1440
635
601
  intersection:
636
- list: true
602
+ type: integer_list
637
603
  description: Intersection number
638
- type: integer
639
604
  min: 0
640
605
  max: 255
641
606
  command: setValue
@@ -655,7 +620,6 @@ objects:
655
620
  securityCode:
656
621
  type: string
657
622
  description: Security code 2
658
- range: "[text]"
659
623
  timeplan:
660
624
  type: integer
661
625
  description: designation of time plan
@@ -676,7 +640,6 @@ objects:
676
640
  securityCode:
677
641
  type: string
678
642
  description: Security code 2
679
- range: "[text]"
680
643
  traficsituation:
681
644
  type: integer
682
645
  description: designation of traficsituation
@@ -694,7 +657,6 @@ objects:
694
657
  securityCode:
695
658
  type: string
696
659
  description: Security code 2
697
- range: "[text]"
698
660
  command: setRestart
699
661
  M0005:
700
662
  description: |-
@@ -711,7 +673,6 @@ objects:
711
673
  securityCode:
712
674
  type: string
713
675
  description: Security code 2
714
- range: "[text]"
715
676
  emergencyroute:
716
677
  type: integer
717
678
  description: Number of emergency route
@@ -734,7 +695,6 @@ objects:
734
695
  securityCode:
735
696
  type: string
736
697
  description: Security code 2
737
- range: "[text]"
738
698
  input:
739
699
  type: integer
740
700
  description: Number of Input
@@ -755,7 +715,6 @@ objects:
755
715
  securityCode:
756
716
  type: string
757
717
  description: Security code 2
758
- range: "[text]"
759
718
  command: setFixedTime
760
719
  M0012:
761
720
  description: |-
@@ -792,11 +751,9 @@ objects:
792
751
  "5,4143,65:22,1,4"
793
752
 
794
753
  Such a message would order signal group 6,7,10,17,22 to green and signal group 5,11,24 to red
795
- range: "[text]"
796
754
  securityCode:
797
755
  type: string
798
756
  description: Security code 2
799
- range: "[text]"
800
757
  command: setStart
801
758
  M0013:
802
759
  description: |-
@@ -827,11 +784,9 @@ objects:
827
784
  "5,4143:65:22,1,4"
828
785
 
829
786
  Such a message would activate input 6,7,10,17,22 and deactivate input 5,11,24
830
- range: "[text]"
831
787
  securityCode:
832
788
  type: string
833
789
  description: Security code 2
834
- range: "[text]"
835
790
  command: setInput
836
791
  M0014:
837
792
  description: |-
@@ -856,11 +811,9 @@ objects:
856
811
 
857
812
  E.g.
858
813
  dd-ee,dd-ee
859
- range: "[text]"
860
814
  securityCode:
861
815
  type: string
862
816
  description: Security code 2
863
- range: "[text]"
864
817
  command: setCommands
865
818
  M0015:
866
819
  description: |-
@@ -880,7 +833,6 @@ objects:
880
833
  securityCode:
881
834
  type: string
882
835
  description: Security code 2
883
- range: "[text]"
884
836
  command: setOffset
885
837
  M0016:
886
838
  description: |-
@@ -910,11 +862,9 @@ objects:
910
862
 
911
863
  E.g.
912
864
  d-t,d-t
913
- range: "[text]"
914
865
  securityCode:
915
866
  type: string
916
867
  description: Security code 2
917
- range: "[text]"
918
868
  command: setWeekTable
919
869
  M0017:
920
870
  description: |-
@@ -945,11 +895,9 @@ objects:
945
895
 
946
896
  E.g.
947
897
  t-o-h-m,t-o-h-m
948
- range: "[text]"
949
898
  securityCode:
950
899
  type: string
951
900
  description: Security code 2
952
- range: "[text]"
953
901
  command: setTimeTable
954
902
  M0018:
955
903
  description: |-
@@ -969,7 +917,6 @@ objects:
969
917
  securityCode:
970
918
  type: string
971
919
  description: Security code 2
972
- range: "[text]"
973
920
  command: setCycleTime
974
921
  M0019:
975
922
  description: |-
@@ -986,7 +933,6 @@ objects:
986
933
  securityCode:
987
934
  type: string
988
935
  description: Security code 2
989
- range: "[text]"
990
936
  input:
991
937
  type: integer
992
938
  description: Number of Input
@@ -1011,11 +957,9 @@ objects:
1011
957
  oldSecurityCode:
1012
958
  type: string
1013
959
  description: Previous security code
1014
- range: "[text]"
1015
960
  newSecurityCode:
1016
961
  type: string
1017
962
  description: New security code
1018
- range: "[text]"
1019
963
  command: setSecurityCode
1020
964
  M0104:
1021
965
  description: |-
@@ -1026,7 +970,6 @@ objects:
1026
970
  securityCode:
1027
971
  type: string
1028
972
  description: Security code 1
1029
- range: "[text]"
1030
973
  year:
1031
974
  type: integer
1032
975
  description: |-
@@ -1176,7 +1119,6 @@ objects:
1176
1119
  securityCode:
1177
1120
  type: string
1178
1121
  description: Security code 2
1179
- range: "[text]"
1180
1122
  command: setStart
1181
1123
  M0011:
1182
1124
  description: |-
@@ -1193,7 +1135,6 @@ objects:
1193
1135
  securityCode:
1194
1136
  type: string
1195
1137
  description: Security code 2
1196
- range: "[text]"
1197
1138
  command: setStop
1198
1139
  Detector logic:
1199
1140
  description:
@@ -1367,7 +1308,6 @@ objects:
1367
1308
  securityCode:
1368
1309
  type: string
1369
1310
  description: Security code 2
1370
- range: "[text]"
1371
1311
  mode:
1372
1312
  type: boolean
1373
1313
  description: |-