public interface

HeuristicNode

implements CostNode<A, S, C extends Comparable<C>, N extends CostNode<A, S, C, N>>
es.usc.citius.hipster.model.HeuristicNode<A, S, C extends java.lang.Comparable<C>, N extends es.usc.citius.hipster.model.HeuristicNode<A, S, C, N>>
Known Indirect Subclasses

Class Overview

Type of node which stores an estimated (heuristic) cost to the goal, extending the interface of a cost node CostNode. Cost and heuristic are of the same type and must be comparable. This type of node is used by algorithms which store information about the cost from the cost and use a heuristic function to estimate the cost to the goal.

Summary

Public Methods
abstract C getEstimation()
Return the estimated cost to goal state from the current state.
abstract C getScore()
Retrieves the total cost (typically f = g + h) of this node, where g = getCost() and h = getEstimation()
[Expand]
Inherited Methods
From interface es.usc.citius.hipster.model.CostNode
From interface es.usc.citius.hipster.model.Node
From interface java.lang.Comparable

Public Methods

public abstract C getEstimation ()

Return the estimated cost to goal state from the current state.

Returns
  • cost estimation.

public abstract C getScore ()

Retrieves the total cost (typically f = g + h) of this node, where g = getCost() and h = getEstimation()

Returns
  • total cost (f function).