@Override public List<String> getRHSBoundFacts() { return model.getRHSBoundFacts(); }
@Override public List<String> getRHSBoundFacts() { return model.getRHSBoundFacts(); }
@Override public List<String> getRHSBoundFacts() { final Set<String> variables = new HashSet<>(); for (ActionCol52 col : dtable.getActionCols()) { if (col instanceof ActionInsertFactCol52) { final ActionInsertFactCol52 action = (ActionInsertFactCol52) col; variables.add(action.getBoundName()); } else if (col instanceof BRLActionColumn) { //Delegate to super class's implementation final RuleModel rm = new RuleModel(); final BRLActionColumn brl = (BRLActionColumn) col; rm.rhs = brl.getDefinition().toArray(new IAction[brl.getDefinition().size()]); variables.addAll(rm.getRHSBoundFacts()); } } variables.addAll(super.getRHSBoundFacts()); return new ArrayList<>(variables); }
private String getFactType(String variable) { if (modeller.getModel().getRHSBoundFacts().contains(variable) == false) { return modeller.getModel().getLHSBindingType(variable); } else { return modeller.getModel().getRHSBoundFact(variable).getFactType(); } }
private String getFactType(String variable) { if (modeller.getModel().getRHSBoundFacts().contains(variable) == false) { return modeller.getModel().getLHSBindingType(variable); } else { return modeller.getModel().getRHSBoundFact(variable).getFactType(); } }
@Test public void checkAddCallMethodOnGetsAllBindings() { popup.addCallMethodOn(); verify(model).getAllLHSVariables(); verify(model).getRHSBoundFacts(); }
@Test public void checkAddCallMethodOnGetsAllBindings() { popup.addCallMethodOn(); verify(model).getAllLHSVariables(); verify(model).getRHSBoundFacts(); }
void addCallMethodOn() { List<String> lhsVars = model.getAllLHSVariables(); List<String> rhsVars = model.getRHSBoundFacts(); String[] globals = oracle.getGlobalVariables();
void addCallMethodOn() { List<String> lhsVars = model.getAllLHSVariables(); List<String> rhsVars = model.getRHSBoundFacts(); String[] globals = oracle.getGlobalVariables();