Enum Class IntervalTier.InsertionStrategy

java.lang.Object
java.lang.Enum<IntervalTier.InsertionStrategy>
ca.phon.session.IntervalTier.InsertionStrategy
All Implemented Interfaces:
Serializable, Comparable<IntervalTier.InsertionStrategy>, Constable
Enclosing class:
IntervalTier

public static enum IntervalTier.InsertionStrategy extends Enum<IntervalTier.InsertionStrategy>
Insertion strategy used when adding new intervals to the tier and an overlap occurs.
  • Enum Constant Details

    • ALLOW_OVERLAPS

      public static final IntervalTier.InsertionStrategy ALLOW_OVERLAPS
      Ignore overlaps
    • ERROR_ON_OVERLAP

      public static final IntervalTier.InsertionStrategy ERROR_ON_OVERLAP
      Throw IllegalArgumentException on overlap
    • DIVIDE_INTERVALS_ON_OVERLAP

      public static final IntervalTier.InsertionStrategy DIVIDE_INTERVALS_ON_OVERLAP
      Divide intervals on overlap. Given interval A and B, with A being the interval inserted
      • if A.start invalid input: '<' B.start invalid input: '&'invalid input: '&' A.end > B.start: B.start will be shifted to A.endinvalid input: '<'/>
      • if A.start invalid input: '<' B.end invalid input: '&'invalid input: '&' A.end > B.end: B.end is shifted to A.start
      • if A.start > B.start invalid input: '&'invalid input: '&' A.end invalid input: '<' B.end: new interval C(B.start, A.start) is created with empty label; B.start is shifted to A.end
  • Method Details

    • values

      public static IntervalTier.InsertionStrategy[] 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 IntervalTier.InsertionStrategy 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