rsmp 0.48.1 → 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 (35) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/Gemfile.lock +3 -3
  4. data/Rakefile +25 -2
  5. data/lib/rsmp/convert/export/json_schema/index.rb +38 -17
  6. data/lib/rsmp/convert/export/json_schema.rb +29 -0
  7. data/lib/rsmp/version.rb +1 -1
  8. data/schemas/tlc/1.0.10/{sxl.yaml → source/sxl.yaml} +56 -56
  9. data/schemas/tlc/1.0.13/{sxl.yaml → source/sxl.yaml} +63 -63
  10. data/schemas/tlc/1.0.14/{sxl.yaml → source/sxl.yaml} +63 -63
  11. data/schemas/tlc/1.0.15/{sxl.yaml → source/sxl.yaml} +66 -66
  12. data/schemas/tlc/1.0.7/{sxl.yaml → source/sxl.yaml} +58 -58
  13. data/schemas/tlc/1.0.8/{sxl.yaml → source/sxl.yaml} +56 -56
  14. data/schemas/tlc/1.0.9/{sxl.yaml → source/sxl.yaml} +56 -56
  15. data/schemas/tlc/1.1.0/commands/M0022.json +8 -8
  16. data/schemas/tlc/1.1.0/{sxl.yaml → source/sxl.yaml} +74 -74
  17. data/schemas/tlc/1.1.0/statuses/S0033.json +2 -2
  18. data/schemas/tlc/1.1.0/sxl_index.json +10 -10
  19. data/schemas/tlc/1.2.0/commands/M0022.json +8 -8
  20. data/schemas/tlc/1.2.0/{sxl.yaml → source/sxl.yaml} +76 -76
  21. data/schemas/tlc/1.2.0/statuses/S0033.json +2 -2
  22. data/schemas/tlc/1.2.0/sxl_index.json +10 -10
  23. data/schemas/tlc/1.2.1/commands/M0022.json +8 -8
  24. data/schemas/tlc/1.2.1/{sxl.yaml → source/sxl.yaml} +76 -76
  25. data/schemas/tlc/1.2.1/statuses/S0033.json +2 -2
  26. data/schemas/tlc/1.2.1/sxl_index.json +10 -10
  27. data/schemas/tlc/1.3.0/commands/command_requests.json +0 -16
  28. data/schemas/tlc/1.3.0/{sxl.yaml → source/sxl.yaml} +1 -0
  29. data/schemas/tlc/1.3.0/sxl_index.json +1 -1
  30. metadata +12 -17
  31. data/schemas/tlc/1.0.8/statuses/S0025.json +0 -181
  32. data/schemas/tlc/1.0.9/statuses/S0025.json +0 -181
  33. data/schemas/tlc/1.2.0/statuses/S0018.json +0 -61
  34. data/schemas/tlc/1.2.1/statuses/S0018.json +0 -61
  35. 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:
@@ -485,7 +485,7 @@ objects:
485
485
  Requires security code 2
486
486
  arguments:
487
487
  status:
488
- type: boolean_as_string
488
+ type: boolean
489
489
  description: |-
490
490
  False: Controller uses time plan according to programming
491
491
  True: Controller uses time plan according to command
@@ -493,7 +493,7 @@ objects:
493
493
  type: string
494
494
  description: Security code 2
495
495
  timeplan:
496
- type: integer_as_string
496
+ type: integer
497
497
  description: designation of time plan
498
498
  range: "[1-255]"
499
499
  command: setPlan
@@ -505,7 +505,7 @@ objects:
505
505
  Requires security code 2
506
506
  arguments:
507
507
  status:
508
- type: boolean_as_string
508
+ type: boolean
509
509
  description: |-
510
510
  False: Controller uses traffic situation according to own programming
511
511
  True: Controller uses traffic situation according to command
@@ -513,7 +513,7 @@ objects:
513
513
  type: string
514
514
  description: Security code 2
515
515
  traficsituation:
516
- type: integer_as_string
516
+ type: integer
517
517
  description: designation of traficsituation
518
518
  range: "[1-255]"
519
519
  command: setTrafficSituation
@@ -524,7 +524,7 @@ objects:
524
524
  Requires security code 2
525
525
  arguments:
526
526
  status:
527
- type: boolean_as_string
527
+ type: boolean
528
528
  description: 'True: Restart controller'
529
529
  securityCode:
530
530
  type: string
@@ -538,7 +538,7 @@ objects:
538
538
  Requires security code 2.
539
539
  arguments:
540
540
  status:
541
- type: boolean_as_string
541
+ type: boolean
542
542
  description: |-
543
543
  False: Activate emergency route
544
544
  True: Deactivate emergency route
@@ -546,7 +546,7 @@ objects:
546
546
  type: string
547
547
  description: Security code 2
548
548
  emergencyroute:
549
- type: integer_as_string
549
+ type: integer
550
550
  description: Number of emergency route
551
551
  range: "[1-255]"
552
552
  command: setEmergency
@@ -560,7 +560,7 @@ objects:
560
560
  Requires security code 2.
561
561
  arguments:
562
562
  status:
563
- type: boolean_as_string
563
+ type: boolean
564
564
  description: |-
565
565
  False: Deactivate input
566
566
  True: Activate input
@@ -568,7 +568,7 @@ objects:
568
568
  type: string
569
569
  description: Security code 2
570
570
  input:
571
- type: integer_as_string
571
+ type: integer
572
572
  description: Number of Input
573
573
  range: "[1-255]"
574
574
  command: setInput
@@ -580,7 +580,7 @@ objects:
580
580
  Requires security code 2.
581
581
  arguments:
582
582
  status:
583
- type: boolean_as_string
583
+ type: boolean
584
584
  description: |-
585
585
  False: Deactivate fixed time control
586
586
  True: Activate fixed time control
@@ -596,7 +596,7 @@ objects:
596
596
  Requires security code 2.
597
597
  arguments:
598
598
  status:
599
- type: boolean_as_string
599
+ type: boolean
600
600
  description: |-
601
601
  False: Force input
602
602
  True: Release input
@@ -604,11 +604,11 @@ objects:
604
604
  type: string
605
605
  description: Security code 2
606
606
  input:
607
- type: integer_as_string
607
+ type: integer
608
608
  description: Number of Input
609
609
  range: "[1-255]"
610
610
  inputValue:
611
- type: boolean_as_string
611
+ type: boolean
612
612
  description: |-
613
613
  False: input forced to False
614
614
  True: input forced to True
@@ -641,37 +641,37 @@ objects:
641
641
  type: string
642
642
  description: Security code 1
643
643
  year:
644
- type: integer_as_string
644
+ type: integer
645
645
  description: |-
646
646
  Changes internal clock. Note: UTC is used
647
647
  Year according to YYYY
648
648
  range: "[YYYY]"
649
649
  month:
650
- type: integer_as_string
650
+ type: integer
651
651
  description: |-
652
652
  Changes internal clock. Note: UTC is used
653
653
  Month according to MM (01-12)
654
654
  range: "[MM]"
655
655
  day:
656
- type: integer_as_string
656
+ type: integer
657
657
  description: |-
658
658
  Changes internal clock. Note: UTC is used
659
659
  Day in month according to DD (01-31)
660
660
  range: "[DD]"
661
661
  hour:
662
- type: integer_as_string
662
+ type: integer
663
663
  description: |-
664
664
  Changes internal clock. Note: UTC is used
665
665
  Hour according to HH (00-23)
666
666
  range: "[HH]"
667
667
  minute:
668
- type: integer_as_string
668
+ type: integer
669
669
  description: |-
670
670
  Changes internal clock. Note: UTC is used
671
671
  Minute according to MM (00-59)
672
672
  range: "[MM]"
673
673
  second:
674
- type: integer_as_string
674
+ type: integer
675
675
  description: |-
676
676
  Changes internal clock. Note: UTC is used
677
677
  Second according to SS (00-59)
@@ -690,7 +690,7 @@ objects:
690
690
  category: D
691
691
  arguments:
692
692
  timeplan:
693
- type: integer_as_string
693
+ type: integer
694
694
  description: Current time plan
695
695
  range: "[designation]"
696
696
  A0101:
@@ -751,7 +751,7 @@ objects:
751
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.
752
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
753
753
  ToGConfidence:
754
- type: integer_as_string
754
+ type: integer
755
755
  description: Confidence of the likelyToGEstimate. 0-100%
756
756
  range: "[0-100]"
757
757
  minToREstimate :
@@ -770,7 +770,7 @@ objects:
770
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.
771
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
772
772
  ToRConfidence:
773
- type: integer_as_string
773
+ type: integer
774
774
  description: Confidence of the likelyToREstimate. 0-100%
775
775
  range: "[0-100]"
776
776
  commands:
@@ -782,7 +782,7 @@ objects:
782
782
  Requires security code 2
783
783
  arguments:
784
784
  status:
785
- type: boolean_as_string
785
+ type: boolean
786
786
  description: |-
787
787
  False: No command (default)
788
788
  True: Order a signal group to green
@@ -798,7 +798,7 @@ objects:
798
798
  Requires security code 2
799
799
  arguments:
800
800
  status:
801
- type: boolean_as_string
801
+ type: boolean
802
802
  description: |-
803
803
  False: No command (default)
804
804
  True: Order a signal group to red
@@ -831,7 +831,7 @@ objects:
831
831
  description: Detector forced on/off while detector error
832
832
  values: ['on','off']
833
833
  manual:
834
- type: boolean_as_string
834
+ type: boolean
835
835
  description: Manually controlled detector logic (True/False)
836
836
  A0302:
837
837
  description: |-
@@ -856,7 +856,7 @@ objects:
856
856
  description: Detector forced on/off while detector error
857
857
  values: ['on','off']
858
858
  manual:
859
- type: boolean_as_string
859
+ type: boolean
860
860
  description: Manually controlled detector logic (True/False)
861
861
  logicerror:
862
862
  type: string
@@ -877,7 +877,7 @@ objects:
877
877
  XML dateTime with a resolution of 3 decimal places. All time stamps
878
878
  in UTC. E.g. 2009-10-02T14:34:34.341Z
879
879
  vehicles:
880
- type: long_as_string
880
+ type: long
881
881
  description: Number of vehicles on a given detector logic (since last
882
882
  update)
883
883
  range: "[number]"
@@ -893,7 +893,7 @@ objects:
893
893
  XML dateTime with a resolution of 3 decimal places. All time stamps
894
894
  in UTC. E.g. 2009-10-02T14:34:34.341Z
895
895
  speed:
896
- type: integer_as_string
896
+ type: integer
897
897
  description: Average speed in km/h
898
898
  range: "[speed]"
899
899
  S0203:
@@ -908,7 +908,7 @@ objects:
908
908
  XML dateTime with a resolution of 3 decimal places. All time stamps
909
909
  in UTC. E.g. 2009-10-02T14:34:34.341Z
910
910
  occupancy:
911
- type: integer_as_string
911
+ type: integer
912
912
  description: Occupancy in percent (0-100%)
913
913
  range: "[0-100]"
914
914
  S0204:
@@ -923,39 +923,39 @@ objects:
923
923
  XML dateTime with a resolution of 3 decimal places. All time stamps
924
924
  in UTC. E.g. 2009-10-02T14:34:34.341Z
925
925
  P:
926
- type: long_as_string
926
+ type: long
927
927
  description: Number of cars
928
928
  range: "[number]"
929
929
  PS:
930
- type: long_as_string
930
+ type: long
931
931
  description: Number of cars with trailers
932
932
  range: "[number]"
933
933
  L:
934
- type: long_as_string
934
+ type: long
935
935
  description: Number of trucks
936
936
  range: "[number]"
937
937
  LS:
938
- type: long_as_string
938
+ type: long
939
939
  description: Number of trucks with trailers
940
940
  range: "[number]"
941
941
  B:
942
- type: long_as_string
942
+ type: long
943
943
  description: Number of busses
944
944
  range: "[number]"
945
945
  SP:
946
- type: long_as_string
946
+ type: long
947
947
  description: Number of trams
948
948
  range: "[number]"
949
949
  MC:
950
- type: long_as_string
950
+ type: long
951
951
  description: Number of motor cycles
952
952
  range: "[number]"
953
953
  C:
954
- type: long_as_string
954
+ type: long
955
955
  description: Number of bicycles
956
956
  range: "[number]"
957
957
  F:
958
- type: long_as_string
958
+ type: long
959
959
  description: Number of pedestrians
960
960
  range: "[number]"
961
961
  commands:
@@ -967,7 +967,7 @@ objects:
967
967
  Requires security code 2
968
968
  arguments:
969
969
  status:
970
- type: boolean_as_string
970
+ type: boolean
971
971
  description: |-
972
972
  False: Deactivate manual control of detector logic
973
973
  True: Activate manual control of detector logic
@@ -975,7 +975,7 @@ objects:
975
975
  type: string
976
976
  description: Security code 2
977
977
  mode:
978
- type: boolean_as_string
978
+ type: boolean
979
979
  description: |-
980
980
  False: Deactivate detector logic
981
981
  True: Activate detector logic