Class AnticipationSpeed.SpeedSet

  • Enclosing class:
    AnticipationSpeed

    public static class AnticipationSpeed.SpeedSet
    extends java.lang.Object
    Class to contain info from 1 lane, regarding 3 lanes.

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

    Version:
    $Revision$, $LastChangedDate$, by $Author$, initial version 8 mrt. 2018
    Author:
    Alexander Verbraeck, Peter Knoppers, Wouter Schakel
    • Constructor Summary

      Constructors 
      Constructor Description
      SpeedSet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Speed getCurrent()
      Returns the speed regarding the current lane.
      Speed getLeft()
      Returns the speed regarding the left lane.
      Speed getRight()
      Returns the speed regarding the right lane.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpeedSet

        public SpeedSet()
    • Method Detail

      • getLeft

        public final Speed getLeft()
        Returns the speed regarding the left lane.
        Returns:
        Speed; speed regarding the left lane
      • getCurrent

        public final Speed getCurrent()
        Returns the speed regarding the current lane.
        Returns:
        Speed; speed regarding the current lane
      • getRight

        public final Speed getRight()
        Returns the speed regarding the right lane.
        Returns:
        Speed; speed regarding the right lane