Class OperationalPlan.Segment

    • Field Detail

      • duration

        protected final Duration duration
        The duration of the acceleration or speed for this segment.
      • v0

        protected Speed v0
        The initial speed for this segment.
    • Constructor Detail

      • Segment

        public Segment​(Duration duration)
        Construct a new Segment.
        Parameters:
        duration - Duration; the duration of the the new segment
    • Method Detail

      • getDuration

        public final Duration getDuration()
        Retrieve the duration of this Segment.
        Returns:
        Duration; the duration of this segment
      • getDurationSI

        public final double getDurationSI()
        Retrieve the duration of this Segment in the SI unit (i.c. seconds).
        Returns:
        Duration; the duration of the acceleration or speed for this segment
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object