}
ItemRefType itemref = _40Factory.eINSTANCE.createItemRefType();
itemref.setItemRef(String.valueOf(allItems.indexOf(i)));
itemrefs.add(itemref);
}
ItemsetType pmmlItemset = _40Factory.eINSTANCE.createItemsetType();
pmmlItemset.setId(String.valueOf(allItemsets.indexOf(itemset)));
pmmlItemset.setSupport(BigDecimal.valueOf(itemset.getSupport()));
pmmlItemset.setNumberOfItems(BigInteger.valueOf(itemset.getItems().size()));
pmmlItemset.getItemRef().addAll(itemrefs);
ruleModel.getItemset().add(pmmlItemset);
ruleModel.setNumberOfItems(BigInteger.valueOf(allItems.size()));
ruleModel.setNumberOfItemsets(BigInteger.valueOf(allItemsets.size()));
if(rules.size() > 0)
ruleModel.setNumberOfTransactions(BigInteger.valueOf(rules.get(0).getTotalTransactions()));