| Package | Description |
|---|---|
| de.mgmechanics.jdecisiontablelib.dt |
| Modifier and Type | Method and Description |
|---|---|
Rule |
Rule.clone()
This method returns a clone of this rule.
|
Rule |
Decisiontable.getRule(int rulePos)
This method returns a reference to the rule from a given position in the decision table.
|
Rule[] |
Decisiontable.getValidRules()
Get all valid rules from the decision table.
|
Rule |
Decisiontable.removeRule(int rulePos)
This method removes a rule.
After the last rule was removed a new rule with default values (see class Rule) will be created. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Rule.isDisjunct(Rule other)
Same as isDisjunct(Rule other, true).
|
boolean |
Rule.isDisjunct(Rule other,
boolean setCheckFailedFlag)
This method compares this rule with another rule for being disjunct.
Two rules are disjunct if one rule has a "Yes" decision at a position and the other one has "No" decision on this position. In the following examples "-" is written for a "don't care" - , "Y" for a "Yes" - and "Y" for a "No" - decision. Example 1 - Rule A and B are disjunct: rule A: Y N Y - Yrule B: Y N - N N---------------------^The arrow ---^ points to the position which makes the rules disjunct. Example 2 - Rule C and D are not disjunct: rule C: Y N Y -rule D: Y N - N |
| Constructor and Description |
|---|
Decisiontable(ArrayList<Rule> rules,
ArrayList<Node> nodes)
Create a new decision table from list of nodes and rules.
This constructor is meant for cloning a decision table only. |
Copyright © 2013. All Rights Reserved.