@Override public List<String> getAllRHSVariables() { return model.getAllRHSVariables(); }
@Override public List<String> getAllRHSVariables() { return model.getAllRHSVariables(); }
/** * This will get a list of all bound variables (LHS and RHS), including bound fields.. */ public List<String> getAllVariables() { List<String> result = new ArrayList<String>(); result.addAll(this.getAllLHSVariables()); result.addAll(this.getAllRHSVariables()); return result; }
@Override public List<String> getAllRHSVariables() { 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.getAllRHSVariables()); } } variables.addAll(super.getAllRHSVariables()); return new ArrayList<>(variables); }
private void getRHSFacTypes() { for (String variable : model.getModel().getAllRHSVariables()) { factTypesByVariables.put(variable, model.getModel().getRHSBoundFact(variable).getFactType()); } }
private void getRHSFacTypes() { for (String variable : model.getModel().getAllRHSVariables()) { factTypesByVariables.put(variable, model.getModel().getRHSBoundFact(variable).getFactType()); } }