Package org.drools.core.common
Class SingleBetaConstraints
- java.lang.Object
-
- org.drools.core.common.SingleBetaConstraints
-
- All Implemented Interfaces:
Externalizable,Serializable,BetaConstraints
public class SingleBetaConstraints extends Object implements BetaConstraints
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected BetaNodeFieldConstraintconstraintprotected booleandisableIndexprotected booleanindexed
-
Constructor Summary
Constructors Constructor Description SingleBetaConstraints()SingleBetaConstraints(BetaNodeFieldConstraint[] constraint, RuleBaseConfiguration conf)SingleBetaConstraints(BetaNodeFieldConstraint constraint, RuleBaseConfiguration conf)SingleBetaConstraints(BetaNodeFieldConstraint constraint, RuleBaseConfiguration conf, boolean disableIndex)
-
Method Summary
-
-
-
Field Detail
-
constraint
protected BetaNodeFieldConstraint constraint
-
indexed
protected boolean indexed
-
disableIndex
protected transient boolean disableIndex
-
-
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:
initin interfaceBetaConstraints
-
initIndexes
public void initIndexes(int depth, short betaNodeType, RuleBaseConfiguration config)- Specified by:
initIndexesin interfaceBetaConstraints
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
cloneIfInUse
public SingleBetaConstraints cloneIfInUse()
- Specified by:
cloneIfInUsein interfaceBetaConstraints
-
createContext
public ContextEntry[] createContext()
- Specified by:
createContextin interfaceBetaConstraints
-
updateFromTuple
public void updateFromTuple(ContextEntry[] context, ReteEvaluator reteEvaluator, Tuple tuple)
- Specified by:
updateFromTuplein interfaceBetaConstraints
-
updateFromFactHandle
public void updateFromFactHandle(ContextEntry[] context, ReteEvaluator reteEvaluator, InternalFactHandle handle)
- Specified by:
updateFromFactHandlein interfaceBetaConstraints
-
isAllowedCachedLeft
public boolean isAllowedCachedLeft(ContextEntry[] context, InternalFactHandle handle)
- Specified by:
isAllowedCachedLeftin interfaceBetaConstraints
-
isAllowedCachedRight
public boolean isAllowedCachedRight(ContextEntry[] context, Tuple tuple)
- Specified by:
isAllowedCachedRightin interfaceBetaConstraints
-
isIndexed
public boolean isIndexed()
- Specified by:
isIndexedin interfaceBetaConstraints
-
getIndexCount
public int getIndexCount()
- Specified by:
getIndexCountin interfaceBetaConstraints
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceBetaConstraints
-
createBetaMemory
public BetaMemory createBetaMemory(RuleBaseConfiguration config, short nodeType)
- Specified by:
createBetaMemoryin interfaceBetaConstraints
-
getConstraint
public BetaNodeFieldConstraint getConstraint()
-
getConstraints
public BetaNodeFieldConstraint[] getConstraints()
- Specified by:
getConstraintsin interfaceBetaConstraints
-
equals
public boolean equals(Object object)
Determine if another object is equal to this.
-
resetFactHandle
public void resetFactHandle(ContextEntry[] context)
- Specified by:
resetFactHandlein interfaceBetaConstraints
-
resetTuple
public void resetTuple(ContextEntry[] context)
- Specified by:
resetTuplein interfaceBetaConstraints
-
getOriginalConstraint
public BetaConstraints getOriginalConstraint()
- Specified by:
getOriginalConstraintin interfaceBetaConstraints
-
getListenedPropertyMask
public BitMask getListenedPropertyMask(ObjectType modifiedType, List<String> settableProperties)
- Specified by:
getListenedPropertyMaskin interfaceBetaConstraints
-
isLeftUpdateOptimizationAllowed
public boolean isLeftUpdateOptimizationAllowed()
- Specified by:
isLeftUpdateOptimizationAllowedin interfaceBetaConstraints
-
registerEvaluationContext
public void registerEvaluationContext(BuildContext buildContext)
- Specified by:
registerEvaluationContextin interfaceBetaConstraints
-
-