站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

ReteooComponentBuilder (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.reteoo.builder
Interface ReteooComponentBuilder

All Known Implementing Classes:
AccumulateBuilder, CollectBuilder, EvalBuilder, ForallBuilder, FromBuilder, GroupElementBuilder, PatternBuilder

public interface ReteooComponentBuilder

An interface for Reteoo Component builders

Author:
etirelli

Method Summary
 void build(BuildContext context, BuildUtils utils, RuleConditionElement rce)
          Builds and attach if needed the given RuleConditionalElement
 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.
 

Method Detail

build

void build(BuildContext context,
           BuildUtils utils,
           RuleConditionElement rce)
Builds and attach if needed the given RuleConditionalElement

Parameters:
context - current build context
rce -

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.


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.