@Override protected BRLColumn<IPattern, BRLConditionVariableColumn> cloneBRLColumn( BRLColumn<IPattern, BRLConditionVariableColumn> col) { BRLConditionColumn clone = new BRLConditionColumn(); clone.setHeader(col.getHeader()); clone.setHideColumn(col.isHideColumn()); clone.setChildColumns(cloneVariables(col.getChildColumns())); clone.setDefinition(cloneDefinition(col.getDefinition())); return clone; }
public RuleModel getRuleModel(BRLColumn<IPattern, BRLConditionVariableColumn> column) { RuleModel ruleModel = new RuleModel(); List<IPattern> definition = column.getDefinition(); ruleModel.lhs = definition.toArray(new IPattern[definition.size()]); return ruleModel; }