Package fr.uga.pddl4j.problem
Class InitialState
java.lang.Object
fr.uga.pddl4j.problem.operator.AbstractFluentDescription
fr.uga.pddl4j.problem.InitialState
- All Implemented Interfaces:
FluentDescription
,Serializable
This class implements an initial syaye, i.e., the set of known positives and negative fluents.
- Since:
- 4.0
- See Also:
- Serialized Form
-
Constructor Summary
ConstructorDescriptionCreates a new empty initial state.InitialState(InitialState other)
Creates a new initial state from a other initial state. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addNumericFluent(NumericVariable variable)
Adds a numeric variables to the initial state.Returns the list of numeric variables of this initial state.void
setNumericVariables(List<NumericVariable> variables)
Sets the numeric variables of the initial state.Methods inherited from class fr.uga.pddl4j.problem.operator.AbstractFluentDescription
cardinality, getNegativeFluents, getPositiveFluents, isConsistent, isEmpty
-
Constructor Details
-
InitialState
Creates a new initial state from a other initial state.- Parameters:
other
- the other initiam state.
-
InitialState
public InitialState()Creates a new empty initial state.
-
-
Method Details
-
getNumericVariables
Returns the list of numeric variables of this initial state.- Returns:
- the list of numeric variables of this initial state.
-
setNumericVariables
Sets the numeric variables of the initial state.- Parameters:
variables
- the numeric variables of the state.
-
addNumericFluent
Adds a numeric variables to the initial state.- Parameters:
variable
- the variable to add.
-