KiePMMLMiningModel extends KiePMMLModel implements HasNestedModels { public KiePMMLSegmentation getSegmentation() { return segmentation; } protected  KiePMMLMiningModel(String name, List<KiePMMLExtension> extensions); static Builder builder(String name, List<KiePMMLExtension> extensions, MINING_FUNCTION miningFunction); @Override Object evaluate(final Object knowledgeBase, final Map<String, Object> requestData); @Override List<KiePMMLModel> getNestedModels(); String getAlgorithmName(); boolean isScorable(); KiePMMLSegmentation getSegmentation(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); static final PMML_MODEL PMML_MODEL_TYPE; }
@Test public void getSegmentation() { assertNull(KIE_PMML_MINING_MODEL.getSegmentation()); final KiePMMLSegmentation segmentation = getKiePMMLSegmentation("SEGMENTATION_NAME"); KIE_PMML_MINING_MODEL = BUILDER.withSegmentation(segmentation).build(); assertEquals(segmentation, KIE_PMML_MINING_MODEL.getSegmentation()); }