Class KiePMMLCompoundPredicate
- java.lang.Object
-
- org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent
-
- org.kie.pmml.commons.model.predicates.KiePMMLPredicate
-
- org.kie.pmml.commons.model.predicates.KiePMMLCompoundPredicate
-
- All Implemented Interfaces:
Serializable
public class KiePMMLCompoundPredicate extends KiePMMLPredicate
- See Also:
- CompoundPredicate, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKiePMMLCompoundPredicate.Builder
-
Field Summary
Fields Modifier and Type Field Description protected List<KiePMMLPredicate>kiePMMLPredicates-
Fields inherited from class org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent
extensions, id, name, parentId
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedKiePMMLCompoundPredicate(String name, List<KiePMMLExtension> extensions, org.kie.pmml.api.enums.BOOLEAN_OPERATOR booleanOperator)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KiePMMLCompoundPredicate.Builderbuilder(List<KiePMMLExtension> extensions, org.kie.pmml.api.enums.BOOLEAN_OPERATOR booleanOperator)Builder to auto-generate the idbooleanequals(Object o)booleanevaluate(Map<String,Object> values)Returns the evaluation of the givenvaluesif the currentKiePMMLPredicateor one of its child is referred to inside the given values, otherwisefalseorg.kie.pmml.api.enums.BOOLEAN_OPERATORgetBooleanOperator()StringgetId()List<KiePMMLPredicate>getKiePMMLPredicates()inthashCode()StringtoString()-
Methods inherited from class org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent
getExtensions, getName, getParentId, setParentId
-
-
-
-
Field Detail
-
kiePMMLPredicates
protected List<KiePMMLPredicate> kiePMMLPredicates
-
-
Constructor Detail
-
KiePMMLCompoundPredicate
protected KiePMMLCompoundPredicate(String name, List<KiePMMLExtension> extensions, org.kie.pmml.api.enums.BOOLEAN_OPERATOR booleanOperator)
-
-
Method Detail
-
builder
public static KiePMMLCompoundPredicate.Builder builder(List<KiePMMLExtension> extensions, org.kie.pmml.api.enums.BOOLEAN_OPERATOR booleanOperator)
Builder to auto-generate the id- Returns:
-
evaluate
public boolean evaluate(Map<String,Object> values)
Description copied from class:KiePMMLPredicateReturns the evaluation of the givenvaluesif the currentKiePMMLPredicateor one of its child is referred to inside the given values, otherwisefalse- Specified by:
evaluatein classKiePMMLPredicate- Returns:
-
getId
public String getId()
- Overrides:
getIdin classAbstractKiePMMLComponent
-
getBooleanOperator
public org.kie.pmml.api.enums.BOOLEAN_OPERATOR getBooleanOperator()
-
getKiePMMLPredicates
public List<KiePMMLPredicate> getKiePMMLPredicates()
-
-