public class

UnweightedNode

extends AbstractNode<A, S, N extends AbstractNode<A, S, N>>
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>

Class Overview

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>.

Summary

[Expand]
Inherited Fields
From class es.usc.citius.hipster.model.AbstractNode
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
From class es.usc.citius.hipster.model.AbstractNode
From class java.lang.Object
From interface es.usc.citius.hipster.model.Node

Public Constructors

public UnweightedNode (UnweightedNode<A, S> previousNode, S state, A action)

Creates an unweighted node based on the parent, a state and an action.

Parameters
previousNode parent node
state state of the new node
action action connecting the parent node and the new one

public UnweightedNode (UnweightedNode<A, S> previousNode, Transition<A, S> transition)

Creates an unweighted node based on the parent and the transition between them.

Parameters
previousNode parent node
transition transition connecting the parent node and the new one

Public Methods

public static 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.

Parameters
previousNode parent node
state state of the node to be created
Returns
  • new node for the state specified, without need of specifying the action connecting them