Class GtuCompatibility<T extends HierarchicalType<T,?> & Compatibility<GtuType,T>>

java.lang.Object
org.opentrafficsim.core.compatibility.GtuCompatibility<T>
Type Parameters:
T - infrastructure type, e.g. LinkType or LaneType, or water way type
All Implemented Interfaces:
Compatibility<GtuType,T>

public class GtuCompatibility<T extends HierarchicalType<T,?> & Compatibility<GtuType,T>> extends Object implements Compatibility<GtuType,T>
Compatibility between a GtuType and a certain type of infrastructure. Infrastructure can be any hierarchical structure: a LinkType, a LaneType, a SensorType, etc.

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

    • GtuCompatibility

      public GtuCompatibility(T infrastructure)
      Construct a new Compatibility object with empty compatible and forbidden sets.
      Parameters:
      infrastructure - I; the infrastructure type, e.g. LinkType, LaneType, SensorType.
    • GtuCompatibility

      public GtuCompatibility(GtuCompatibility<T> original)
      Construct a new Compatibility and deep copy the compatible and forbidden sets from an existing Compatibility.
      Parameters:
      original - GtuCompatibility<I>; the Compatibility from which the compatible and forbidden sets will be copied
  • Method Details