Class OperationalPlan.Segment

java.lang.Object
org.opentrafficsim.core.gtu.plan.operational.OperationalPlan.Segment
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
OperationalPlan.AccelerationSegment, OperationalPlan.SpeedSegment
Enclosing class:
OperationalPlan

public abstract static class OperationalPlan.Segment
extends Object
implements Serializable
The segment of an operational plan contains a part of the speed profile of a movement in which some of the variables determining movement (speed, acceleration) are constant.

Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
All rights reserved.
BSD-style license. See OpenTrafficSim License.

$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, initial version Nov 14, 2015
Author:
Alexander Verbraeck, Peter Knoppers
See Also:
Serialized Form
  • Field Details

    • 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 Details

    • Segment

      public Segment​(Duration duration)
      Parameters:
      duration - Duration; the duration of the acceleration or speed for this segment
  • Method Details

    • getDuration

      public final Duration getDuration()
      Returns:
      duration the duration of the acceleration or speed for this segment
    • getDurationSI

      public final double getDurationSI()
      Returns:
      duration the duration of the acceleration or speed for this segment
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals​(Object obj)
      Overrides:
      equals in class Object