Package fr.uga.pddl4j.problem.operator
Class IntMethod
java.lang.Object
fr.uga.pddl4j.problem.operator.AbstractInstantiatedOperator
fr.uga.pddl4j.problem.operator.AbstractIntOperator
fr.uga.pddl4j.problem.operator.IntMethod
- All Implemented Interfaces:
Operator
,Serializable
This class implements an method. This class is used to store compact representation of method
during the instantiation process.
- See Also:
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the logical constraints between the tasks of the task network.Return the ordering constraints of the method.Return the subtasks of the method.getTask()
Return the task that is carried out by the method.Returns the task network of this method.void
setConstraints(Expression<Integer> constraints)
Sets the logical constraints between the tasks of the task network.void
setOrderingConstraints(Expression<Integer> ordering)
Set the new ordering constraints of the method.void
setSubTasks(Expression<Integer> tasks)
Set the subtasks of the method.void
setTask(Expression<Integer> task)
Set the task carried out by the method.void
setTaskNetwork(IntTaskNetwork taskNetwork)
Set the task network of this method.Methods inherited from class fr.uga.pddl4j.problem.operator.AbstractIntOperator
getDuration, getPreconditions, isDurative, setDuration, setPreconditions
Methods inherited from class fr.uga.pddl4j.problem.operator.AbstractInstantiatedOperator
arity, equals, getInstantiations, getName, getParameters, getTypeOfParameters, getValueOfParameter, hashCode, isAlreadyInstantiatedWith, isDummy, setDummy, setName, setTypeOfParameter, setValueOfParameter
-
Constructor Details
-
IntMethod
Create a new method from a specified method. This constructor create a deep copy of the specified method.- Parameters:
other
- the other method.
-
IntMethod
Create a new method with a specified name. The task is set to a empty expression with TASK as connective and the task network is set to an empty task network.- Parameters:
name
- the name of the method.arity
- the arity of the method. The arity must be greater than 0.
-
-
Method Details
-
getTask
Return the task that is carried out by the method.- Returns:
- the task carried out by the method.
-
setTask
Set the task carried out by the method.- Parameters:
task
- the task the carried out by the method.
-
getSubTasks
Return the subtasks of the method.- Returns:
- the subtasks of the method.
-
setSubTasks
Set the subtasks of the method.- Parameters:
tasks
- the subtasks to set.
-
getOrderingConstraints
Return the ordering constraints of the method.- Returns:
- the ordering constraints of the method.
-
setOrderingConstraints
Set the new ordering constraints of the method.- Parameters:
ordering
- the orderings constraints to set
-
getConstraints
Returns the logical constraints between the tasks of the task network.- Returns:
- the logical constraints of the task network.
-
setConstraints
Sets the logical constraints between the tasks of the task network.- Parameters:
constraints
- The constraints to set.
-
getTaskNetwork
Returns the task network of this method.- Returns:
- the task network of this method.
-
setTaskNetwork
Set the task network of this method.- Parameters:
taskNetwork
- the task network to set.
-