Package fr.uga.pddl4j.plan
Class Hierarchy
java.lang.Object
fr.uga.pddl4j.plan.Hierarchy
- All Implemented Interfaces:
Serializable
This abstract class implements the main methods to manipulate the hierarchical information of a plan.
- Since:
- 4.0
- See Also:
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns if a hierarchy is equals to an other object.Returns the list of compound tasks of the hierarchy and corresponding task IDs.Returns the decomposition of the compound task.Returns the list of primitive tasks of the hierarchy and corresponding task IDs.Returns the root tasks of the hierarchy.int
hashCode()
Returns the hashcode value of this hierarchy.
-
Constructor Details
-
Hierarchy
public Hierarchy()Creates a new empty hierarchy. -
Hierarchy
Creates a deep copy of an existing hierarchy.- Parameters:
other
- the existing hierarchy.
-
-
Method Details
-
getRootTasks
Returns the root tasks of the hierarchy.- Returns:
- the root tasks of the hierarchy.
-
getPrimtiveTasks
Returns the list of primitive tasks of the hierarchy and corresponding task IDs.- Returns:
- the list of primitive tasks of the hierarchy and corresponding task IDs.
-
getCounpoudTasks
Returns the list of compound tasks of the hierarchy and corresponding task IDs.- Returns:
- the list of compound tasks of the hierarchy and corresponding task IDs.
-
getDecomposition
Returns the decomposition of the compound task. Task IDs are used as key of the map return. Only cooumpund task has a entry in the map.- Returns:
- the decomposition of the compound task.
-
equals
Returns if a hierarchy is equals to an other object. The method returnstrue
if the other object is an instance of the class hierarchy and has the same root tasks, primitives and compund tasks set and decomposition. -
hashCode
public int hashCode()Returns the hashcode value of this hierarchy.
-