Skip to content

Commit

Permalink
todo
Browse files Browse the repository at this point in the history
  • Loading branch information
anisometropie committed Feb 2, 2024
1 parent a1679f1 commit 465e86d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public class RJSRollingStock implements Identified {

@Json(name = "supported_signaling_systems")
public String[] supportedSignalingSystems = null;

public enum GammaType {
CONST,
MAX
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ class SignalingSystemConstraintsFactory {
rsSupportedSigSystems
)
}
}
}
7 changes: 4 additions & 3 deletions core/src/test/kotlin/fr/sncf/osrd/utils/DummyInfra.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class DummyInfra : RawInfra, BlockInfra {
private val entryMap = HashMultimap.create<DirDetectorId, BlockId>()
private val exitMap = HashMultimap.create<DirDetectorId, BlockId>()
private val signalingSimulator = makeSignalingSimulator()
// TODO: add logical signals and physical signals so we can return something

/** get the FullInfra */
fun fullInfra(): FullInfra {
Expand Down Expand Up @@ -116,15 +117,15 @@ class DummyInfra : RawInfra, BlockInfra {
}

override fun getPhysicalSignalName(signal: PhysicalSignalId): String? {
TODO("Not yet implemented")
return "BAL"
}

override fun getSignalSightDistance(signal: PhysicalSignalId): Distance {
return 400.meters
}

override fun getSignalingSystemId(signal: LogicalSignalId): String {
return this.fullInfra().rawInfra.getLogicalSignalName(signal) ?: "BAL"
return this.getLogicalSignalName(signal) ?: "BAL"
}

fun getSignalingSystemName(block: BlockId): String {
Expand All @@ -136,7 +137,7 @@ class DummyInfra : RawInfra, BlockInfra {
}

override fun getNextSignalingSystemIds(signal: LogicalSignalId): List<String> {
return this.fullInfra().rawInfra.getNextSignalingSystemIds(signal)
return this.getNextSignalingSystemIds(signal)
}

override val routes: StaticIdxSpace<Route>
Expand Down

0 comments on commit 465e86d

Please sign in to comment.