@@ -4958,29 +4958,123 @@ components:
4958
4958
- $ref : ' #/components/schemas/Tags'
4959
4959
nullable : true
4960
4960
type : object
4961
- ProjectPathResult :
4962
- description : Project path output is described by time-space points and blocks
4961
+ ProjectPathInput :
4962
+ description : Project path input is described by a list of routes and a list of track range
4963
4963
properties :
4964
- blocks :
4965
- items :
4966
- $ref : ' #/components/schemas/SignalUpdate'
4967
- type : array
4968
- positions :
4964
+ routes :
4965
+ description : List of route ids
4969
4966
items :
4970
- format : int64
4971
- minimum : 0
4972
- type : integer
4967
+ maxLength : 255
4968
+ minLength : 1
4969
+ type : string
4970
+ minItems : 1
4973
4971
type : array
4974
- times :
4972
+ track_section_ranges :
4973
+ description : List of track ranges
4975
4974
items :
4976
- format : double
4977
- type : number
4975
+ $ref : ' #/components/schemas/TrackRange '
4976
+ minItems : 1
4978
4977
type : array
4979
4978
required :
4980
- - positions
4981
- - times
4982
- - blocks
4979
+ - routes
4980
+ - track_section_ranges
4983
4981
type : object
4982
+ ProjectPathTrainResult :
4983
+ allOf :
4984
+ - description : Project path output is described by time-space points and blocks
4985
+ properties :
4986
+ signal_updates :
4987
+ description : List of signal updates along the path
4988
+ items :
4989
+ properties :
4990
+ aspect_label :
4991
+ description : The labels of the new aspect
4992
+ type : string
4993
+ blinking :
4994
+ description : Whether the signal is blinking
4995
+ type : boolean
4996
+ color :
4997
+ description : |-
4998
+ The color of the aspect
4999
+ (Bits 24-31 are alpha, 16-23 are red, 8-15 are green, 0-7 are blue)
5000
+ format : int32
5001
+ type : integer
5002
+ position_end :
5003
+ description : The route ends at this position in mm on the train path
5004
+ format : int64
5005
+ minimum : 0
5006
+ type : integer
5007
+ position_start :
5008
+ description : The route starts at this position in mm on the train path
5009
+ format : int64
5010
+ minimum : 0
5011
+ type : integer
5012
+ signal_id :
5013
+ description : The id of the updated signal
5014
+ type : string
5015
+ time_end :
5016
+ description : The aspects stop being displayed at this time (number of seconds since `departure_time`)
5017
+ format : int64
5018
+ minimum : 0
5019
+ type : integer
5020
+ time_start :
5021
+ description : The aspects start being displayed at this time (number of mseconds since `departure_time`)
5022
+ format : int64
5023
+ minimum : 0
5024
+ type : integer
5025
+ required :
5026
+ - signal_id
5027
+ - time_start
5028
+ - time_end
5029
+ - position_start
5030
+ - position_end
5031
+ - color
5032
+ - blinking
5033
+ - aspect_label
5034
+ type : object
5035
+ type : array
5036
+ space_time_curves :
5037
+ description : List of space-time curves sections along the path
5038
+ items :
5039
+ properties :
5040
+ positions :
5041
+ items :
5042
+ format : int64
5043
+ minimum : 0
5044
+ type : integer
5045
+ minItems : 2
5046
+ type : array
5047
+ times :
5048
+ items :
5049
+ format : int64
5050
+ minimum : 0
5051
+ type : integer
5052
+ minItems : 2
5053
+ type : array
5054
+ required :
5055
+ - positions
5056
+ - times
5057
+ type : object
5058
+ type : array
5059
+ required :
5060
+ - space_time_curves
5061
+ - signal_updates
5062
+ type : object
5063
+ - properties :
5064
+ departure_time :
5065
+ description : Departure time of the train
5066
+ format : date-time
5067
+ type : string
5068
+ rolling_stock_length :
5069
+ description : Rolling stock length in mm
5070
+ format : int64
5071
+ minimum : 0
5072
+ type : integer
5073
+ required :
5074
+ - departure_time
5075
+ - rolling_stock_length
5076
+ type : object
5077
+ description : Project path output is described by time-space points and blocks
4984
5078
ProjectWithStudies :
4985
5079
allOf :
4986
5080
- $ref : ' #/components/schemas/Project'
@@ -6568,9 +6662,49 @@ components:
6568
6662
base :
6569
6663
$ref : ' #/components/schemas/ReportTrainV2'
6570
6664
final_output :
6571
- $ref : ' #/components/schemas/CompleteReportTrain'
6665
+ allOf :
6666
+ - $ref : ' #/components/schemas/ReportTrainV2'
6667
+ - properties :
6668
+ routing_requirements :
6669
+ items :
6670
+ $ref : ' #/components/schemas/RoutingRequirement'
6671
+ type : array
6672
+ signal_sightings :
6673
+ items :
6674
+ $ref : ' #/components/schemas/SignalSighting'
6675
+ type : array
6676
+ spacing_requirements :
6677
+ items :
6678
+ $ref : ' #/components/schemas/SpacingRequirement'
6679
+ type : array
6680
+ zone_updates :
6681
+ items :
6682
+ $ref : ' #/components/schemas/ZoneUpdate'
6683
+ type : array
6684
+ required :
6685
+ - signal_sightings
6686
+ - zone_updates
6687
+ - spacing_requirements
6688
+ - routing_requirements
6689
+ type : object
6572
6690
mrsp :
6573
- $ref : ' #/components/schemas/Mrsp'
6691
+ description : A MRSP computation result (Most Restrictive Speed Profile)
6692
+ properties :
6693
+ positions :
6694
+ items :
6695
+ format : int64
6696
+ minimum : 0
6697
+ type : integer
6698
+ type : array
6699
+ speeds :
6700
+ items :
6701
+ format : double
6702
+ type : number
6703
+ type : array
6704
+ required :
6705
+ - positions
6706
+ - speeds
6707
+ type : object
6574
6708
power_restrictions :
6575
6709
items :
6576
6710
properties :
@@ -6621,7 +6755,15 @@ components:
6621
6755
- pathfinding_result
6622
6756
- status
6623
6757
type : object
6624
- SimulationSummaryResultResponse :
6758
+ - properties :
6759
+ status :
6760
+ enum :
6761
+ - simulation_failed
6762
+ type : string
6763
+ required :
6764
+ - status
6765
+ type : object
6766
+ SimulationSummaryResult :
6625
6767
oneOf :
6626
6768
- properties :
6627
6769
Success :
@@ -6649,7 +6791,7 @@ components:
6649
6791
- PathfindingFailed
6650
6792
type : string
6651
6793
- enum :
6652
- - RunningTimeFailed
6794
+ - SimulationFailed
6653
6795
type : string
6654
6796
SingleSimulationRequest :
6655
6797
allOf :
@@ -7225,14 +7367,19 @@ components:
7225
7367
- offset
7226
7368
type : object
7227
7369
TrackRange :
7370
+ description : |-
7371
+ An oriented range on a track section.
7372
+ `begin` is always less than `end`.
7228
7373
properties :
7229
7374
begin :
7375
+ description : The beginning of the range in mm.
7230
7376
format : int64
7231
7377
minimum : 0
7232
7378
type : integer
7233
7379
direction :
7234
7380
$ref : ' #/components/schemas/Direction'
7235
7381
end :
7382
+ description : The end of the range in mm.
7236
7383
format : int64
7237
7384
minimum : 0
7238
7385
type : integer
@@ -10856,14 +11003,42 @@ paths:
10856
11003
post :
10857
11004
description : |-
10858
11005
Projects the space time curves and paths of a number of train schedules onto a given path
10859
- Params are the infra_id and a list of train_ids
11006
+
11007
+ - Returns 404 if the infra or any of the train schedules are not found
11008
+ - Returns 200 with a hashmap of train_id to ProjectPathTrainResult
11009
+
11010
+ Train schedules that are invalid (pathfinding or simulation failed) are not included in the result
11011
+ parameters :
11012
+ - description : The infra id
11013
+ in : query
11014
+ name : infra
11015
+ required : true
11016
+ schema :
11017
+ format : int64
11018
+ type : integer
11019
+ - description : Ids of train schedule
11020
+ in : query
11021
+ name : ids
11022
+ required : true
11023
+ schema :
11024
+ items :
11025
+ format : int64
11026
+ type : integer
11027
+ type : array
11028
+ requestBody :
11029
+ content :
11030
+ application/json :
11031
+ schema :
11032
+ $ref : ' #/components/schemas/ProjectPathInput'
11033
+ description : ' '
11034
+ required : true
10860
11035
responses :
10861
11036
' 200 ' :
10862
11037
content :
10863
11038
application/json :
10864
11039
schema :
10865
11040
additionalProperties :
10866
- $ref : ' #/components/schemas/ProjectPathResult '
11041
+ $ref : ' #/components/schemas/ProjectPathTrainResult '
10867
11042
type : object
10868
11043
description : Project Path Output
10869
11044
summary : Projects the space time curves and paths of a number of train schedules onto a given path
@@ -10874,21 +11049,38 @@ paths:
10874
11049
description : |-
10875
11050
Retrieve simulation information for a given train list.
10876
11051
Useful for finding out whether pathfinding/simulation was successful.
11052
+ parameters :
11053
+ - description : The infra id
11054
+ in : query
11055
+ name : infra
11056
+ required : true
11057
+ schema :
11058
+ format : int64
11059
+ type : integer
11060
+ - description : Ids of train schedule
11061
+ in : query
11062
+ name : ids
11063
+ required : true
11064
+ schema :
11065
+ items :
11066
+ format : int64
11067
+ type : integer
11068
+ type : array
10877
11069
responses :
10878
11070
' 200 ' :
10879
11071
content :
10880
11072
application/json :
10881
11073
schema :
10882
11074
additionalProperties :
10883
- $ref : ' #/components/schemas/SimulationSummaryResultResponse '
11075
+ $ref : ' #/components/schemas/SimulationSummaryResult '
10884
11076
type : object
10885
11077
description : Project Path Output
10886
11078
summary : Retrieve simulation information for a given train list.
10887
11079
tags :
10888
11080
- train_schedulev2
10889
11081
/v2/train_schedule/{id}/ :
10890
11082
get :
10891
- description : Return a specific timetable with its associated schedules
11083
+ description : Return a specific train schedule
10892
11084
parameters :
10893
11085
- description : A train schedule ID
10894
11086
in : path
@@ -10904,7 +11096,7 @@ paths:
10904
11096
schema :
10905
11097
$ref : ' #/components/schemas/TrainScheduleResult'
10906
11098
description : The train schedule
10907
- summary : Return a specific timetable with its associated schedules
11099
+ summary : Return a specific train schedule
10908
11100
tags :
10909
11101
- train_schedulev2
10910
11102
put :
0 commit comments