KiePMMLSegment extends AbstractKiePMMLComponent { public double getWeight() { return weight; } protected  KiePMMLSegment(String name, List<KiePMMLExtension> extensions, KiePMMLPredicate kiePMMLPredicate, KiePMMLModel model); static Builder builder(String name, List<KiePMMLExtension> extensions, KiePMMLPredicate kiePMMLPredicate, KiePMMLModel model); double getWeight(); KiePMMLPredicate getKiePMMLPredicate(); KiePMMLModel getModel(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void getWeight() { final double weight = 33.45; assertEquals(1.0, KIE_PMML_SEGMENT.getWeight(), 0.0); KIE_PMML_SEGMENT = BUILDER.withWeight(weight).build(); assertEquals(weight, KIE_PMML_SEGMENT.getWeight(), 0.0); }