/** * Gets the rules test. * @author: Yan Tang, VUB, 2009 * @return the rules test */ public static void getRulesTest() { String[][] content = new String[][] { { "CONDITION", "", "", "", "" }, { "C1", "Y", "N", "Y", "N" }, { "C2", "Y", "Y", "N", "N" }, { "ACTION", "", "", "", "" }, { "A1", "/", "*", "/", "/" }, { "A2", "*", "*", "/", "/" } }; DecisionTable table = new DecisionTable(); Vector<DecisionRule> rules = table.getRules(content); for (int i = 0; i < rules.size(); i++) rules.get(i).printToConsole(); }