Drools :: Core 6.1.0.Beta1

org.drools.core.common
Class SingleBetaConstraints

java.lang.Object
  extended by org.drools.core.common.SingleBetaConstraints
All Implemented Interfaces:
Externalizable, Serializable, BetaConstraints

public class SingleBetaConstraints
extends Object
implements BetaConstraints

See Also:
Serialized Form

Field Summary
protected  BetaNodeFieldConstraint constraint
           
 
Constructor Summary
SingleBetaConstraints()
           
SingleBetaConstraints(BetaNodeFieldConstraint[] constraint, RuleBaseConfiguration conf)
           
SingleBetaConstraints(BetaNodeFieldConstraint constraint, RuleBaseConfiguration conf)
           
SingleBetaConstraints(BetaNodeFieldConstraint constraint, RuleBaseConfiguration conf, boolean disableIndex)
           
 
Method Summary
 SingleBetaConstraints cloneIfInUse()
           
 BetaMemory createBetaMemory(RuleBaseConfiguration config, short nodeType)
           
 ContextEntry[] createContext()
           
 boolean equals(Object object)
          Determine if another object is equal to this.
 BetaNodeFieldConstraint getConstraint()
           
 BetaNodeFieldConstraint[] getConstraints()
           
 int getIndexCount()
           
 long getListenedPropertyMask(List<String> settableProperties)
           
 BetaConstraints getOriginalConstraint()
           
 int hashCode()
           
 void init(BuildContext context, short betaNodeType)
           
 void initIndexes(int depth, short betaNodeType)
           
 boolean isAllowedCachedLeft(ContextEntry[] context, InternalFactHandle handle)
           
 boolean isAllowedCachedRight(ContextEntry[] context, LeftTuple tuple)
           
 boolean isEmpty()
           
 boolean isIndexed()
           
 boolean isLeftUpdateOptimizationAllowed()
           
 void readExternal(ObjectInput in)
           
 void resetFactHandle(ContextEntry[] context)
           
 void resetTuple(ContextEntry[] context)
           
 void updateFromFactHandle(ContextEntry[] context, InternalWorkingMemory workingMemory, InternalFactHandle handle)
           
 void updateFromTuple(ContextEntry[] context, InternalWorkingMemory workingMemory, LeftTuple tuple)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

constraint

protected BetaNodeFieldConstraint constraint
Constructor Detail

SingleBetaConstraints

public SingleBetaConstraints()

SingleBetaConstraints

public SingleBetaConstraints(BetaNodeFieldConstraint[] constraint,
                             RuleBaseConfiguration conf)

SingleBetaConstraints

public SingleBetaConstraints(BetaNodeFieldConstraint constraint,
                             RuleBaseConfiguration conf)

SingleBetaConstraints

public SingleBetaConstraints(BetaNodeFieldConstraint constraint,
                             RuleBaseConfiguration conf,
                             boolean disableIndex)
Method Detail

init

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

initIndexes

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

readExternal

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

writeExternal

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

cloneIfInUse

public SingleBetaConstraints cloneIfInUse()
Specified by:
cloneIfInUse in interface BetaConstraints

createContext

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

updateFromTuple

public void updateFromTuple(ContextEntry[] context,
                            InternalWorkingMemory workingMemory,
                            LeftTuple tuple)
Specified by:
updateFromTuple in interface BetaConstraints

updateFromFactHandle

public void updateFromFactHandle(ContextEntry[] context,
                                 InternalWorkingMemory workingMemory,
                                 InternalFactHandle handle)
Specified by:
updateFromFactHandle in interface BetaConstraints

isAllowedCachedLeft

public boolean isAllowedCachedLeft(ContextEntry[] context,
                                   InternalFactHandle handle)
Specified by:
isAllowedCachedLeft in interface BetaConstraints

isAllowedCachedRight

public boolean isAllowedCachedRight(ContextEntry[] context,
                                    LeftTuple tuple)
Specified by:
isAllowedCachedRight in interface BetaConstraints

isIndexed

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

getIndexCount

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

isEmpty

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

createBetaMemory

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getConstraint

public BetaNodeFieldConstraint getConstraint()

getConstraints

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

equals

public boolean equals(Object object)
Determine if another object is equal to this.

Overrides:
equals in class Object
Parameters:
object - The object to test.
Returns:
true if object is equal to this, otherwise false.

resetFactHandle

public void resetFactHandle(ContextEntry[] context)
Specified by:
resetFactHandle in interface BetaConstraints

resetTuple

public void resetTuple(ContextEntry[] context)
Specified by:
resetTuple in interface BetaConstraints

getOriginalConstraint

public BetaConstraints getOriginalConstraint()
Specified by:
getOriginalConstraint in interface BetaConstraints

getListenedPropertyMask

public long getListenedPropertyMask(List<String> settableProperties)
Specified by:
getListenedPropertyMask in interface BetaConstraints

isLeftUpdateOptimizationAllowed

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

Drools :: Core 6.1.0.Beta1

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