Enum Class ConflictType

java.lang.Object
java.lang.Enum<ConflictType>
org.opentrafficsim.road.network.conflict.ConflictType
All Implemented Interfaces:
Serializable, Comparable<ConflictType>, Constable

public enum ConflictType extends Enum<ConflictType>
Type of conflict. This regards how the conflict is spatially correlated to the other traffic.

Copyright (c) 2013-2026 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
  • Enum Constant Details

    • CROSSING

      public static final ConflictType CROSSING
      Crossing conflict.
    • MERGE

      public static final ConflictType MERGE
      Merge conflict.
    • SPLIT

      public static final ConflictType SPLIT
      Split conflict.
  • Method Details

    • values

      public static ConflictType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ConflictType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isCrossing

      public boolean isCrossing()
      Returns whether this is a crossing.
      Returns:
      whether this is a crossing
    • isMerge

      public boolean isMerge()
      Returns whether this is a merge.
      Returns:
      whether this is a merge
    • isSplit

      public boolean isSplit()
      Returns whether this is a split.
      Returns:
      whether this is a split