Menu

how to remove irrelevant condition stubs?

A relevant condition stub is a condition stub that cannot be removed safely. If you remove it, your decision table will not be complete.
When we say a condition stub is irrelevant, it means that the decision rules won't change if we remove this condition stub from the decision table.


Vector<DecisionRule> rules = makeExample();

IrrelevantConditionStubRemover remover = new IrrelevantConditionStubRemover(
rules);
rules = remover.removeIrrelevantConditionStubs(new String[] { "C1" });
System.err.println("-----------result-----------" + rules.size());
for (int i = 0; i < rules.size(); i++)
System.err.println(rules.get(i).getInfo());

Posted by Yan Tang Demey 2012-10-18

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.