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
@@ -599,7 +596,7 @@ objects:
599
596
  Requires security code 2.
600
597
  arguments:
601
598
  status:
602
- type: boolean_as_string
599
+ type: boolean
603
600
  description: |-
604
601
  False: Force input
605
602
  True: Release input
@@ -607,11 +604,11 @@ objects:
607
604
  type: string
608
605
  description: Security code 2
609
606
  input:
610
- type: integer_as_string
607
+ type: integer
611
608
  description: Number of Input
612
609
  range: "[1-255]"
613
610
  inputValue:
614
- type: boolean_as_string
611
+ type: boolean
615
612
  description: |-
616
613
  False: input forced to False
617
614
  True: input forced to True
@@ -644,37 +641,37 @@ objects:
644
641
  type: string
645
642
  description: Security code 1
646
643
  year:
647
- type: integer_as_string
644
+ type: integer
648
645
  description: |-
649
646
  Changes internal clock. Note: UTC is used
650
647
  Year according to YYYY
651
648
  range: "[YYYY]"
652
649
  month:
653
- type: integer_as_string
650
+ type: integer
654
651
  description: |-
655
652
  Changes internal clock. Note: UTC is used
656
653
  Month according to MM (01-12)
657
654
  range: "[MM]"
658
655
  day:
659
- type: integer_as_string
656
+ type: integer
660
657
  description: |-
661
658
  Changes internal clock. Note: UTC is used
662
659
  Day in month according to DD (01-31)
663
660
  range: "[DD]"
664
661
  hour:
665
- type: integer_as_string
662
+ type: integer
666
663
  description: |-
667
664
  Changes internal clock. Note: UTC is used
668
665
  Hour according to HH (00-23)
669
666
  range: "[HH]"
670
667
  minute:
671
- type: integer_as_string
668
+ type: integer
672
669
  description: |-
673
670
  Changes internal clock. Note: UTC is used
674
671
  Minute according to MM (00-59)
675
672
  range: "[MM]"
676
673
  second:
677
- type: integer_as_string
674
+ type: integer
678
675
  description: |-
679
676
  Changes internal clock. Note: UTC is used
680
677
  Second according to SS (00-59)
@@ -693,7 +690,7 @@ objects:
693
690
  category: D
694
691
  arguments:
695
692
  timeplan:
696
- type: integer_as_string
693
+ type: integer
697
694
  description: Current time plan
698
695
  range: "[designation]"
699
696
  A0101:
@@ -754,7 +751,7 @@ objects:
754
751
  Time stamp for the most likely time for the signal group to go to green. If the signal group is green, it is the most likely time for the next green.
755
752
  Format according to W3C XML dateTime with a resolution of 3 decimal places. All time stamps in UTC. E.g. 2009-10-02T14:34:34.341Z
756
753
  ToGConfidence:
757
- type: integer_as_string
754
+ type: integer
758
755
  description: Confidence of the likelyToGEstimate. 0-100%
759
756
  range: "[0-100]"
760
757
  minToREstimate :
@@ -773,7 +770,7 @@ objects:
773
770
  Time stamp for the most likely time for the signal group to go to red. If the signal group is red, it is the most likely time for the next red.
774
771
  Format according to W3C XML dateTime with a resolution of 3 decimal places. All time stamps in UTC. E.g. 2009-10-02T14:34:34.341Z
775
772
  ToRConfidence:
776
- type: integer_as_string
773
+ type: integer
777
774
  description: Confidence of the likelyToREstimate. 0-100%
778
775
  range: "[0-100]"
779
776
  commands:
@@ -785,7 +782,7 @@ objects:
785
782
  Requires security code 2
786
783
  arguments:
787
784
  status:
788
- type: boolean_as_string
785
+ type: boolean
789
786
  description: |-
790
787
  False: No command (default)
791
788
  True: Order a signal group to green
@@ -801,7 +798,7 @@ objects:
801
798
  Requires security code 2
802
799
  arguments:
803
800
  status:
804
- type: boolean_as_string
801
+ type: boolean
805
802
  description: |-
806
803
  False: No command (default)
807
804
  True: Order a signal group to red
@@ -834,7 +831,7 @@ objects:
834
831
  description: Detector forced on/off while detector error
835
832
  values: ['on','off']
836
833
  manual:
837
- type: boolean_as_string
834
+ type: boolean
838
835
  description: Manually controlled detector logic (True/False)
839
836
  A0302:
840
837
  description: |-
@@ -859,7 +856,7 @@ objects:
859
856
  description: Detector forced on/off while detector error
860
857
  values: ['on','off']
861
858
  manual:
862
- type: boolean_as_string
859
+ type: boolean
863
860
  description: Manually controlled detector logic (True/False)
864
861
  logicerror:
865
862
  type: string
@@ -880,7 +877,7 @@ objects:
880
877
  XML dateTime with a resolution of 3 decimal places. All time stamps
881
878
  in UTC. E.g. 2009-10-02T14:34:34.341Z
882
879
  vehicles:
883
- type: long_as_string
880
+ type: long
884
881
  description: Number of vehicles on a given detector logic (since last
885
882
  update)
886
883
  range: "[number]"
@@ -896,7 +893,7 @@ objects:
896
893
  XML dateTime with a resolution of 3 decimal places. All time stamps
897
894
  in UTC. E.g. 2009-10-02T14:34:34.341Z
898
895
  speed:
899
- type: integer_as_string
896
+ type: integer
900
897
  description: Average speed in km/h
901
898
  range: "[speed]"
902
899
  S0203:
@@ -911,7 +908,7 @@ objects:
911
908
  XML dateTime with a resolution of 3 decimal places. All time stamps
912
909
  in UTC. E.g. 2009-10-02T14:34:34.341Z
913
910
  occupancy:
914
- type: integer_as_string
911
+ type: integer
915
912
  description: Occupancy in percent (0-100%)
916
913
  range: "[0-100]"
917
914
  S0204:
@@ -926,39 +923,39 @@ objects:
926
923
  XML dateTime with a resolution of 3 decimal places. All time stamps
927
924
  in UTC. E.g. 2009-10-02T14:34:34.341Z
928
925
  P:
929
- type: long_as_string
926
+ type: long
930
927
  description: Number of cars
931
928
  range: "[number]"
932
929
  PS:
933
- type: long_as_string
930
+ type: long
934
931
  description: Number of cars with trailers
935
932
  range: "[number]"
936
933
  L:
937
- type: long_as_string
934
+ type: long
938
935
  description: Number of trucks
939
936
  range: "[number]"
940
937
  LS:
941
- type: long_as_string
938
+ type: long
942
939
  description: Number of trucks with trailers
943
940
  range: "[number]"
944
941
  B:
945
- type: long_as_string
942
+ type: long
946
943
  description: Number of busses
947
944
  range: "[number]"
948
945
  SP:
949
- type: long_as_string
946
+ type: long
950
947
  description: Number of trams
951
948
  range: "[number]"
952
949
  MC:
953
- type: long_as_string
950
+ type: long
954
951
  description: Number of motor cycles
955
952
  range: "[number]"
956
953
  C:
957
- type: long_as_string
954
+ type: long
958
955
  description: Number of bicycles
959
956
  range: "[number]"
960
957
  F:
961
- type: long_as_string
958
+ type: long
962
959
  description: Number of pedestrians
963
960
  range: "[number]"
964
961
  commands:
@@ -970,7 +967,7 @@ objects:
970
967
  Requires security code 2
971
968
  arguments:
972
969
  status:
973
- type: boolean_as_string
970
+ type: boolean
974
971
  description: |-
975
972
  False: Deactivate manual control of detector logic
976
973
  True: Activate manual control of detector logic
@@ -978,7 +975,7 @@ objects:
978
975
  type: string
979
976
  description: Security code 2
980
977
  mode:
981
- type: boolean_as_string
978
+ type: boolean
982
979
  description: |-
983
980
  False: Deactivate detector logic
984
981
  True: Activate detector logic
@@ -200,10 +200,10 @@
200
200
  "commands" : {
201
201
  "M0001" : {
202
202
  "required" : {
203
- "intersection" : "integer_as_string",
204
- "securityCode" : "string",
203
+ "intersection" : "integer_list",
204
+ "securityCode" : "string_list",
205
205
  "status" : "string",
206
- "timeout" : "integer_as_string"
206
+ "timeout" : "integer_list"
207
207
  }
208
208
  },
209
209
  "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
  }