Enum Class TemporalRelation

java.lang.Object
java.lang.Enum<TemporalRelation>
fr.uga.pddl4j.problem.time.TemporalRelation
All Implemented Interfaces:
Serializable, Comparable<TemporalRelation>, Constable

public enum TemporalRelation extends Enum<TemporalRelation>
This enumeration defined the temporal relation between tasks.
Since:
4.0
  • Enum Constant Details

    • EMPTY

      public static final TemporalRelation EMPTY
      The empty relation, i.e., impossible relation.
    • LESS

      public static final TemporalRelation LESS
      The less relation.
    • EQUAL

      public static final TemporalRelation EQUAL
      The equal relation.
    • GREATER

      public static final TemporalRelation GREATER
      The greater relation.
    • LEQ

      public static final TemporalRelation LEQ
      The less or equal relation.
    • GEQ

      public static final TemporalRelation GEQ
      The greater or equal relation.
    • DIFFERENT

      public static final TemporalRelation DIFFERENT
      The different relation.
    • UNIVERSAL

      public static final TemporalRelation UNIVERSAL
      The universal relation, i.e., no temporal constraints.
  • Method Details

    • values

      public static TemporalRelation[] 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 TemporalRelation 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
    • getIndex

      public int getIndex()
      Returns the index of the relation.
      Returns:
      the index of the relation
    • compose

      public TemporalRelation compose(TemporalRelation relation)
      Returns the result of the composition of this temporal relation with another relation.
      Parameters:
      relation - the other relation.
      Returns:
      of the composition of this temporal relation with specified relation.
    • intersect

      public TemporalRelation intersect(TemporalRelation relation)
      Returns the result of the intersection of this temporal relation with another relation.
      Parameters:
      relation - the other relation.
      Returns:
      of the intersection of this temporal relation with specified relation.
    • symmetric

      public TemporalRelation symmetric()
      Returns the result of the symetric of this temporal relation.
      Returns:
      of the symmetric of this temporal relation.