|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcreek.representation.constraints.ConstraintObject
Super class for the constraint object classes.
Constraint object is the object describing the behaviour of the constraints.
The behaviour of the constraint is defined by the check method
Field Summary | |
protected KnowledgeModel |
km
|
protected java.lang.String |
rel
|
Constructor Summary | |
ConstraintObject()
|
Method Summary | |
abstract ConstraintCheckResult |
check(Entity from)
Checks whether the constraint is violated or not. |
RelationType |
getRelation()
Returns the relation type that the constraint constrains |
abstract Constraint |
newConstraintInstance(KnowledgeModel km,
ConstraintData data)
Creates a Constraint object of a specific type |
void |
setKnowledgeModel(KnowledgeModel km)
Sets the knowledge model the constraint shal bellong to |
void |
setRelation(RelationType relType)
Sets the relation type the constraint shall constrain |
abstract java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected transient KnowledgeModel km
protected java.lang.String rel
Constructor Detail |
public ConstraintObject()
Method Detail |
public abstract ConstraintCheckResult check(Entity from)
Should be augmented to offer some feedback about the violations. Until that is made, feedback is just printed to System.out.
public abstract Constraint newConstraintInstance(KnowledgeModel km, ConstraintData data)
km
- the knowledge model that the constraint shall bellong todata
- the ConstraintData object to be contained by the constriantpublic abstract java.lang.String toString()
public void setRelation(RelationType relType)
relType
- the relation typepublic void setKnowledgeModel(KnowledgeModel km)
km
- the KnowledgeModelpublic RelationType getRelation()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |