rsmp 0.48.2 → 0.48.3

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.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/Rakefile +25 -2
  4. data/lib/rsmp/convert/export/json_schema/index.rb +38 -17
  5. data/lib/rsmp/convert/export/json_schema.rb +29 -0
  6. data/lib/rsmp/version.rb +1 -1
  7. data/schemas/tlc/1.0.10/commands/M0001.json +4 -4
  8. data/schemas/tlc/1.0.10/{sxl.yaml → source/sxl.yaml} +60 -63
  9. data/schemas/tlc/1.0.10/sxl_index.json +3 -3
  10. data/schemas/tlc/1.0.13/commands/M0001.json +4 -4
  11. data/schemas/tlc/1.0.13/{sxl.yaml → source/sxl.yaml} +67 -70
  12. data/schemas/tlc/1.0.13/sxl_index.json +3 -3
  13. data/schemas/tlc/1.0.14/commands/M0001.json +4 -4
  14. data/schemas/tlc/1.0.14/{sxl.yaml → source/sxl.yaml} +67 -70
  15. data/schemas/tlc/1.0.14/sxl_index.json +3 -3
  16. data/schemas/tlc/1.0.15/commands/M0001.json +4 -4
  17. data/schemas/tlc/1.0.15/{sxl.yaml → source/sxl.yaml} +70 -73
  18. data/schemas/tlc/1.0.15/sxl_index.json +3 -3
  19. data/schemas/tlc/1.0.7/commands/M0001.json +4 -4
  20. data/schemas/tlc/1.0.7/{sxl.yaml → source/sxl.yaml} +62 -65
  21. data/schemas/tlc/1.0.7/sxl_index.json +3 -3
  22. data/schemas/tlc/1.0.8/commands/M0001.json +4 -4
  23. data/schemas/tlc/1.0.8/{sxl.yaml → source/sxl.yaml} +60 -63
  24. data/schemas/tlc/1.0.8/sxl_index.json +3 -3
  25. data/schemas/tlc/1.0.9/commands/M0001.json +4 -4
  26. data/schemas/tlc/1.0.9/{sxl.yaml → source/sxl.yaml} +60 -63
  27. data/schemas/tlc/1.0.9/sxl_index.json +3 -3
  28. data/schemas/tlc/1.1.0/commands/M0022.json +8 -8
  29. data/schemas/tlc/1.1.0/{sxl.yaml → source/sxl.yaml} +74 -74
  30. data/schemas/tlc/1.1.0/statuses/S0033.json +2 -2
  31. data/schemas/tlc/1.1.0/sxl_index.json +10 -10
  32. data/schemas/tlc/1.2.0/commands/M0022.json +8 -8
  33. data/schemas/tlc/1.2.0/{sxl.yaml → source/sxl.yaml} +76 -76
  34. data/schemas/tlc/1.2.0/statuses/S0033.json +2 -2
  35. data/schemas/tlc/1.2.0/sxl_index.json +10 -10
  36. data/schemas/tlc/1.2.1/commands/M0022.json +8 -8
  37. data/schemas/tlc/1.2.1/{sxl.yaml → source/sxl.yaml} +76 -76
  38. data/schemas/tlc/1.2.1/statuses/S0033.json +2 -2
  39. data/schemas/tlc/1.2.1/sxl_index.json +10 -10
  40. data/schemas/tlc/1.3.0/commands/command_requests.json +0 -16
  41. data/schemas/tlc/1.3.0/{sxl.yaml → source/sxl.yaml} +1 -0
  42. data/schemas/tlc/1.3.0/sxl_index.json +1 -1
  43. metadata +12 -17
  44. data/schemas/tlc/1.0.8/statuses/S0025.json +0 -181
  45. data/schemas/tlc/1.0.9/statuses/S0025.json +0 -181
  46. data/schemas/tlc/1.2.0/statuses/S0018.json +0 -61
  47. data/schemas/tlc/1.2.1/statuses/S0018.json +0 -61
  48. data/schemas/tlc/1.3.0/statuses/S0018.json +0 -61
@@ -100,15 +100,15 @@ objects:
100
100
  description: Signal group status as text field
101
101
  pattern: "^[a-hA-G0-9N-P]*$"
102
102
  cyclecounter:
103
- type: integer_as_string
103
+ type: integer
104
104
  description: Cycle counter
105
105
  range: "[0-999]"
106
106
  basecyclecounter:
107
- type: integer_as_string
107
+ type: integer
108
108
  description: Base cycle counter
109
109
  range: "[0-999]"
110
110
  stage:
111
- type: integer_as_string
111
+ type: integer
112
112
  description: Current stage (isolated)
113
113
  range: "[0-999]"
114
114
  S0002:
@@ -151,7 +151,7 @@ objects:
151
151
  During startup mode the traffic controller shows dark, red, yellow flash or using the predetermined start cycle (minimum times).
152
152
  arguments:
153
153
  status:
154
- type: boolean_as_string
154
+ type: boolean
155
155
  description: |-
156
156
  False: Controller is not in start up mode
157
157
  True: Controller is currently in start up mode
@@ -162,12 +162,12 @@ objects:
162
162
  Used in situations where full priority is given in the emergency vehicle program.
163
163
  arguments:
164
164
  status:
165
- type: boolean_as_string
165
+ type: boolean
166
166
  description: |-
167
167
  False: Emergency stage inactive
168
168
  True: Emergency stage active
169
169
  emergencystage:
170
- type: integer_as_string
170
+ type: integer
171
171
  description: Number of emergency stage
172
172
  range: "[1-255]"
173
173
  S0007:
@@ -298,7 +298,7 @@ objects:
298
298
  The time plan (signal program) may change signal timings, cycle time, control strategy and much more. Typical usage is is scenario based control where change of program is used to change priority etc.
299
299
  arguments:
300
300
  status:
301
- type: integer_as_string
301
+ type: integer
302
302
  description: Current time plan
303
303
  range: "[1-255]"
304
304
  S0015:
@@ -309,7 +309,7 @@ objects:
309
309
  Traffic situation is a concept used to divide multiple TLC's into areas and sub-areas. The traffic situation gives the possibility to change the TLC sub-area dynamically depending on the time of day and the traffic flow. Depending on the traffic situation each TLC selects the time plan dynamically.
310
310
  arguments:
311
311
  status:
312
- type: integer_as_string
312
+ type: integer
313
313
  description: Current traffic situation
314
314
  range: "[1-255]"
315
315
  S0016:
@@ -318,7 +318,7 @@ objects:
318
318
  Can be used by the management system to check the number of detector logics configured in the controller.
319
319
  arguments:
320
320
  number:
321
- type: long_as_string
321
+ type: long
322
322
  description: Number of detector logics
323
323
  range: "[1-65025]"
324
324
  S0017:
@@ -327,7 +327,7 @@ objects:
327
327
  Can be used for the management system to check the number of signal groups configured in the controller.
328
328
  arguments:
329
329
  number:
330
- type: long_as_string
330
+ type: long
331
331
  description: Number of signal groups
332
332
  range: "[1-65025]"
333
333
  S0018:
@@ -336,7 +336,7 @@ objects:
336
336
  Can be used for the management system to check the number of time plans configured in the controller.
337
337
  arguments:
338
338
  number:
339
- type: long_as_string
339
+ type: long
340
340
  description: Number of time plans (depreciated)
341
341
  range: "[1-65025]"
342
342
  S0019:
@@ -345,7 +345,7 @@ objects:
345
345
  Can be used for the management system to check the number of traffic situations configured in the controller.
346
346
  arguments:
347
347
  number:
348
- type: long_as_string
348
+ type: long
349
349
  description: Number of traffic situations
350
350
  range: "[1-65025]"
351
351
  S0020:
@@ -421,29 +421,29 @@ objects:
421
421
  Provides diagnostic information about the current date and time set in the controller.
422
422
  arguments:
423
423
  year:
424
- type: integer_as_string
424
+ type: integer
425
425
  description: 'Year according to format YYYY. NOTE: UTC is used'
426
426
  range: YYYY
427
427
  month:
428
- type: integer_as_string
428
+ type: integer
429
429
  description: 'Month (01-12) according to format MM. Note: UTC is used'
430
430
  range: MM
431
431
  day:
432
- type: integer_as_string
432
+ type: integer
433
433
  description: 'Day of month (01-31) according to format DD. Note: UTC
434
434
  is used'
435
435
  range: DD
436
436
  hour:
437
- type: integer_as_string
437
+ type: integer
438
438
  description: 'Hour of day (00-23) according to format DD. Note: UTC is
439
439
  used'
440
440
  range: HH
441
441
  minute:
442
- type: integer_as_string
442
+ type: integer
443
443
  description: 'Minute (00-59) according to format MM. Note: UTC is used'
444
444
  range: MM
445
445
  second:
446
- type: integer_as_string
446
+ type: integer
447
447
  description: 'Second (00-59) according to format SS. Note: UTC is used'
448
448
  range: SS
449
449
  commands:
@@ -461,21 +461,18 @@ objects:
461
461
  YellowFlash: Enables yellow flash
462
462
  Dark: Enables dark mode
463
463
  securityCode:
464
- type: string
464
+ type: string_list
465
465
  description: Security code 2
466
466
  timeout:
467
- type: integer_as_string
467
+ type: integer_list
468
468
  description: |-
469
469
  Time in minutes until controller automatically reverts to previous functional position.
470
470
  0=no automatic return
471
471
  min: 0
472
472
  max: 1440
473
473
  intersection:
474
- type: integer_as_string
475
- description: |-
476
- Intersection number.
477
- Command only applies to specified intersection. Other intersections remains in their respective operating mode(s).
478
- 0: All intersections
474
+ type: integer_list
475
+ description: Intersection number
479
476
  min: 0
480
477
  max: 255
481
478
  command: setValue
@@ -488,7 +485,7 @@ objects:
488
485
  Requires security code 2
489
486
  arguments:
490
487
  status:
491
- type: boolean_as_string
488
+ type: boolean
492
489
  description: |-
493
490
  False: Controller uses time plan according to programming
494
491
  True: Controller uses time plan according to command
@@ -496,7 +493,7 @@ objects:
496
493
  type: string
497
494
  description: Security code 2
498
495
  timeplan:
499
- type: integer_as_string
496
+ type: integer
500
497
  description: designation of time plan
501
498
  range: "[1-255]"
502
499
  command: setPlan
@@ -508,7 +505,7 @@ objects:
508
505
  Requires security code 2
509
506
  arguments:
510
507
  status:
511
- type: boolean_as_string
508
+ type: boolean
512
509
  description: |-
513
510
  False: Controller uses traffic situation according to own programming
514
511
  True: Controller uses traffic situation according to command
@@ -516,7 +513,7 @@ objects:
516
513
  type: string
517
514
  description: Security code 2
518
515
  traficsituation:
519
- type: integer_as_string
516
+ type: integer
520
517
  description: designation of traficsituation
521
518
  range: "[1-255]"
522
519
  command: setTrafficSituation
@@ -527,7 +524,7 @@ objects:
527
524
  Requires security code 2
528
525
  arguments:
529
526
  status:
530
- type: boolean_as_string
527
+ type: boolean
531
528
  description: 'True: Restart controller'
532
529
  securityCode:
533
530
  type: string
@@ -541,7 +538,7 @@ objects:
541
538
  Requires security code 2.
542
539
  arguments:
543
540
  status:
544
- type: boolean_as_string
541
+ type: boolean
545
542
  description: |-
546
543
  False: Activate emergency route
547
544
  True: Deactivate emergency route
@@ -549,7 +546,7 @@ objects:
549
546
  type: string
550
547
  description: Security code 2
551
548
  emergencyroute:
552
- type: integer_as_string
549
+ type: integer
553
550
  description: Number of emergency route
554
551
  range: "[1-255]"
555
552
  command: setEmergency
@@ -563,7 +560,7 @@ objects:
563
560
  Requires security code 2.
564
561
  arguments:
565
562
  status:
566
- type: boolean_as_string
563
+ type: boolean
567
564
  description: |-
568
565
  False: Deactivate input
569
566
  True: Activate input
@@ -571,7 +568,7 @@ objects:
571
568
  type: string
572
569
  description: Security code 2
573
570
  input:
574
- type: integer_as_string
571
+ type: integer
575
572
  description: Number of Input
576
573
  range: "[1-255]"
577
574
  command: setInput
@@ -583,7 +580,7 @@ objects:
583
580
  Requires security code 2.
584
581
  arguments:
585
582
  status:
586
- type: boolean_as_string
583
+ type: boolean
587
584
  description: |-
588
585
  False: Deactivate fixed time control
589
586
  True: Activate fixed time control
@@ -671,7 +668,7 @@ objects:
671
668
  Requires security code 2.
672
669
  arguments:
673
670
  status:
674
- type: boolean_as_string
671
+ type: boolean
675
672
  description: |-
676
673
  False: Force input
677
674
  True: Release input
@@ -679,11 +676,11 @@ objects:
679
676
  type: string
680
677
  description: Security code 2
681
678
  input:
682
- type: integer_as_string
679
+ type: integer
683
680
  description: Number of Input
684
681
  range: "[1-255]"
685
682
  inputValue:
686
- type: boolean_as_string
683
+ type: boolean
687
684
  description: |-
688
685
  False: input forced to False
689
686
  True: input forced to True
@@ -716,37 +713,37 @@ objects:
716
713
  type: string
717
714
  description: Security code 1
718
715
  year:
719
- type: integer_as_string
716
+ type: integer
720
717
  description: |-
721
718
  Changes internal clock. Note: UTC is used
722
719
  Year according to YYYY
723
720
  range: "[YYYY]"
724
721
  month:
725
- type: integer_as_string
722
+ type: integer
726
723
  description: |-
727
724
  Changes internal clock. Note: UTC is used
728
725
  Month according to MM (01-12)
729
726
  range: "[MM]"
730
727
  day:
731
- type: integer_as_string
728
+ type: integer
732
729
  description: |-
733
730
  Changes internal clock. Note: UTC is used
734
731
  Day in month according to DD (01-31)
735
732
  range: "[DD]"
736
733
  hour:
737
- type: integer_as_string
734
+ type: integer
738
735
  description: |-
739
736
  Changes internal clock. Note: UTC is used
740
737
  Hour according to HH (00-23)
741
738
  range: "[HH]"
742
739
  minute:
743
- type: integer_as_string
740
+ type: integer
744
741
  description: |-
745
742
  Changes internal clock. Note: UTC is used
746
743
  Minute according to MM (00-59)
747
744
  range: "[MM]"
748
745
  second:
749
- type: integer_as_string
746
+ type: integer
750
747
  description: |-
751
748
  Changes internal clock. Note: UTC is used
752
749
  Second according to SS (00-59)
@@ -765,7 +762,7 @@ objects:
765
762
  category: D
766
763
  arguments:
767
764
  timeplan:
768
- type: integer_as_string
765
+ type: integer
769
766
  description: Current time plan
770
767
  range: "[designation]"
771
768
  A0101:
@@ -814,7 +811,7 @@ objects:
814
811
  Requires security code 2
815
812
  arguments:
816
813
  status:
817
- type: boolean_as_string
814
+ type: boolean
818
815
  description: |-
819
816
  False: No command (default)
820
817
  True: Order a signal group to green
@@ -830,7 +827,7 @@ objects:
830
827
  Requires security code 2
831
828
  arguments:
832
829
  status:
833
- type: boolean_as_string
830
+ type: boolean
834
831
  description: |-
835
832
  False: No command (default)
836
833
  True: Order a signal group to red
@@ -863,7 +860,7 @@ objects:
863
860
  description: Detector forced on/off while detector error
864
861
  values: ['on','off']
865
862
  manual:
866
- type: boolean_as_string
863
+ type: boolean
867
864
  description: Manually controlled detector logic (True/False)
868
865
  A0302:
869
866
  description: |-
@@ -888,7 +885,7 @@ objects:
888
885
  description: Detector forced on/off while detector error
889
886
  values: ['on','off']
890
887
  manual:
891
- type: boolean_as_string
888
+ type: boolean
892
889
  description: Manually controlled detector logic (True/False)
893
890
  logicerror:
894
891
  type: string
@@ -909,7 +906,7 @@ objects:
909
906
  XML dateTime with a resolution of 3 decimal places. All time stamps
910
907
  in UTC. E.g. 2009-10-02T14:34:34.341Z
911
908
  vehicles:
912
- type: long_as_string
909
+ type: long
913
910
  description: Number of vehicles on a given detector logic (since last
914
911
  update)
915
912
  range: "[number]"
@@ -925,7 +922,7 @@ objects:
925
922
  XML dateTime with a resolution of 3 decimal places. All time stamps
926
923
  in UTC. E.g. 2009-10-02T14:34:34.341Z
927
924
  speed:
928
- type: integer_as_string
925
+ type: integer
929
926
  description: Average speed in km/h
930
927
  range: "[speed]"
931
928
  S0203:
@@ -940,7 +937,7 @@ objects:
940
937
  XML dateTime with a resolution of 3 decimal places. All time stamps
941
938
  in UTC. E.g. 2009-10-02T14:34:34.341Z
942
939
  occupancy:
943
- type: integer_as_string
940
+ type: integer
944
941
  description: Occupancy in percent (0-100%)
945
942
  range: "[0-100]"
946
943
  S0204:
@@ -955,39 +952,39 @@ objects:
955
952
  XML dateTime with a resolution of 3 decimal places. All time stamps
956
953
  in UTC. E.g. 2009-10-02T14:34:34.341Z
957
954
  P:
958
- type: long_as_string
955
+ type: long
959
956
  description: Number of cars
960
957
  range: "[number]"
961
958
  PS:
962
- type: long_as_string
959
+ type: long
963
960
  description: Number of cars with trailers
964
961
  range: "[number]"
965
962
  L:
966
- type: long_as_string
963
+ type: long
967
964
  description: Number of trucks
968
965
  range: "[number]"
969
966
  LS:
970
- type: long_as_string
967
+ type: long
971
968
  description: Number of trucks with trailers
972
969
  range: "[number]"
973
970
  B:
974
- type: long_as_string
971
+ type: long
975
972
  description: Number of busses
976
973
  range: "[number]"
977
974
  SP:
978
- type: long_as_string
975
+ type: long
979
976
  description: Number of trams
980
977
  range: "[number]"
981
978
  MC:
982
- type: long_as_string
979
+ type: long
983
980
  description: Number of motor cycles
984
981
  range: "[number]"
985
982
  C:
986
- type: long_as_string
983
+ type: long
987
984
  description: Number of bicycles
988
985
  range: "[number]"
989
986
  F:
990
- type: long_as_string
987
+ type: long
991
988
  description: Number of pedestrians
992
989
  range: "[number]"
993
990
  commands:
@@ -999,7 +996,7 @@ objects:
999
996
  Requires security code 2
1000
997
  arguments:
1001
998
  status:
1002
- type: boolean_as_string
999
+ type: boolean
1003
1000
  description: |-
1004
1001
  False: Deactivate manual control of detector logic
1005
1002
  True: Activate manual control of detector logic
@@ -1007,7 +1004,7 @@ objects:
1007
1004
  type: string
1008
1005
  description: Security code 2
1009
1006
  mode:
1010
- type: boolean_as_string
1007
+ type: boolean
1011
1008
  description: |-
1012
1009
  False: Deactivate detector logic
1013
1010
  True: Activate detector logic
@@ -188,10 +188,10 @@
188
188
  "commands" : {
189
189
  "M0001" : {
190
190
  "required" : {
191
- "intersection" : "integer_as_string",
192
- "securityCode" : "string",
191
+ "intersection" : "integer_list",
192
+ "securityCode" : "string_list",
193
193
  "status" : "string",
194
- "timeout" : "integer_as_string"
194
+ "timeout" : "integer_list"
195
195
  }
196
196
  },
197
197
  "M0002" : {
@@ -54,7 +54,7 @@
54
54
  "properties" : {
55
55
  "v" : {
56
56
  "description" : "Security code 2",
57
- "type" : "string"
57
+ "$ref" : "../defs/definitions.json#/string_list"
58
58
  }
59
59
  }
60
60
  }
@@ -71,7 +71,7 @@
71
71
  "properties" : {
72
72
  "v" : {
73
73
  "description" : "Time in minutes until controller automatically reverts to previous functional position.\n0=no automatic return",
74
- "$ref" : "../defs/definitions.json#/integer"
74
+ "$ref" : "../defs/definitions.json#/integer_list"
75
75
  }
76
76
  }
77
77
  }
@@ -87,8 +87,8 @@
87
87
  "then" : {
88
88
  "properties" : {
89
89
  "v" : {
90
- "description" : "Intersection number.\nCommand only applies to specified intersection. Other intersections remains in their respective operating mode(s).\n0: All intersections",
91
- "$ref" : "../defs/definitions.json#/integer"
90
+ "description" : "Intersection number",
91
+ "$ref" : "../defs/definitions.json#/integer_list"
92
92
  }
93
93
  }
94
94
  }