public class BuildUtils extends Object
| Constructor and Description |
|---|
BuildUtils() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBuilder(Class<?> target,
ReteooComponentBuilder builder)
Adds the given builder for the given target to the builders map
|
<T extends BaseNode> |
attachNode(BuildContext context,
T candidate)
Attaches a node into the network.
|
TemporalDependencyMatrix |
calculateTemporalDistance(GroupElement groupElement)
Calculates the temporal distance between all event patterns in the given
subrule.
|
void |
checkUnboundDeclarations(BuildContext context,
Declaration[] declarations)
Make sure the required declarations are previously bound
|
BetaConstraints |
createBetaNodeConstraint(BuildContext context,
List<BetaNodeFieldConstraint> list,
boolean disableIndexing)
Creates and returns a BetaConstraints object for the given list of constraints
|
ReteooComponentBuilder |
getBuilderFor(Class cls) |
ReteooComponentBuilder |
getBuilderFor(RuleConditionElement target)
Returns a builder for the given target from the builders map
|
public void addBuilder(Class<?> target, ReteooComponentBuilder builder)
public ReteooComponentBuilder getBuilderFor(RuleConditionElement target)
public ReteooComponentBuilder getBuilderFor(Class cls)
public <T extends BaseNode> T attachNode(BuildContext context, T candidate)
context - The current build contextcandidate - The node to attach.public BetaConstraints createBetaNodeConstraint(BuildContext context, List<BetaNodeFieldConstraint> list, boolean disableIndexing)
context - the current build contextlist - the list of constraintspublic void checkUnboundDeclarations(BuildContext context, Declaration[] declarations) throws InvalidPatternException
declarations - InvalidPatternExceptionpublic TemporalDependencyMatrix calculateTemporalDistance(GroupElement groupElement)
groupElement - the root element of a subrule being added to the rulebaseCopyright © 2001–2016 JBoss by Red Hat. All rights reserved.