|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.columbia.cs.ref.model.constraint.role.impl.MatchRoleConstraint
public class MatchRoleConstraint
The Class MatchRoleConstraint is an implementation of the RoleConstraint that uses a given Entity matcher and an entity to check if the new entity can match the original entity.
Constructor Summary | |
---|---|
MatchRoleConstraint(EntityMatcher entityMatcher,
Entity original)
Instantiates a new match role constraint. |
Method Summary | |
---|---|
boolean |
checkConstraint(Entity role)
Check check if the input entity fulfills the constraint |
java.util.Set<Entity> |
getCompatibleEntities(java.util.Set<Entity> entities)
Returns the subset of all the input entities that fulfill the constraint |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MatchRoleConstraint(EntityMatcher entityMatcher, Entity original)
entityMatcher
- the entity matcheroriginal
- the original entityMethod Detail |
---|
public boolean checkConstraint(Entity role)
RoleConstraint
checkConstraint
in interface RoleConstraint
role
- the entity
public java.util.Set<Entity> getCompatibleEntities(java.util.Set<Entity> entities)
RoleConstraint
getCompatibleEntities
in interface RoleConstraint
entities
- the entities to be checked
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |