Class PFDNode

All Implemented Interfaces:
Serializable

public final class PFDNode extends AbstractSTNNode
This class implements a node for the PFDPlanner planner of the PDDL4J library.
Since:
4.0
See Also:
Serialized Form
  • Constructor Details

    • PFDNode

      public PFDNode(PFDNode other)
      Creates a new node from an other. This constructor creates a deep copy of the node in parameters.
      Parameters:
      other - the node to be copied.
    • PFDNode

      public PFDNode()
      Creates a new empty node with an empty state and an empty task network. The parent node is set to null, the operator is set to DEFAULT_OPERATOR and the task is set to DEFAULT_TASK.
    • PFDNode

      public PFDNode(State state, TaskNetwork taskNetwork)
      Creates a new node with a specified state and task network. The parent node is set to null, the operator is set to DEFAULT_OPERATOR and the task is set to DEFAULT_TASK.
      Parameters:
      state - state of this node.
      taskNetwork - the task network of the node.
    • PFDNode

      public PFDNode(State state, TaskNetwork taskNetwork, PFDNode parent, int operator, int task)
      Creates a new node with a specified state and task network.
      Parameters:
      state - srate of this node.
      taskNetwork - the task network of the node.
      parent - the parent node of the node.
      operator - the index of the operator applied to reach the node.
      task - the task processed in this node.
  • Method Details

    • getTaskNetwork

      public final TaskNetwork getTaskNetwork()
      Returns the task network of the node. The task network describes the set of tasks to be accomplished and their constraints that have to be verified.
      Returns:
      the task network of the node.
    • setTaskNetwork

      public final void setTaskNetwork(TaskNetwork taskNetwork)
      Sets the tasks network of the node. The task network describes the set of tasks to be accomplished and their constraints that have to be verified.
      Parameters:
      taskNetwork - the task network of the node.
    • equals

      public boolean equals(Object obj)
      Returns true if a node is equals to an other object. An object is equals to this node if and only if the other object is an instance of PFDNode and have the same task network.
      Overrides:
      equals in class Object
      Parameters:
      obj - the object to be compared.
      Returns:
      true if a node is equals to an other object, false otherwise.
      See Also:
      Object.equals(java.lang.Object)
    • hashCode

      public int hashCode()
      Returns the hash code value of the node.
      Overrides:
      hashCode in class Object
      Returns:
      the hash code value of the node.
      See Also:
      Object.hashCode()