org.drools.common
Class SingleBetaConstraints

java.lang.Object
  extended by org.drools.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
 BetaMemory createBetaMemory(RuleBaseConfiguration config)
           
 ContextEntry[] createContext()
           
 boolean equals(Object object)
          Determine if another object is equal to this.
 BetaNodeFieldConstraint getConstraint()
           
 LinkedList getConstraints()
           
 int getIndexCount()
           
 BetaConstraints getOriginalConstraint()
           
 int hashCode()
           
 boolean isAllowedCachedLeft(ContextEntry[] context, InternalFactHandle handle)
           
 boolean isAllowedCachedRight(ContextEntry[] context, LeftTuple tuple)
           
 boolean isEmpty()
           
 boolean isIndexed()
           
 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

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

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)
Specified by:
createBetaMemory in interface BetaConstraints

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getConstraint

public BetaNodeFieldConstraint getConstraint()

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.

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


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