Class AbstractNumericExpression

java.lang.Object
fr.uga.pddl4j.problem.numeric.AbstractNumericExpression
All Implemented Interfaces:
NumericExpression, Serializable
Direct Known Subclasses:
ArithmeticExpression, NumericAssignment, NumericConstraint

public abstract class AbstractNumericExpression extends Object implements NumericExpression
This class defines the methods common to all numerical expressions.
Since:
4.0
See Also:
Serialized Form
  • Constructor Details

    • AbstractNumericExpression

      protected AbstractNumericExpression(AbstractNumericExpression other)
      Creates a deep copy of numeric expression.
      Parameters:
      other - the numeric expression to be copied.
    • AbstractNumericExpression

      protected AbstractNumericExpression(ArithmeticExpression left, ArithmeticExpression right)
      Creates a new numeric expression with a specified left and right expression and no time specifier.
      Parameters:
      left - the left expression of the numeric expression.
      right - the right expression of the numeric expression.
  • Method Details

    • getRightExpression

      public final ArithmeticExpression getRightExpression()
      Returns the right arithmetic expression of the numeric expression.
      Specified by:
      getRightExpression in interface NumericExpression
      Returns:
      the right arithmetic expression of the numeric expression.
    • setRightExpression

      public final void setRightExpression(ArithmeticExpression right)
      Sets the right arithmetic expression of the numeric expression.
      Specified by:
      setRightExpression in interface NumericExpression
      Parameters:
      right - the right arithmetic expression of the numeric expression.
    • getLeftExpression

      public final ArithmeticExpression getLeftExpression()
      Returns the left arithmetic expression of the numeric expression.
      Specified by:
      getLeftExpression in interface NumericExpression
      Returns:
      the left arithmetic expression of the numeric expression.
    • setLeftExpression

      public final void setLeftExpression(ArithmeticExpression left)
      Sets the left arithmetic expression of the numeric expression.
      Parameters:
      left - the left arithmetic expression of the numeric expression.