Package org.kie.pmml.commons.model
Class KiePMMLModelWithSources
- java.lang.Object
-
- org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent
-
- org.kie.pmml.commons.model.KiePMMLModel
-
- org.kie.pmml.commons.model.KiePMMLModelWithSources
-
- All Implemented Interfaces:
Serializable,org.kie.pmml.api.models.PMMLModel,HasSourcesMap
public class KiePMMLModelWithSources extends KiePMMLModel implements HasSourcesMap
Interface used to identify a givenHasSourcesMapas container for KiePMMLModel' sources- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.kie.pmml.commons.model.KiePMMLModel
KiePMMLModel.Builder<T extends KiePMMLModel>
-
-
Field Summary
-
Fields inherited from class org.kie.pmml.commons.model.KiePMMLModel
kiePMMLMiningFields, kiePMMLOutputFields, kiePMMLTargets, localTransformations, miningFunction, pmmlMODEL, targetField, transformationDictionary
-
Fields inherited from class org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent
extensions, id, name, parentId
-
-
Constructor Summary
Constructors Constructor Description KiePMMLModelWithSources(String modelName, String kmodulePackageName, List<org.kie.pmml.api.models.MiningField> miningFields, List<org.kie.pmml.api.models.OutputField> outputFields, List<KiePMMLTarget> targetFields, Map<String,String> sourcesMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSourceMap(String key, String value)Objectevaluate(Object knowledgeBase, Map<String,Object> requestData, org.kie.pmml.api.runtime.PMMLContext context)StringgetKModulePackageName()Method to retrieve the package name to be used inside kiebase/package attribute of kmodule.xml and to use for package creation inside PMMLAssemblerService By default returns the package name of the current instance To be eventually overridden.List<org.kie.pmml.api.models.MiningField>getMiningFields()List<org.kie.pmml.api.models.OutputField>getOutputFields()Map<String,String>getSourcesMap()List<KiePMMLTarget>getTargetFields()-
Methods inherited from class org.kie.pmml.commons.model.KiePMMLModel
getKiePMMLMiningFields, getKiePMMLOutputFields, getKiePMMLTargets, getLocalTransformations, getMiningFunction, getPmmlMODEL, getTargetField, getTransformationDictionary
-
Methods inherited from class org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent
getExtensions, getId, getName, getParentId, setParentId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.kie.pmml.commons.model.HasSourcesMap
getRulesSourcesMap
-
-
-
-
Method Detail
-
evaluate
public Object evaluate(Object knowledgeBase, Map<String,Object> requestData, org.kie.pmml.api.runtime.PMMLContext context)
- Specified by:
evaluatein classKiePMMLModel- Parameters:
knowledgeBase- the knowledgeBase we are working on. Add asObjectto avoid direct dependency. It is needed only by Drools-dependent models, so it may be ignored by otherscontext- used to accumulate additional evaluated values- Returns:
-
getMiningFields
public List<org.kie.pmml.api.models.MiningField> getMiningFields()
- Specified by:
getMiningFieldsin interfaceorg.kie.pmml.api.models.PMMLModel- Overrides:
getMiningFieldsin classKiePMMLModel
-
getOutputFields
public List<org.kie.pmml.api.models.OutputField> getOutputFields()
- Specified by:
getOutputFieldsin interfaceorg.kie.pmml.api.models.PMMLModel- Overrides:
getOutputFieldsin classKiePMMLModel
-
getTargetFields
public List<KiePMMLTarget> getTargetFields()
-
getSourcesMap
public Map<String,String> getSourcesMap()
- Specified by:
getSourcesMapin interfaceHasSourcesMap
-
addSourceMap
public void addSourceMap(String key, String value)
- Specified by:
addSourceMapin interfaceHasSourcesMap
-
getKModulePackageName
public String getKModulePackageName()
Description copied from class:KiePMMLModelMethod to retrieve the package name to be used inside kiebase/package attribute of kmodule.xml and to use for package creation inside PMMLAssemblerService By default returns the package name of the current instance To be eventually overridden.- Overrides:
getKModulePackageNamein classKiePMMLModel- Returns:
-
-