public class DroolsUniRuleStructure<A> extends DroolsRuleStructure
| Constructor and Description |
|---|
DroolsUniRuleStructure(Class<A> aClass,
LongSupplier varialeIdSupplier) |
DroolsUniRuleStructure(org.drools.model.Variable<A> aVariable,
DroolsPatternBuilder<?> aPattern,
List<org.drools.model.RuleItemBuilder<?>> supportingRuleItems,
LongSupplier variableIdSupplier) |
| Modifier and Type | Method and Description |
|---|---|
org.drools.model.Variable<A> |
getA() |
DroolsPatternBuilder<Object> |
getPrimaryPattern()
Returns the pattern that the subsequent streams may further expand.
|
List<org.drools.model.RuleItemBuilder<?>> |
getSupportingRuleItems()
Every other pattern necessary for the
DroolsRuleStructure.getPrimaryPattern() to function properly within the Drools rule's
left-hand side. |
createVariable, createVariable, createVariable, createVariable, getVariableIdSupplier, rebuildSupportingRuleItemspublic DroolsUniRuleStructure(org.drools.model.Variable<A> aVariable, DroolsPatternBuilder<?> aPattern, List<org.drools.model.RuleItemBuilder<?>> supportingRuleItems, LongSupplier variableIdSupplier)
public DroolsUniRuleStructure(Class<A> aClass, LongSupplier varialeIdSupplier)
public org.drools.model.Variable<A> getA()
public DroolsPatternBuilder<Object> getPrimaryPattern()
DroolsRuleStructure
$a1: A()
$a2: A(this != $a1)
The primary pattern would be the latter one ($a2), as that is the pattern you would use to further expand your
output in both $a1 and $a2.getPrimaryPattern in class DroolsRuleStructurepublic List<org.drools.model.RuleItemBuilder<?>> getSupportingRuleItems()
DroolsRuleStructureDroolsRuleStructure.getPrimaryPattern() to function properly within the Drools rule's
left-hand side. In the example rule (see DroolsRuleStructure.getPrimaryPattern(), this method would return one and only
supporting RuleItemBuilder, the one representing $a1.getSupportingRuleItems in class DroolsRuleStructureCopyright © 2006–2019 JBoss by Red Hat. All rights reserved.