Package fr.uga.pddl4j.problem.numeric
Class NumericVariable
java.lang.Object
fr.uga.pddl4j.problem.numeric.AbstractNumericExpression
fr.uga.pddl4j.problem.numeric.ArithmeticExpression
fr.uga.pddl4j.problem.numeric.NumericVariable
- All Implemented Interfaces:
NumericExpression
,Serializable
This class defines the methods to manipulate a numeric variable.
- Since:
- 4.0
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class fr.uga.pddl4j.problem.numeric.ArithmeticExpression
ArithmeticExpression.Type
-
Field Summary
Fields inherited from class fr.uga.pddl4j.problem.numeric.ArithmeticExpression
DEFAULT_NUMERIC_FLUENT, DEFAULT_VALUE
-
Constructor Summary
ConstructorDescriptionNumericVariable(int index)
Create a new numeric variable.NumericVariable(int index, double value)
Creates a new numeric variable for a specified numeric fluent and value.NumericVariable(NumericVariable other)
Create a new numeric variable from an other. -
Method Summary
Methods inherited from class fr.uga.pddl4j.problem.numeric.ArithmeticExpression
equals, evaluate, getArithmeticOperator, getNumericFluent, getType, getValue, hashCode, setArithmeticOpertor, setNumericFluents, setType, setValue, toString
Methods inherited from class fr.uga.pddl4j.problem.numeric.AbstractNumericExpression
getLeftExpression, getRightExpression, setLeftExpression, setRightExpression
-
Field Details
-
DURATION
public static final int DURATIONThe index of the duration variable.- See Also:
- Constant Field Values
-
-
Constructor Details
-
NumericVariable
Create a new numeric variable from an other. This constructor creates a deep copy of the object in parameter.- Parameters:
other
- the other numeric variable to be copied.
-
NumericVariable
public NumericVariable(int index)Create a new numeric variable.- Parameters:
index
- the index of this numeric fluent that represents this variable.
-
NumericVariable
public NumericVariable(int index, double value)Creates a new numeric variable for a specified numeric fluent and value.- Parameters:
index
- the index of this numeric fluent that represents this variable.value
- the value of the numeric variable.
-