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


Method Summary
 Object clone()
           
 ContextEntry createContextEntry()
           
 Evaluator getEvaluator()
           
 Declaration[] getRequiredDeclarations()
           
 boolean isAllowed(InternalReadAccessor extractor, InternalFactHandle handle, InternalWorkingMemory workingMemory, ContextEntry context)
           
 boolean isAllowedCachedLeft(ContextEntry context, InternalFactHandle handle)
           
 boolean isAllowedCachedRight(LeftTuple tuple, ContextEntry context)
           
 boolean isTemporal()
          Returns true if this is a temporal restriction
 void replaceDeclaration(Declaration oldDecl, Declaration newDecl)
          A restriction may be required to replace an old declaration object by a new updated one
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 

Method Detail

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.