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:
@@ -550,29 +550,29 @@ objects:
550
550
  Provides diagnostic information about the current date and time set in the controller.
551
551
  arguments:
552
552
  year:
553
- type: integer_as_string
553
+ type: integer
554
554
  description: 'Year according to format YYYY. NOTE: UTC is used'
555
555
  range: YYYY
556
556
  month:
557
- type: integer_as_string
557
+ type: integer
558
558
  description: 'Month (01-12) according to format MM. Note: UTC is used'
559
559
  range: MM
560
560
  day:
561
- type: integer_as_string
561
+ type: integer
562
562
  description: 'Day of month (01-31) according to format DD. Note: UTC
563
563
  is used'
564
564
  range: DD
565
565
  hour:
566
- type: integer_as_string
566
+ type: integer
567
567
  description: 'Hour of day (00-23) according to format DD. Note: UTC is
568
568
  used'
569
569
  range: HH
570
570
  minute:
571
- type: integer_as_string
571
+ type: integer
572
572
  description: 'Minute (00-59) according to format MM. Note: UTC is used'
573
573
  range: MM
574
574
  second:
575
- type: integer_as_string
575
+ type: integer
576
576
  description: 'Second (00-59) according to format SS. Note: UTC is used'
577
577
  range: SS
578
578
  commands:
@@ -590,21 +590,18 @@ objects:
590
590
  YellowFlash: Enables yellow flash
591
591
  Dark: Enables dark mode
592
592
  securityCode:
593
- type: string
593
+ type: string_list
594
594
  description: Security code 2
595
595
  timeout:
596
- type: integer_as_string
596
+ type: integer_list
597
597
  description: |-
598
598
  Time in minutes until controller automatically reverts to previous functional position.
599
599
  0=no automatic return
600
600
  min: 0
601
601
  max: 1440
602
602
  intersection:
603
- type: integer_as_string
604
- description: |-
605
- Intersection number.
606
- Command only applies to specified intersection. Other intersections remains in their respective operating mode(s).
607
- 0: All intersections
603
+ type: integer_list
604
+ description: Intersection number
608
605
  min: 0
609
606
  max: 255
610
607
  command: setValue
@@ -617,7 +614,7 @@ objects:
617
614
  Requires security code 2
618
615
  arguments:
619
616
  status:
620
- type: boolean_as_string
617
+ type: boolean
621
618
  description: |-
622
619
  False: Controller uses time plan according to programming
623
620
  True: Controller uses time plan according to command
@@ -625,7 +622,7 @@ objects:
625
622
  type: string
626
623
  description: Security code 2
627
624
  timeplan:
628
- type: integer_as_string
625
+ type: integer
629
626
  description: designation of time plan
630
627
  range: "[1-255]"
631
628
  command: setPlan
@@ -637,7 +634,7 @@ objects:
637
634
  Requires security code 2
638
635
  arguments:
639
636
  status:
640
- type: boolean_as_string
637
+ type: boolean
641
638
  description: |-
642
639
  False: Controller uses traffic situation according to own programming
643
640
  True: Controller uses traffic situation according to command
@@ -645,7 +642,7 @@ objects:
645
642
  type: string
646
643
  description: Security code 2
647
644
  traficsituation:
648
- type: integer_as_string
645
+ type: integer
649
646
  description: designation of traficsituation
650
647
  range: "[1-255]"
651
648
  command: setTrafficSituation
@@ -656,7 +653,7 @@ objects:
656
653
  Requires security code 2
657
654
  arguments:
658
655
  status:
659
- type: boolean_as_string
656
+ type: boolean
660
657
  description: 'True: Restart controller'
661
658
  securityCode:
662
659
  type: string
@@ -670,7 +667,7 @@ objects:
670
667
  Requires security code 2.
671
668
  arguments:
672
669
  status:
673
- type: boolean_as_string
670
+ type: boolean
674
671
  description: |-
675
672
  False: Activate emergency route
676
673
  True: Deactivate emergency route
@@ -678,7 +675,7 @@ objects:
678
675
  type: string
679
676
  description: Security code 2
680
677
  emergencyroute:
681
- type: integer_as_string
678
+ type: integer
682
679
  description: Number of emergency route
683
680
  range: "[1-255]"
684
681
  command: setEmergency
@@ -692,7 +689,7 @@ objects:
692
689
  Requires security code 2.
693
690
  arguments:
694
691
  status:
695
- type: boolean_as_string
692
+ type: boolean
696
693
  description: |-
697
694
  False: Deactivate input
698
695
  True: Activate input
@@ -700,7 +697,7 @@ objects:
700
697
  type: string
701
698
  description: Security code 2
702
699
  input:
703
- type: integer_as_string
700
+ type: integer
704
701
  description: Number of Input
705
702
  range: "[1-255]"
706
703
  command: setInput
@@ -712,7 +709,7 @@ objects:
712
709
  Requires security code 2.
713
710
  arguments:
714
711
  status:
715
- type: boolean_as_string
712
+ type: boolean
716
713
  description: |-
717
714
  False: Deactivate fixed time control
718
715
  True: Activate fixed time control
@@ -800,7 +797,7 @@ objects:
800
797
  Requires security code 2
801
798
  arguments:
802
799
  plan:
803
- type: integer_as_string
800
+ type: integer
804
801
  description: Plan to be changed
805
802
  range: "[0-255]"
806
803
  status:
@@ -827,11 +824,11 @@ objects:
827
824
  Requires security code 2.
828
825
  arguments:
829
826
  status:
830
- type: integer_as_string
827
+ type: integer
831
828
  description: Set offset time in seconds
832
829
  range: "[0-255]"
833
830
  plan:
834
- type: integer_as_string
831
+ type: integer
835
832
  description: Time plan nr
836
833
  range: "[0-255]"
837
834
  securityCode:
@@ -911,11 +908,11 @@ objects:
911
908
  Requires security code 2.
912
909
  arguments:
913
910
  status:
914
- type: integer_as_string
911
+ type: integer
915
912
  description: Set cycle time in seconds
916
913
  range: "[1-255]"
917
914
  plan:
918
- type: integer_as_string
915
+ type: integer
919
916
  description: Time plan nr
920
917
  range: "[0-255]"
921
918
  securityCode:
@@ -930,7 +927,7 @@ objects:
930
927
  Requires security code 2.
931
928
  arguments:
932
929
  status:
933
- type: boolean_as_string
930
+ type: boolean
934
931
  description: |-
935
932
  False: Force input
936
933
  True: Release input
@@ -938,11 +935,11 @@ objects:
938
935
  type: string
939
936
  description: Security code 2
940
937
  input:
941
- type: integer_as_string
938
+ type: integer
942
939
  description: Number of Input
943
940
  range: "[1-255]"
944
941
  inputValue:
945
- type: boolean_as_string
942
+ type: boolean
946
943
  description: |-
947
944
  False: input forced to False
948
945
  True: input forced to True
@@ -975,37 +972,37 @@ objects:
975
972
  type: string
976
973
  description: Security code 1
977
974
  year:
978
- type: integer_as_string
975
+ type: integer
979
976
  description: |-
980
977
  Changes internal clock. Note: UTC is used
981
978
  Year according to YYYY
982
979
  range: "[YYYY]"
983
980
  month:
984
- type: integer_as_string
981
+ type: integer
985
982
  description: |-
986
983
  Changes internal clock. Note: UTC is used
987
984
  Month according to MM (01-12)
988
985
  range: "[MM]"
989
986
  day:
990
- type: integer_as_string
987
+ type: integer
991
988
  description: |-
992
989
  Changes internal clock. Note: UTC is used
993
990
  Day in month according to DD (01-31)
994
991
  range: "[DD]"
995
992
  hour:
996
- type: integer_as_string
993
+ type: integer
997
994
  description: |-
998
995
  Changes internal clock. Note: UTC is used
999
996
  Hour according to HH (00-23)
1000
997
  range: "[HH]"
1001
998
  minute:
1002
- type: integer_as_string
999
+ type: integer
1003
1000
  description: |-
1004
1001
  Changes internal clock. Note: UTC is used
1005
1002
  Minute according to MM (00-59)
1006
1003
  range: "[MM]"
1007
1004
  second:
1008
- type: integer_as_string
1005
+ type: integer
1009
1006
  description: |-
1010
1007
  Changes internal clock. Note: UTC is used
1011
1008
  Second according to SS (00-59)
@@ -1024,7 +1021,7 @@ objects:
1024
1021
  category: D
1025
1022
  arguments:
1026
1023
  timeplan:
1027
- type: integer_as_string
1024
+ type: integer
1028
1025
  description: Current time plan
1029
1026
  range: "[designation]"
1030
1027
  A0101:
@@ -1085,7 +1082,7 @@ objects:
1085
1082
  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.
1086
1083
  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
1087
1084
  ToGConfidence:
1088
- type: integer_as_string
1085
+ type: integer
1089
1086
  description: Confidence of the likelyToGEstimate. 0-100%
1090
1087
  range: "[0-100]"
1091
1088
  minToREstimate :
@@ -1104,7 +1101,7 @@ objects:
1104
1101
  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.
1105
1102
  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
1106
1103
  ToRConfidence:
1107
- type: integer_as_string
1104
+ type: integer
1108
1105
  description: Confidence of the likelyToREstimate. 0-100%
1109
1106
  range: "[0-100]"
1110
1107
  commands:
@@ -1116,7 +1113,7 @@ objects:
1116
1113
  Requires security code 2
1117
1114
  arguments:
1118
1115
  status:
1119
- type: boolean_as_string
1116
+ type: boolean
1120
1117
  description: |-
1121
1118
  False: No command (default)
1122
1119
  True: Order a signal group to green
@@ -1132,7 +1129,7 @@ objects:
1132
1129
  Requires security code 2
1133
1130
  arguments:
1134
1131
  status:
1135
- type: boolean_as_string
1132
+ type: boolean
1136
1133
  description: |-
1137
1134
  False: No command (default)
1138
1135
  True: Order a signal group to red
@@ -1165,7 +1162,7 @@ objects:
1165
1162
  description: Detector forced on/off while detector error
1166
1163
  values: ['on','off']
1167
1164
  manual:
1168
- type: boolean_as_string
1165
+ type: boolean
1169
1166
  description: Manually controlled detector logic (True/False)
1170
1167
  A0302:
1171
1168
  description: |-
@@ -1190,7 +1187,7 @@ objects:
1190
1187
  description: Detector forced on/off while detector error
1191
1188
  values: ['on','off']
1192
1189
  manual:
1193
- type: boolean_as_string
1190
+ type: boolean
1194
1191
  description: Manually controlled detector logic (True/False)
1195
1192
  logicerror:
1196
1193
  type: string
@@ -1211,7 +1208,7 @@ objects:
1211
1208
  XML dateTime with a resolution of 3 decimal places. All time stamps
1212
1209
  in UTC. E.g. 2009-10-02T14:34:34.341Z
1213
1210
  vehicles:
1214
- type: long_as_string
1211
+ type: long
1215
1212
  description: Number of vehicles on a given detector logic (since last
1216
1213
  update)
1217
1214
  range: "[number]"
@@ -1227,7 +1224,7 @@ objects:
1227
1224
  XML dateTime with a resolution of 3 decimal places. All time stamps
1228
1225
  in UTC. E.g. 2009-10-02T14:34:34.341Z
1229
1226
  speed:
1230
- type: integer_as_string
1227
+ type: integer
1231
1228
  description: Average speed in km/h
1232
1229
  range: "[speed]"
1233
1230
  S0203:
@@ -1242,7 +1239,7 @@ objects:
1242
1239
  XML dateTime with a resolution of 3 decimal places. All time stamps
1243
1240
  in UTC. E.g. 2009-10-02T14:34:34.341Z
1244
1241
  occupancy:
1245
- type: integer_as_string
1242
+ type: integer
1246
1243
  description: Occupancy in percent (0-100%)
1247
1244
  range: "[0-100]"
1248
1245
  S0204:
@@ -1257,39 +1254,39 @@ objects:
1257
1254
  XML dateTime with a resolution of 3 decimal places. All time stamps
1258
1255
  in UTC. E.g. 2009-10-02T14:34:34.341Z
1259
1256
  P:
1260
- type: long_as_string
1257
+ type: long
1261
1258
  description: Number of cars
1262
1259
  range: "[number]"
1263
1260
  PS:
1264
- type: long_as_string
1261
+ type: long
1265
1262
  description: Number of cars with trailers
1266
1263
  range: "[number]"
1267
1264
  L:
1268
- type: long_as_string
1265
+ type: long
1269
1266
  description: Number of trucks
1270
1267
  range: "[number]"
1271
1268
  LS:
1272
- type: long_as_string
1269
+ type: long
1273
1270
  description: Number of trucks with trailers
1274
1271
  range: "[number]"
1275
1272
  B:
1276
- type: long_as_string
1273
+ type: long
1277
1274
  description: Number of busses
1278
1275
  range: "[number]"
1279
1276
  SP:
1280
- type: long_as_string
1277
+ type: long
1281
1278
  description: Number of trams
1282
1279
  range: "[number]"
1283
1280
  MC:
1284
- type: long_as_string
1281
+ type: long
1285
1282
  description: Number of motor cycles
1286
1283
  range: "[number]"
1287
1284
  C:
1288
- type: long_as_string
1285
+ type: long
1289
1286
  description: Number of bicycles
1290
1287
  range: "[number]"
1291
1288
  F:
1292
- type: long_as_string
1289
+ type: long
1293
1290
  description: Number of pedestrians
1294
1291
  range: "[number]"
1295
1292
  commands:
@@ -1301,7 +1298,7 @@ objects:
1301
1298
  Requires security code 2
1302
1299
  arguments:
1303
1300
  status:
1304
- type: boolean_as_string
1301
+ type: boolean
1305
1302
  description: |-
1306
1303
  False: Deactivate manual control of detector logic
1307
1304
  True: Activate manual control of detector logic
@@ -1309,7 +1306,7 @@ objects:
1309
1306
  type: string
1310
1307
  description: Security code 2
1311
1308
  mode:
1312
- type: boolean_as_string
1309
+ type: boolean
1313
1310
  description: |-
1314
1311
  False: Deactivate detector logic
1315
1312
  True: Activate detector logic
@@ -235,10 +235,10 @@
235
235
  "commands" : {
236
236
  "M0001" : {
237
237
  "required" : {
238
- "intersection" : "integer_as_string",
239
- "securityCode" : "string",
238
+ "intersection" : "integer_list",
239
+ "securityCode" : "string_list",
240
240
  "status" : "string",
241
- "timeout" : "integer_as_string"
241
+ "timeout" : "integer_list"
242
242
  }
243
243
  },
244
244
  "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
  }