|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.ide.common.client.modeldriven.brl.RuleModel
org.drools.ide.common.client.modeldriven.dt52.BRLRuleModel
public class BRLRuleModel
A RuleModel that can provide details of bound Facts and Fields from an associated Decision Table. This allows columns using BRL fragments to integrate with Decision Table columns
| Nested Class Summary | |
|---|---|
static class |
BRLRuleModel.ActionInsertFactCol52ActionInsertFactAdaptor
|
static class |
BRLRuleModel.ActionInsertFactCol52ActionInsertLogicalFactAdaptor
|
static class |
BRLRuleModel.ConditionCol52FieldConstraintAdaptor
|
static class |
BRLRuleModel.Pattern52FactPatternAdaptor
|
| Field Summary |
|---|
| Fields inherited from class org.drools.ide.common.client.modeldriven.brl.RuleModel |
|---|
attributes, lhs, metadataList, modelVersion, name, parentName, rhs |
| Constructor Summary | |
|---|---|
BRLRuleModel(GuidedDecisionTable52 dtable)
|
|
| Method Summary | |
|---|---|
List<String> |
getAllLHSVariables()
This will get a list of all LHS bound variables, including bound fields.. |
List<String> |
getAllRHSVariables()
This will get a list of all RHS bound variables. |
List<String> |
getAllVariables()
This will get a list of all bound variables (LHS and RHS), including bound fields.. |
List<String> |
getBoundVariablesInScope(BaseSingleFieldConstraint con)
This uses a deceptively simple algorithm to determine what bound variables are in scope for a given constraint (including connectives). |
String |
getLHSBindingType(String var)
Get the data-type associated with the binding |
FactPattern |
getLHSBoundFact(String var)
This will return the FactPattern that a variable is bound Eto. |
List<String> |
getLHSBoundFacts()
This will return a List |
FieldConstraint |
getLHSBoundField(String var)
This will return the FieldConstraint that a variable is bound to. |
FactPattern |
getLHSParentFactPatternForBinding(String var)
This will return the FactPattern that a variable is bound to. |
ActionInsertFact |
getRHSBoundFact(String var)
This will return the ActionInsertFact that a variable is bound to. |
List<String> |
getRHSBoundFacts()
This will return a List |
boolean |
isBoundFactUsed(String binding)
|
boolean |
isVariableNameUsed(String s)
Checks to see if a variable is used or not, includes fields as well as facts. |
| Methods inherited from class org.drools.ide.common.client.modeldriven.brl.RuleModel |
|---|
addAttribute, addLhsItem, addLhsItem, addLhsItem, addMetadata, addRhsItem, addRhsItem, addRhsItem, getFieldBinding, getFieldBinding, getMetaData, hasDSLSentences, isNegated, moveLhsItemDown, moveLhsItemUp, moveRhsItemDown, moveRhsItemUp, removeAttribute, removeLhsItem, removeMetadata, removeRhsItem, setNegated, updateMetadata |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BRLRuleModel(GuidedDecisionTable52 dtable)
| Method Detail |
|---|
public List<String> getLHSBoundFacts()
RuleModel
getLHSBoundFacts in class RuleModelpublic FactPattern getLHSBoundFact(String var)
RuleModel
getLHSBoundFact in class RuleModelvar - The bound fact variable (NOT bound field).
public FieldConstraint getLHSBoundField(String var)
RuleModel
getLHSBoundField in class RuleModelvar - The bound field variable (NOT bound fact).
public String getLHSBindingType(String var)
RuleModel
getLHSBindingType in class RuleModelpublic FactPattern getLHSParentFactPatternForBinding(String var)
RuleModel
getLHSParentFactPatternForBinding in class RuleModelvar - The variable binding
public List<String> getAllVariables()
RuleModel
getAllVariables in class RuleModelpublic List<String> getAllLHSVariables()
RuleModel
getAllLHSVariables in class RuleModelpublic List<String> getAllRHSVariables()
RuleModel
getAllRHSVariables in class RuleModelpublic boolean isBoundFactUsed(String binding)
isBoundFactUsed in class RuleModelbinding - The name of the LHS fact binding.
public List<String> getBoundVariablesInScope(BaseSingleFieldConstraint con)
RuleModel
getBoundVariablesInScope in class RuleModelpublic boolean isVariableNameUsed(String s)
RuleModel
isVariableNameUsed in class RuleModelpublic List<String> getRHSBoundFacts()
RuleModel
getRHSBoundFacts in class RuleModelpublic ActionInsertFact getRHSBoundFact(String var)
RuleModel
getRHSBoundFact in class RuleModelvar - The bound fact variable (NOT bound field).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||