Class TemporalConditionalEffect

java.lang.Object
fr.uga.pddl4j.problem.time.TemporalConditionalEffect
All Implemented Interfaces:
Serializable

public class TemporalConditionalEffect extends Object implements Serializable
This class implements the time conditional effects of an action.
See Also:
Serialized Form
  • Constructor Details

    • TemporalConditionalEffect

      public TemporalConditionalEffect(TemporalConditionalEffect other)
      Creates a conditional effect from an other. This constructor is the copy constructor.
      Parameters:
      other - the other conditional bit expression.
    • TemporalConditionalEffect

      public TemporalConditionalEffect()
      Creates a new empty conditional effect.
    • TemporalConditionalEffect

      public TemporalConditionalEffect(TemporalEffect effects)
      Creates a new conditional effect with some specified effects.
      Parameters:
      effects - the effects.
    • TemporalConditionalEffect

      public TemporalConditionalEffect(TemporalCondition condition, TemporalEffect effect)
      Creates a new conditional effect with some specified conditions and effects.
      Parameters:
      condition - the conditions.
      effect - the effects.
  • Method Details

    • getCondition

      public final TemporalCondition getCondition()
      Returns the conditions of the conditional effect.
      Returns:
      the conditions of the conditional effect.
    • setCondition

      public final void setCondition(TemporalCondition conditions)
      Sets the conditions of the conditional effect.
      Parameters:
      conditions - the conditions to set.
    • getEffect

      public final TemporalEffect getEffect()
      Returns the effects of the conditional effect.
      Returns:
      the effects of the conditional effect.
    • setEffect

      public final void setEffect(TemporalEffect effects)
      Sets the effects of the conditional effect.
      Parameters:
      effects - the effects to set
    • hashCode

      public int hashCode()
      Returns the hash code of this conditional effect.
      Overrides:
      hashCode in class Object
      Returns:
      the hash code of this conditional effect.
      See Also:
      Object.hashCode()
    • equals

      public boolean equals(Object obj)
      Returns true if a specified object is equal to this conditional expression. In other words, returns true if the specified object is an instance of the same type as this instance, all of whose members (conditions and effects) are equal to the corresponding member of this conditional expression.
      Overrides:
      equals in class Object
      Parameters:
      obj - the reference object with which to compare.
      Returns:
      true if a specified object is equal to this conditional expression; false.
      See Also:
      Object.equals(java.lang.Object)