java.lang.Object | ||
↳ | es.usc.citius.hipster.model.AbstractNode<A, S, N extends es.usc.citius.hipster.model.AbstractNode<A, S, N>> | |
↳ | es.usc.citius.hipster.model.impl.UnweightedNode<A, S> |
Simple implementation of a search node which does not keep any information about
costs. If your problem does not use actions, you can use instances of
new UnweightedNode<Void,S>
.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
UnweightedNode(UnweightedNode<A, S> previousNode, S state, A action)
Creates an unweighted node based on the parent, a state and an action.
| |||||||||||
UnweightedNode(UnweightedNode<A, S> previousNode, Transition<A, S> transition)
Creates an unweighted node based on the parent and the transition between
them.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static <S> UnweightedNode<Void, S> |
newNodeWithoutAction(UnweightedNode<Void, S> previousNode, S state)
This static method creates an unweighted node without defining an explicit action, using
the parent node and a state.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates an unweighted node based on the parent, a state and an action.
previousNode | parent node |
---|---|
state | state of the new node |
action | action connecting the parent node and the new one |
Creates an unweighted node based on the parent and the transition between them.
previousNode | parent node |
---|---|
transition | transition connecting the parent node and the new one |
This static method creates an unweighted node without defining an explicit action, using the parent node and a state.
previousNode | parent node |
---|---|
state | state of the node to be created |