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
  S0205:
@@ -728,21 +728,18 @@ objects:
728
728
  YellowFlash: Enables yellow flash
729
729
  Dark: Enables dark mode
730
730
  securityCode:
731
- type: string
731
+ type: string_list
732
732
  description: Security code 2
733
733
  timeout:
734
- type: integer_as_string
734
+ type: integer_list
735
735
  description: |-
736
736
  Time in minutes until controller automatically reverts to previous functional position.
737
737
  0=no automatic return
738
738
  min: 0
739
739
  max: 1440
740
740
  intersection:
741
- type: integer_as_string
742
- description: |-
743
- Intersection number.
744
- Command only applies to specified intersection. Other intersections remains in their respective operating mode(s).
745
- 0: All intersections
741
+ type: integer_list
742
+ description: Intersection number
746
743
  min: 0
747
744
  max: 255
748
745
  command: setValue
@@ -755,7 +752,7 @@ objects:
755
752
  Requires security code 2
756
753
  arguments:
757
754
  status:
758
- type: boolean_as_string
755
+ type: boolean
759
756
  description: |-
760
757
  False: Controller uses time plan according to programming
761
758
  True: Controller uses time plan according to command
@@ -763,7 +760,7 @@ objects:
763
760
  type: string
764
761
  description: Security code 2
765
762
  timeplan:
766
- type: integer_as_string
763
+ type: integer
767
764
  description: designation of time plan
768
765
  range: "[1-255]"
769
766
  command: setPlan
@@ -775,7 +772,7 @@ objects:
775
772
  Requires security code 2
776
773
  arguments:
777
774
  status:
778
- type: boolean_as_string
775
+ type: boolean
779
776
  description: |-
780
777
  False: Controller uses traffic situation according to own programming
781
778
  True: Controller uses traffic situation according to command
@@ -783,7 +780,7 @@ objects:
783
780
  type: string
784
781
  description: Security code 2
785
782
  traficsituation:
786
- type: integer_as_string
783
+ type: integer
787
784
  description: designation of traficsituation
788
785
  range: "[1-255]"
789
786
  command: setTrafficSituation
@@ -794,7 +791,7 @@ objects:
794
791
  Requires security code 2
795
792
  arguments:
796
793
  status:
797
- type: boolean_as_string
794
+ type: boolean
798
795
  description: 'True: Restart controller'
799
796
  securityCode:
800
797
  type: string
@@ -808,7 +805,7 @@ objects:
808
805
  Requires security code 2.
809
806
  arguments:
810
807
  status:
811
- type: boolean_as_string
808
+ type: boolean
812
809
  description: |-
813
810
  False: Activate emergency route
814
811
  True: Deactivate emergency route
@@ -816,7 +813,7 @@ objects:
816
813
  type: string
817
814
  description: Security code 2
818
815
  emergencyroute:
819
- type: integer_as_string
816
+ type: integer
820
817
  description: Number of emergency route
821
818
  range: "[1-255]"
822
819
  command: setEmergency
@@ -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: Deactivate input
836
833
  True: Activate input
@@ -838,7 +835,7 @@ objects:
838
835
  type: string
839
836
  description: Security code 2
840
837
  input:
841
- type: integer_as_string
838
+ type: integer
842
839
  description: Number of Input
843
840
  range: "[1-255]"
844
841
  command: setInput
@@ -850,7 +847,7 @@ objects:
850
847
  Requires security code 2.
851
848
  arguments:
852
849
  status:
853
- type: boolean_as_string
850
+ type: boolean
854
851
  description: |-
855
852
  False: Deactivate fixed time control
856
853
  True: Activate fixed time control
@@ -938,7 +935,7 @@ objects:
938
935
  Requires security code 2
939
936
  arguments:
940
937
  plan:
941
- type: integer_as_string
938
+ type: integer
942
939
  description: Plan to be changed
943
940
  range: "[0-255]"
944
941
  status:
@@ -965,11 +962,11 @@ objects:
965
962
  Requires security code 2.
966
963
  arguments:
967
964
  status:
968
- type: integer_as_string
965
+ type: integer
969
966
  description: Set offset time in seconds
970
967
  range: "[0-255]"
971
968
  plan:
972
- type: integer_as_string
969
+ type: integer
973
970
  description: Time plan nr
974
971
  range: "[0-255]"
975
972
  securityCode:
@@ -1049,11 +1046,11 @@ objects:
1049
1046
  Requires security code 2.
1050
1047
  arguments:
1051
1048
  status:
1052
- type: integer_as_string
1049
+ type: integer
1053
1050
  description: Set cycle time in seconds
1054
1051
  range: "[1-255]"
1055
1052
  plan:
1056
- type: integer_as_string
1053
+ type: integer
1057
1054
  description: Time plan nr
1058
1055
  range: "[0-255]"
1059
1056
  securityCode:
@@ -1068,7 +1065,7 @@ objects:
1068
1065
  Requires security code 2.
1069
1066
  arguments:
1070
1067
  status:
1071
- type: boolean_as_string
1068
+ type: boolean
1072
1069
  description: |-
1073
1070
  False: Force input
1074
1071
  True: Release input
@@ -1076,11 +1073,11 @@ objects:
1076
1073
  type: string
1077
1074
  description: Security code 2
1078
1075
  input:
1079
- type: integer_as_string
1076
+ type: integer
1080
1077
  description: Number of Input
1081
1078
  range: "[1-255]"
1082
1079
  inputValue:
1083
- type: boolean_as_string
1080
+ type: boolean
1084
1081
  description: |-
1085
1082
  False: input forced to False
1086
1083
  True: input forced to True
@@ -1113,37 +1110,37 @@ objects:
1113
1110
  type: string
1114
1111
  description: Security code 1
1115
1112
  year:
1116
- type: integer_as_string
1113
+ type: integer
1117
1114
  description: |-
1118
1115
  Changes internal clock. Note: UTC is used
1119
1116
  Year according to YYYY
1120
1117
  range: "[YYYY]"
1121
1118
  month:
1122
- type: integer_as_string
1119
+ type: integer
1123
1120
  description: |-
1124
1121
  Changes internal clock. Note: UTC is used
1125
1122
  Month according to MM (01-12)
1126
1123
  range: "[MM]"
1127
1124
  day:
1128
- type: integer_as_string
1125
+ type: integer
1129
1126
  description: |-
1130
1127
  Changes internal clock. Note: UTC is used
1131
1128
  Day in month according to DD (01-31)
1132
1129
  range: "[DD]"
1133
1130
  hour:
1134
- type: integer_as_string
1131
+ type: integer
1135
1132
  description: |-
1136
1133
  Changes internal clock. Note: UTC is used
1137
1134
  Hour according to HH (00-23)
1138
1135
  range: "[HH]"
1139
1136
  minute:
1140
- type: integer_as_string
1137
+ type: integer
1141
1138
  description: |-
1142
1139
  Changes internal clock. Note: UTC is used
1143
1140
  Minute according to MM (00-59)
1144
1141
  range: "[MM]"
1145
1142
  second:
1146
- type: integer_as_string
1143
+ type: integer
1147
1144
  description: |-
1148
1145
  Changes internal clock. Note: UTC is used
1149
1146
  Second according to SS (00-59)
@@ -1162,7 +1159,7 @@ objects:
1162
1159
  category: D
1163
1160
  arguments:
1164
1161
  timeplan:
1165
- type: integer_as_string
1162
+ type: integer
1166
1163
  description: Current time plan
1167
1164
  range: "[designation]"
1168
1165
  A0101:
@@ -1223,7 +1220,7 @@ objects:
1223
1220
  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.
1224
1221
  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
1225
1222
  ToGConfidence:
1226
- type: integer_as_string
1223
+ type: integer
1227
1224
  description: Confidence of the likelyToGEstimate. 0-100%
1228
1225
  range: "[0-100]"
1229
1226
  minToREstimate :
@@ -1242,7 +1239,7 @@ objects:
1242
1239
  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.
1243
1240
  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
1244
1241
  ToRConfidence:
1245
- type: integer_as_string
1242
+ type: integer
1246
1243
  description: Confidence of the likelyToREstimate. 0-100%
1247
1244
  range: "[0-100]"
1248
1245
  commands:
@@ -1254,7 +1251,7 @@ objects:
1254
1251
  Requires security code 2
1255
1252
  arguments:
1256
1253
  status:
1257
- type: boolean_as_string
1254
+ type: boolean
1258
1255
  description: |-
1259
1256
  False: No command (default)
1260
1257
  True: Order a signal group to green
@@ -1270,7 +1267,7 @@ objects:
1270
1267
  Requires security code 2
1271
1268
  arguments:
1272
1269
  status:
1273
- type: boolean_as_string
1270
+ type: boolean
1274
1271
  description: |-
1275
1272
  False: No command (default)
1276
1273
  True: Order a signal group to red
@@ -1303,7 +1300,7 @@ objects:
1303
1300
  description: Detector forced on/off while detector error
1304
1301
  values: ['on','off']
1305
1302
  manual:
1306
- type: boolean_as_string
1303
+ type: boolean
1307
1304
  description: Manually controlled detector logic (True/False)
1308
1305
  A0302:
1309
1306
  description: |-
@@ -1328,7 +1325,7 @@ objects:
1328
1325
  description: Detector forced on/off while detector error
1329
1326
  values: ['on','off']
1330
1327
  manual:
1331
- type: boolean_as_string
1328
+ type: boolean
1332
1329
  description: Manually controlled detector logic (True/False)
1333
1330
  logicerror:
1334
1331
  type: string
@@ -1349,7 +1346,7 @@ objects:
1349
1346
  XML dateTime with a resolution of 3 decimal places. All time stamps
1350
1347
  in UTC. E.g. 2009-10-02T14:34:34.341Z
1351
1348
  vehicles:
1352
- type: long_as_string
1349
+ type: long
1353
1350
  description: Number of vehicles on a given detector logic (since last
1354
1351
  update)
1355
1352
  range: "[number]"
@@ -1365,7 +1362,7 @@ objects:
1365
1362
  XML dateTime with a resolution of 3 decimal places. All time stamps
1366
1363
  in UTC. E.g. 2009-10-02T14:34:34.341Z
1367
1364
  speed:
1368
- type: integer_as_string
1365
+ type: integer
1369
1366
  description: Average speed in km/h
1370
1367
  range: "[speed]"
1371
1368
  S0203:
@@ -1380,7 +1377,7 @@ objects:
1380
1377
  XML dateTime with a resolution of 3 decimal places. All time stamps
1381
1378
  in UTC. E.g. 2009-10-02T14:34:34.341Z
1382
1379
  occupancy:
1383
- type: integer_as_string
1380
+ type: integer
1384
1381
  description: Occupancy in percent (0-100%)
1385
1382
  range: "[0-100]"
1386
1383
  S0204:
@@ -1395,39 +1392,39 @@ objects:
1395
1392
  XML dateTime with a resolution of 3 decimal places. All time stamps
1396
1393
  in UTC. E.g. 2009-10-02T14:34:34.341Z
1397
1394
  P:
1398
- type: long_as_string
1395
+ type: long
1399
1396
  description: Number of cars
1400
1397
  range: "[number]"
1401
1398
  PS:
1402
- type: long_as_string
1399
+ type: long
1403
1400
  description: Number of cars with trailers
1404
1401
  range: "[number]"
1405
1402
  L:
1406
- type: long_as_string
1403
+ type: long
1407
1404
  description: Number of trucks
1408
1405
  range: "[number]"
1409
1406
  LS:
1410
- type: long_as_string
1407
+ type: long
1411
1408
  description: Number of trucks with trailers
1412
1409
  range: "[number]"
1413
1410
  B:
1414
- type: long_as_string
1411
+ type: long
1415
1412
  description: Number of busses
1416
1413
  range: "[number]"
1417
1414
  SP:
1418
- type: long_as_string
1415
+ type: long
1419
1416
  description: Number of trams
1420
1417
  range: "[number]"
1421
1418
  MC:
1422
- type: long_as_string
1419
+ type: long
1423
1420
  description: Number of motor cycles
1424
1421
  range: "[number]"
1425
1422
  C:
1426
- type: long_as_string
1423
+ type: long
1427
1424
  description: Number of bicycles
1428
1425
  range: "[number]"
1429
1426
  F:
1430
- type: long_as_string
1427
+ type: long
1431
1428
  description: Number of pedestrians
1432
1429
  range: "[number]"
1433
1430
  commands:
@@ -1439,7 +1436,7 @@ objects:
1439
1436
  Requires security code 2
1440
1437
  arguments:
1441
1438
  status:
1442
- type: boolean_as_string
1439
+ type: boolean
1443
1440
  description: |-
1444
1441
  False: Deactivate manual control of detector logic
1445
1442
  True: Activate manual control of detector logic
@@ -1447,7 +1444,7 @@ objects:
1447
1444
  type: string
1448
1445
  description: Security code 2
1449
1446
  mode:
1450
- type: boolean_as_string
1447
+ type: boolean
1451
1448
  description: |-
1452
1449
  False: Deactivate detector logic
1453
1450
  True: Activate detector logic
@@ -267,10 +267,10 @@
267
267
  "commands" : {
268
268
  "M0001" : {
269
269
  "required" : {
270
- "intersection" : "integer_as_string",
271
- "securityCode" : "string",
270
+ "intersection" : "integer_list",
271
+ "securityCode" : "string_list",
272
272
  "status" : "string",
273
- "timeout" : "integer_as_string"
273
+ "timeout" : "integer_list"
274
274
  }
275
275
  },
276
276
  "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
  }