Package edu.uky.ai.planning.ss
Class ForwardNode
java.lang.Object
edu.uky.ai.planning.ss.ForwardNode
- All Implemented Interfaces:
StateSpaceNode
- Direct Known Subclasses:
ForwardRoot
Represents a node in a forward state space search graph, where a node is a
state and the plan taken to reach that state from the initial state.
- Author:
- Stephen G. Ware
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ForwardNode
This node's parent node (i.e.final ForwardPlan
The plan taken to reach this statefinal State
The current state -
Method Summary
Modifier and TypeMethodDescriptionExpands the child node that would be generated by taking this step.getPlan()
Returns the plan this node represents.final ForwardRoot
getRoot()
Returns the root node of the search space.toString()
-
Field Details
-
plan
The plan taken to reach this state -
state
The current state -
parent
This node's parent node (i.e. the state before the last step)
-
-
Method Details
-
toString
-
getPlan
Description copied from interface:StateSpaceNode
Returns the plan this node represents.- Specified by:
getPlan
in interfaceStateSpaceNode
- Returns:
- the plan
-
getRoot
Description copied from interface:StateSpaceNode
Returns the root node of the search space.- Specified by:
getRoot
in interfaceStateSpaceNode
- Returns:
- the root
-
expand
Expands the child node that would be generated by taking this step. If the parent has not yet been visited, the parent is marked as visited.- Parameters:
step
- the step which results in the child statestate
- the child state- Returns:
- a node for the resulting state
-