jcreek.representation.constraints
Class GeneralConstraint
java.lang.Object
jcreek.representation.constraints.Constraint
jcreek.representation.constraints.GeneralConstraint
- public class GeneralConstraint
- extends Constraint
General constraint.
Provides the ability to write arbitrary complex constraints using Java code.
- Author:
- Martin Stige
Method Summary |
java.lang.String |
getConstraintString()
Returns the constraint string, source code |
void |
setConstraintString(java.lang.String constraintString)
Sets the constraint string, the source code |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GeneralConstraint
public GeneralConstraint(KnowledgeModel knowledgeModel,
java.lang.String constraintString,
java.lang.String description)
- Creates a new instance of GeneralConstraint
- Parameters:
knowledgeModel
- the knowledge modelconstraintString
- the source code describing the constraintdescription
- description of the constraint
GeneralConstraint
public GeneralConstraint(KnowledgeModel km,
ConstraintData data)
- Creates a new instance of CardinalityConstraint from a constraint data object
- Parameters:
km
- the knowledge modeldata
- the constraint data to be contained in the constraint
setConstraintString
public void setConstraintString(java.lang.String constraintString)
- Sets the constraint string, the source code
- Parameters:
constraintString
- the string containing the source code
getConstraintString
public java.lang.String getConstraintString()
- Returns the constraint string, source code
Created at IDI, NTNU by the Artificial Intelligence and Learning group