public class SingleBetaConstraints extends Object implements BetaConstraints
Modifier and Type | Field and Description |
---|---|
protected BetaNodeFieldConstraint |
constraint |
Constructor and Description |
---|
SingleBetaConstraints() |
SingleBetaConstraints(BetaNodeFieldConstraint[] constraint,
RuleBaseConfiguration conf) |
SingleBetaConstraints(BetaNodeFieldConstraint constraint,
RuleBaseConfiguration conf) |
SingleBetaConstraints(BetaNodeFieldConstraint constraint,
RuleBaseConfiguration conf,
boolean disableIndex) |
protected BetaNodeFieldConstraint constraint
public SingleBetaConstraints()
public SingleBetaConstraints(BetaNodeFieldConstraint[] constraint, RuleBaseConfiguration conf)
public SingleBetaConstraints(BetaNodeFieldConstraint constraint, RuleBaseConfiguration conf)
public SingleBetaConstraints(BetaNodeFieldConstraint constraint, RuleBaseConfiguration conf, boolean disableIndex)
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 SingleBetaConstraints cloneIfInUse()
cloneIfInUse
in interface BetaConstraints
public ContextEntry[] createContext()
createContext
in interface BetaConstraints
public void updateFromTuple(ContextEntry[] context, InternalWorkingMemory workingMemory, Tuple tuple)
updateFromTuple
in interface BetaConstraints
public void updateFromFactHandle(ContextEntry[] context, InternalWorkingMemory workingMemory, InternalFactHandle handle)
updateFromFactHandle
in interface BetaConstraints
public boolean isAllowedCachedLeft(ContextEntry[] context, InternalFactHandle handle)
isAllowedCachedLeft
in interface BetaConstraints
public boolean isAllowedCachedRight(ContextEntry[] context, Tuple 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 getConstraint()
public BetaNodeFieldConstraint[] getConstraints()
getConstraints
in interface BetaConstraints
public boolean equals(Object object)
public void resetFactHandle(ContextEntry[] context)
resetFactHandle
in interface BetaConstraints
public void resetTuple(ContextEntry[] context)
resetTuple
in interface BetaConstraints
public BetaConstraints getOriginalConstraint()
getOriginalConstraint
in interface BetaConstraints
public BitMask getListenedPropertyMask(Class modifiedClass, 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–2020 JBoss by Red Hat. All rights reserved.