net.sf.myra.framework
Interface Constraint


public interface Constraint

The Constraint interface represents problem constraints that may be used in the trail construction procedure.

Version:
$Revision$ $Date:: $
Author:
Fernando Esteban Barril Otero

Method Summary
 void check(Trail trail, Vertex<?> vertex)
          Checks if the specified node can be added to the trail.
 

Method Detail

check

void check(Trail trail,
           Vertex<?> vertex)
           throws UnsatisfiedConstraintException
Checks if the specified node can be added to the trail.

Parameters:
trail - the current trail.
vertex - the node to be added to the trail.
Throws:
UnsatisfiedConstraintException


Copyright © 2013. All Rights Reserved.