Launch Segment
class LaunchSegment(val startId: Int, val endId: Int, var acceleration: 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
acceleration
The acceleration value for the segment.