org.drools.spi
Interface Restriction
- All Superinterfaces:
- Cloneable, Externalizable, Serializable
- All Known Implementing Classes:
- AbstractCompositeRestriction, LiteralRestriction, PredicateConstraint, ReturnValueRestriction, UnificationRestriction, VariableRestriction
public interface Restriction
- extends Externalizable, Cloneable
getRequiredDeclarations
Declaration[] getRequiredDeclarations()
isAllowed
boolean isAllowed(InternalReadAccessor extractor,
InternalFactHandle handle,
InternalWorkingMemory workingMemory,
ContextEntry context)
isAllowedCachedLeft
boolean isAllowedCachedLeft(ContextEntry context,
InternalFactHandle handle)
isAllowedCachedRight
boolean isAllowedCachedRight(LeftTuple tuple,
ContextEntry context)
createContextEntry
ContextEntry createContextEntry()
replaceDeclaration
void replaceDeclaration(Declaration oldDecl,
Declaration newDecl)
- A restriction may be required to replace an old
declaration object by a new updated one
- Parameters:
oldDecl
- newDecl
-
getEvaluator
Evaluator getEvaluator()
isTemporal
boolean isTemporal()
- Returns true if this is a temporal restriction
- Returns:
clone
Object clone()
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.