Package fr.uga.pddl4j.problem.numeric
Class AbstractNumericExpression
java.lang.Object
fr.uga.pddl4j.problem.numeric.AbstractNumericExpression
- All Implemented Interfaces:
NumericExpression
,Serializable
- Direct Known Subclasses:
ArithmeticExpression
,NumericAssignment
,NumericConstraint
This class defines the methods common to all numerical expressions.
- Since:
- 4.0
- See Also:
- Serialized Form
-
Constructor Summary
ModifierConstructorDescriptionprotected
Creates a deep copy of numeric expression.protected
Creates a new numeric expression with a specified left and right expression and no time specifier. -
Method Summary
Modifier and TypeMethodDescriptionReturns the left arithmetic expression of the numeric expression.Returns the right arithmetic expression of the numeric expression.void
Sets the left arithmetic expression of the numeric expression.void
Sets the right arithmetic expression of the numeric expression.
-
Constructor Details
-
AbstractNumericExpression
Creates a deep copy of numeric expression.- Parameters:
other
- the numeric expression to be copied.
-
AbstractNumericExpression
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
Returns the right arithmetic expression of the numeric expression.- Specified by:
getRightExpression
in interfaceNumericExpression
- Returns:
- the right arithmetic expression of the numeric expression.
-
setRightExpression
Sets the right arithmetic expression of the numeric expression.- Specified by:
setRightExpression
in interfaceNumericExpression
- Parameters:
right
- the right arithmetic expression of the numeric expression.
-
getLeftExpression
Returns the left arithmetic expression of the numeric expression.- Specified by:
getLeftExpression
in interfaceNumericExpression
- Returns:
- the left arithmetic expression of the numeric expression.
-
setLeftExpression
Sets the left arithmetic expression of the numeric expression.- Parameters:
left
- the left arithmetic expression of the numeric expression.
-