Skip to content

Commit

Permalink
core: stdcm: precise comment on engineering allowance model
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre-Etienne Bougué <[email protected]>
  • Loading branch information
bougue-pe committed Feb 20, 2025
1 parent 975ec76 commit b1c5f94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions core/src/main/kotlin/fr/sncf/osrd/graph/Pathfinding.kt
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@ class Pathfinding<NodeT : Any, EdgeT : Any, OffsetType>(
targets: List<Collection<EdgeLocation<EdgeT, OffsetType>>>
): Result<EdgeT, OffsetType>? {
// We convert the targets of each step into functions, to call the more generic overload of
// this
// method below
// this method below
val starts = targets[0]
val targetsOnEdges = ArrayList<TargetsOnEdge<EdgeT, OffsetType>>()
for (i in 1 until targets.size) {
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/kotlin/fr/sncf/osrd/stdcm/graph/STDCMEdge.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ data class STDCMEdge(
// How long it takes to go from the beginning to the end of the block, taking the
// standard allowance into account
val totalTime: Double,
// If this edges starts after the end of an engineering allowance, this contains
// If this edge starts at the end of an engineering allowance, this contains
// some data like its length and extra time. Null if there's no engineering allowance
// ending here. Overrides any allowance spanning part of the range from previous edges.
val engineeringAllowance: EngineeringAllowanceData?,
Expand Down

0 comments on commit b1c5f94

Please sign in to comment.