|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.columbia.cs.ref.model.constraint.relationship.impl.DistanceBetweenEntitiesConstraint
public class DistanceBetweenEntitiesConstraint
The Class DistanceBetweenEntitiesConstraint is an implementation of RelationshipConstraint that checks if the number of characters between entities is less than a given value passed to the constructor.
Constructor Summary | |
---|---|
DistanceBetweenEntitiesConstraint(int k)
Instantiates a new distance between entities constraint. |
|
DistanceBetweenEntitiesConstraint(java.lang.Integer k)
Instantiates a new distance between entities constraint. |
Method Summary | |
---|---|
boolean |
checkConstraint(Relationship rel)
Checks if the relationship constraint is fulfilled on the input relationship. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DistanceBetweenEntitiesConstraint(int k)
k
- the kpublic DistanceBetweenEntitiesConstraint(java.lang.Integer k)
k
- the kMethod Detail |
---|
public boolean checkConstraint(Relationship rel)
RelationshipConstraint
checkConstraint
in interface RelationshipConstraint
rel
- the relationship where the constraint is to be checked
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |