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 ForwardNodeThis node's parent node (i.e.final ForwardPlanThe plan taken to reach this statefinal StateThe 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 ForwardRootgetRoot()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:StateSpaceNodeReturns the plan this node represents.- Specified by:
getPlanin interfaceStateSpaceNode- Returns:
- the plan
-
getRoot
Description copied from interface:StateSpaceNodeReturns the root node of the search space.- Specified by:
getRootin 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
-