|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcreek.representation.constraints.Constraint
jcreek.representation.constraints.ValueRangeConstraint
Offers the ability to constrain the value of nummerical slots. You can either define an allowed range of values or a range that is not allowed
Field Summary |
Fields inherited from class jcreek.representation.constraints.Constraint |
constraintData, knowledgeModel |
Constructor Summary | |
ValueRangeConstraint(KnowledgeModel knowledgeModel,
ConstraintData constraintData)
|
|
ValueRangeConstraint(KnowledgeModel knowledgeModel,
RelationType rel,
java.lang.Number numberMin,
java.lang.Number numberMax,
boolean allowed,
java.lang.String description)
Creates a new instance of ValueRangeConsraint |
Method Summary | |
boolean |
getAllowed()
Returns whether the range are allowed or not |
java.lang.Number |
getMax()
Returns the maximum number of the range |
java.lang.Number |
getMin()
Returns the minimum number of the range |
void |
setAllowed(boolean b)
Sets whether the value range shall be the allowed values or disallowed values. |
void |
setMax(java.lang.Number max)
Sets the maximum number of the range |
void |
setMin(java.lang.Number min)
Sets the minimum number of the range |
Methods inherited from class jcreek.representation.constraints.Constraint |
check, equals, getConstraintData, getDescription, getID, getRelation, setDescription, setKnowledgeModel, setRelation, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ValueRangeConstraint(KnowledgeModel knowledgeModel, RelationType rel, java.lang.Number numberMin, java.lang.Number numberMax, boolean allowed, java.lang.String description)
public ValueRangeConstraint(KnowledgeModel knowledgeModel, ConstraintData constraintData)
Method Detail |
public void setAllowed(boolean b)
b
- allowed or notpublic boolean getAllowed()
public void setMin(java.lang.Number min)
min
- the minimum valuepublic java.lang.Number getMin()
public void setMax(java.lang.Number max)
max
- the maximum valuepublic java.lang.Number getMax()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |