public class SearchNode
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
SearchNode |
backPointer
The search node for the previous state that generated this node's state.
|
GroundedAction |
generatingAction
The action that generated this state in the previous state.
|
HashableState |
s
The (hashed) state of this node
|
Constructor and Description |
---|
SearchNode(HashableState s)
Constructs a SearchNode for the input state.
|
SearchNode(HashableState s,
GroundedAction ga,
SearchNode bp)
Constructs a SearchNode for the input state and sets the generating action and back pointer to the provided elements.
|
public HashableState s
public GroundedAction generatingAction
public SearchNode backPointer
public SearchNode(HashableState s)
s
- the hashed input state this node will represent.public SearchNode(HashableState s, GroundedAction ga, SearchNode bp)
s
- the hashed input state this node will represent.ga
- the action that was used to generate sbp
- the search node that contains the previous state from which s was generated.