Package org.drools.core.reteoo.builder
Interface ReteooComponentBuilder
-
- All Known Implementing Classes:
AccumulateBuilder
,AsyncReceiveBuilder
,AsyncSendBuilder
,CollectBuilder
,ConditionalBranchBuilder
,EntryPointBuilder
,EvalBuilder
,ForallBuilder
,FromBuilder
,GroupElementBuilder
,GroupElementBuilder.AndBuilder
,GroupElementBuilder.ExistsBuilder
,GroupElementBuilder.NotBuilder
,GroupElementBuilder.OrBuilder
,NamedConsequenceBuilder
,PatternBuilder
,QueryElementBuilder
,ReactiveFromBuilder
,TimerBuilder
,WindowReferenceBuilder
public interface ReteooComponentBuilder
An interface for Reteoo Component builders
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
build(BuildContext context, BuildUtils utils, RuleConditionElement rce)
Builds and attach if needed the given RuleConditionalElementboolean
requiresLeftActivation(BuildUtils utils, RuleConditionElement rce)
A boolean function that indicates if the builder requires a previous left (tuple) activation in order to corretly build the given component.
-
-
-
Method Detail
-
build
void build(BuildContext context, BuildUtils utils, RuleConditionElement rce)
Builds and attach if needed the given RuleConditionalElement- Parameters:
context
- current build contextrce
-
-
requiresLeftActivation
boolean requiresLeftActivation(BuildUtils utils, RuleConditionElement rce)
A boolean function that indicates if the builder requires a previous left (tuple) activation in order to corretly build the given component. In other words, if it returns true and no previous TupleSource is already created, an InitialFact pattern must be added with appropriate left input adapter for the network to be correctly built. For instance, NOT / EXISTS / ACCUMULATE are examples of builders that must return true for this method, while PATTERN must return false.- Parameters:
rce
- the element to be built- Returns:
- true if a tuple source is required, false otherwise.
-
-