net.sf.myra.framework
Interface DecisionPolicy


public interface DecisionPolicy

The DecisionPolicy class represents the selection policy of the trail construction procedure.

Version:
$Revision$ $Date:: $
Author:
Fernando Esteban Barril Otero
See Also:
DefaultTrailFactory

Method Summary
 Vertex<?> select(Graph<?> graph, Trail trail)
          Selects the next vertex to visit based on the partial trail.
 

Method Detail

select

Vertex<?> select(Graph<?> graph,
                 Trail trail)
                 throws NoAvailableVertexException
Selects the next vertex to visit based on the partial trail.

Parameters:
graph - the problem graph.
trail - the partial trail.
Returns:
the next vertex to visit based on the partial trail.
Throws:
NoAvailableVertexException


Copyright © 2013. All Rights Reserved.