org.drools.common
Class DefaultBetaConstraints

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

public class DefaultBetaConstraints
extends Object
implements BetaConstraints

See Also:
Serialized Form

Constructor Summary
DefaultBetaConstraints()
           
DefaultBetaConstraints(BetaNodeFieldConstraint[] constraints, RuleBaseConfiguration conf)
           
DefaultBetaConstraints(BetaNodeFieldConstraint[] constraints, RuleBaseConfiguration conf, boolean disableIndexing)
           
 
Method Summary
static boolean compositeAllowed(BetaNodeFieldConstraint[] constraints)
           
 BetaMemory createBetaMemory(RuleBaseConfiguration config)
           
 ContextEntry[] createContext()
           
 boolean equals(Object object)
          Determine if another object is equal to this.
 LinkedList getConstraints()
           
 int getIndexCount()
           
 BetaConstraints getOriginalConstraint()
           
 int hashCode()
           
 boolean isAllowedCachedLeft(ContextEntry[] context, InternalFactHandle handle)
           
 boolean isAllowedCachedRight(ContextEntry[] context, LeftTuple tuple)
           
 boolean isEmpty()
           
static boolean isIndexable(BetaNodeFieldConstraint constraint)
           
 boolean isIndexed()
           
 void readExternal(ObjectInput in)
           
 void resetFactHandle(ContextEntry[] context)
           
 void resetTuple(ContextEntry[] context)
           
static void swap(BetaNodeFieldConstraint[] constraints, int p1, int p2)
           
 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
 

Constructor Detail

DefaultBetaConstraints

public DefaultBetaConstraints()

DefaultBetaConstraints

public DefaultBetaConstraints(BetaNodeFieldConstraint[] constraints,
                              RuleBaseConfiguration conf)

DefaultBetaConstraints

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

compositeAllowed

public static boolean compositeAllowed(BetaNodeFieldConstraint[] constraints)

swap

public static void swap(BetaNodeFieldConstraint[] constraints,
                        int p1,
                        int p2)

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

createContext

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

isIndexable

public static boolean isIndexable(BetaNodeFieldConstraint constraint)

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

resetTuple

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

resetFactHandle

public void resetFactHandle(ContextEntry[] context)
Specified by:
resetFactHandle 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)
Specified by:
createBetaMemory in interface BetaConstraints

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getConstraints

public LinkedList 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.

getOriginalConstraint

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


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.