org.drools.common
Class MultipleBetaConstraint

java.lang.Object
  extended by org.drools.common.MultipleBetaConstraint
All Implemented Interfaces:
Externalizable, Serializable, BetaConstraints
Direct Known Subclasses:
DoubleBetaConstraints, QuadroupleBetaConstraints, TripleBetaConstraints

public abstract class MultipleBetaConstraint
extends Object
implements BetaConstraints

See Also:
Serialized Form

Field Summary
protected  BetaNodeFieldConstraint[] constraints
           
protected  boolean[] indexed
           
 
Constructor Summary
MultipleBetaConstraint()
           
MultipleBetaConstraint(BetaNodeFieldConstraint[] constraints, RuleBaseConfiguration conf, boolean disableIndexing)
           
 
Method Summary
 BetaMemory createBetaMemory(RuleBaseConfiguration config, short nodeType)
           
 ContextEntry[] createContext()
           
 BetaNodeFieldConstraint[] getConstraints()
           
 int getIndexCount()
           
 void init(BuildContext context, short betaNodeType)
           
 void initIndexes(int depth, short betaNodeType)
           
 boolean isEmpty()
           
 boolean isIndexed()
           
 boolean isLeftUpdateOptimizationAllowed()
           
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.drools.common.BetaConstraints
getListenedPropertyMask, getOriginalConstraint, isAllowedCachedLeft, isAllowedCachedRight, resetFactHandle, resetTuple, updateFromFactHandle, updateFromTuple
 

Field Detail

constraints

protected BetaNodeFieldConstraint[] constraints

indexed

protected boolean[] indexed
Constructor Detail

MultipleBetaConstraint

public MultipleBetaConstraint()

MultipleBetaConstraint

public MultipleBetaConstraint(BetaNodeFieldConstraint[] constraints,
                              RuleBaseConfiguration conf,
                              boolean disableIndexing)
Method Detail

readExternal

public final void readExternal(ObjectInput in)
                        throws IOException,
                               ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public final void writeExternal(ObjectOutput out)
                         throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

init

public final void init(BuildContext context,
                       short betaNodeType)
Specified by:
init in interface BetaConstraints

initIndexes

public final void initIndexes(int depth,
                              short betaNodeType)
Specified by:
initIndexes in interface BetaConstraints

isIndexed

public final boolean isIndexed()
Specified by:
isIndexed in interface BetaConstraints

getIndexCount

public final int getIndexCount()
Specified by:
getIndexCount in interface BetaConstraints

createBetaMemory

public BetaMemory createBetaMemory(RuleBaseConfiguration config,
                                   short nodeType)
Specified by:
createBetaMemory in interface BetaConstraints

getConstraints

public final BetaNodeFieldConstraint[] getConstraints()
Specified by:
getConstraints in interface BetaConstraints

createContext

public final ContextEntry[] createContext()
Specified by:
createContext in interface BetaConstraints

isEmpty

public final boolean isEmpty()
Specified by:
isEmpty in interface BetaConstraints

isLeftUpdateOptimizationAllowed

public boolean isLeftUpdateOptimizationAllowed()
Specified by:
isLeftUpdateOptimizationAllowed in interface BetaConstraints


Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.