Acceleration Segment
class AccelerationSegment(val startId: Int, val endId: Int, var fixedSpeed: Float) : TrackSegment(source)
Represents a segment of acceleration on a track.
This class implements the SegmentFunction
interface and provides a method to calculate the speed of a train segment based on the acceleration and various factors such as weather, maintenance, and train weight.
Parameters
fixed Speed
The speed value for the segment.