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.
|
Action |
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,
Action ga,
SearchNode bp)
Constructs a SearchNode for the input state and sets the generating action and back pointer to the provided elements.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
public HashableState s
public Action generatingAction
public SearchNode backPointer
public SearchNode(HashableState s)
s
- the hashed input state this node will represent.public SearchNode(HashableState s, Action 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.