org.graffiti.plugin.mode
Interface GraphConstraint


public interface GraphConstraint

A GraphConstraint is a constraint to the graph which can be validated and which is supposed to be satisfied all the time. GraphConstraints can be combined in an arbitrary way.

See Also:
GraphConstraintChecker

Method Summary
 void validate(Graph g)
          Checks whether the specified graph satisfies the defined constraint.
 

Method Detail

validate

void validate(Graph g)
              throws UnsatisfiedConstraintException
Checks whether the specified graph satisfies the defined constraint.

Throws:
UnsatisfiedConstraintException - if the graph does not satisfy the defined constraint.


Generated at 2012-05-30 11:00:36 PM CEST