|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.reteoo.builder.BuildUtils
public class BuildUtils
Utility functions for reteoo build
| Constructor Summary | |
|---|---|
BuildUtils()
|
|
| Method Summary | |
|---|---|
void |
addBuilder(Class<?> target,
ReteooComponentBuilder builder)
Adds the given builder for the given target to the builders map |
BaseNode |
attachNode(BuildContext context,
BaseNode 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(RuleConditionElement target)
Returns a builder for the given target from the builders map |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BuildUtils()
| Method Detail |
|---|
public void addBuilder(Class<?> target,
ReteooComponentBuilder builder)
target - builder - public ReteooComponentBuilder getBuilderFor(RuleConditionElement target)
target -
public BaseNode attachNode(BuildContext context,
BaseNode 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 constraints
public 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 rulebase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||