Class InfrastructureLaneChangeInfoToledo

java.lang.Object
org.opentrafficsim.road.gtu.lane.perception.InfrastructureLaneChangeInfo
org.opentrafficsim.road.gtu.lane.tactical.toledo.InfrastructureLaneChangeInfoToledo
All Implemented Interfaces:
Serializable, Comparable<InfrastructureLaneChangeInfo>

public class InfrastructureLaneChangeInfoToledo extends InfrastructureLaneChangeInfo implements Serializable

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

Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
See Also:
  • Constructor Details

    • InfrastructureLaneChangeInfoToledo

      public InfrastructureLaneChangeInfoToledo(int requiredNumberOfLaneChanges, LaneStructureRecord record, int splitNumber) throws GtuException
      Parameters:
      requiredNumberOfLaneChanges - int; number of lane changes
      record - LaneStructureRecord; record
      splitNumber - int; number of the split along the road
      Throws:
      GtuException - if the split number is below 1
  • Method Details

    • forSplit

      public final boolean forSplit()
      Returns whether this information regards a split in the road.
      Returns:
      whether this information regards a split in the road
    • getSplitNumber

      public final int getSplitNumber()
      Returns the split number.
      Returns:
      split number
    • toString

      public final String toString()
      Overrides:
      toString in class InfrastructureLaneChangeInfo