public class DefaultBetaConstraints extends Object implements BetaConstraints
Constructor and Description |
---|
DefaultBetaConstraints() |
DefaultBetaConstraints(BetaNodeFieldConstraint[] constraints,
RuleBaseConfiguration conf) |
DefaultBetaConstraints(BetaNodeFieldConstraint[] constraints,
RuleBaseConfiguration conf,
boolean disableIndexing) |
public DefaultBetaConstraints()
public DefaultBetaConstraints(BetaNodeFieldConstraint[] constraints, RuleBaseConfiguration conf)
public DefaultBetaConstraints(BetaNodeFieldConstraint[] constraints, RuleBaseConfiguration conf, boolean disableIndexing)
public DefaultBetaConstraints cloneIfInUse()
cloneIfInUse
in interface BetaConstraints
public void init(BuildContext context, short betaNodeType)
init
in interface BetaConstraints
public void initIndexes(int depth, short betaNodeType)
initIndexes
in interface BetaConstraints
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public ContextEntry[] createContext()
createContext
in interface BetaConstraints
public void updateFromTuple(ContextEntry[] context, InternalWorkingMemory workingMemory, LeftTuple tuple)
updateFromTuple
in interface BetaConstraints
public void updateFromFactHandle(ContextEntry[] context, InternalWorkingMemory workingMemory, InternalFactHandle handle)
updateFromFactHandle
in interface BetaConstraints
public void resetTuple(ContextEntry[] context)
resetTuple
in interface BetaConstraints
public void resetFactHandle(ContextEntry[] context)
resetFactHandle
in interface BetaConstraints
public boolean isAllowedCachedLeft(ContextEntry[] context, InternalFactHandle handle)
isAllowedCachedLeft
in interface BetaConstraints
public boolean isAllowedCachedRight(ContextEntry[] context, LeftTuple tuple)
isAllowedCachedRight
in interface BetaConstraints
public boolean isIndexed()
isIndexed
in interface BetaConstraints
public int getIndexCount()
getIndexCount
in interface BetaConstraints
public boolean isEmpty()
isEmpty
in interface BetaConstraints
public BetaMemory createBetaMemory(RuleBaseConfiguration config, short nodeType)
createBetaMemory
in interface BetaConstraints
public BetaNodeFieldConstraint[] getConstraints()
getConstraints
in interface BetaConstraints
public boolean equals(Object object)
public BetaConstraints getOriginalConstraint()
getOriginalConstraint
in interface BetaConstraints
public BitMask getListenedPropertyMask(List<String> settableProperties)
getListenedPropertyMask
in interface BetaConstraints
public boolean isLeftUpdateOptimizationAllowed()
isLeftUpdateOptimizationAllowed
in interface BetaConstraints
public void registerEvaluationContext(BuildContext buildContext)
registerEvaluationContext
in interface BetaConstraints
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.