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