public interface Constraint extends RuleComponent, Externalizable, Cloneable
Modifier and Type | Interface and Description |
---|---|
static class |
Constraint.ConstraintType
An enum for Constraint Types
|
Modifier and Type | Method and Description |
---|---|
Constraint |
clone()
Clones the constraint
|
Declaration[] |
getRequiredDeclarations()
Returns all the declarations required by the given
constraint implementation.
|
Constraint.ConstraintType |
getType()
Returns the type of the constraint, either ALPHA, BETA or UNKNOWN
|
boolean |
isTemporal()
Returns true in case this constraint is a temporal constraint
|
void |
replaceDeclaration(Declaration oldDecl,
Declaration newDecl)
When a rule contains multiple logical branches, i.e., makes
use of 'OR' CE, it is required to clone patterns and declarations
for each logical branch.
|
readExternal, writeExternal
Declaration[] getRequiredDeclarations()
void replaceDeclaration(Declaration oldDecl, Declaration newDecl)
oldDecl
- newDecl
- Constraint clone()
Constraint.ConstraintType getType()
boolean isTemporal()
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.