edu.columbia.cs.ref.model.constraint.relationship
Interface RelationshipConstraint

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AndRelationshipConstraint, DistanceBetweenEntitiesConstraint, DummyRelationshipConstraint, EntitiesOrderNotRelevantConstraint, OrRelationshipConstraint, WordDistanceBetweenEntities

public interface RelationshipConstraint
extends java.io.Serializable

The Interface RelationshipConstraint represents a constraint over a given relationship.

This interface only demands the implementation of one method which is the checkConstraint method which is responsible for checking if a given relationship fulfills the constraint.

Since:
2011-09-27
Version:
0.1
Author:
Pablo Barrio, Goncalo Simoes

Method Summary
 boolean checkConstraint(Relationship rel)
          Checks if the relationship constraint is fulfilled on the input relationship.
 

Method Detail

checkConstraint

boolean checkConstraint(Relationship rel)
Checks if the relationship constraint is fulfilled on the input relationship.

Parameters:
rel - the relationship where the constraint is to be checked
Returns:
true, if successful