Package fr.uga.pddl4j.problem
Class Task
java.lang.Object
fr.uga.pddl4j.problem.AbstractAtomicFormula
fr.uga.pddl4j.problem.Task
- All Implemented Interfaces:
AtomicFormula
,Serializable
This class implements a task used in HTN planning.
- Since:
- 4.0
- See Also:
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if the task is a primitive task.void
setPrimtive(boolean flag)
Set the boolean flag used to specified if the task is a primitive task to a specified value.Methods inherited from class fr.uga.pddl4j.problem.AbstractAtomicFormula
arity, equals, getArguments, getSymbol, hashCode, setArguments, setSymbol, toString
-
Constructor Details
-
Task
Create a new task from an other one. This constructor make a deep copy of the specified task.- Parameters:
other
- the task.
-
Task
public Task(int symbol, int[] arguments, boolean flag)Creates a new atomic formula with a specified symbol and list of arguments.- Parameters:
symbol
- the symbol of the atomic formula.arguments
- the list of arguments of the atomic formula.flag
- the flag used to indicates that the task is primitive or not.
-
-
Method Details
-
isPrimtive
public final boolean isPrimtive()Returnstrue
if the task is a primitive task.- Returns:
true
if the task is a primitive task,false
otherwise.
-
setPrimtive
public final void setPrimtive(boolean flag)Set the boolean flag used to specified if the task is a primitive task to a specified value.- Parameters:
flag
- the flag.
-