Package org.kie.pmml.commons.model
Class KiePMMLFactoryModel
- java.lang.Object
-
- org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent
-
- org.kie.pmml.commons.model.KiePMMLModel
-
- org.kie.pmml.commons.model.KiePMMLFactoryModel
-
- All Implemented Interfaces:
Serializable,org.kie.pmml.api.models.PMMLModel,HasSourcesMap
public class KiePMMLFactoryModel extends KiePMMLModel implements HasSourcesMap
This is the model used to store sources forKiePMMLModelFactoryclasses;KiePMMLModelFactory, in turns, are used to retrieveList<KiePMMLModel>s from kjar insidePMMLAssemblerService- 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 Modifier and Type Field Description protected Map<String,String>sourcesMap-
Fields inherited from class org.kie.pmml.commons.model.KiePMMLModel
kiePMMLMiningFields, kiePMMLOutputFields, kiePMMLTargets, localTransformations, miningFields, miningFunction, outputFields, pmmlMODEL, targetField, transformationDictionary
-
Fields inherited from class org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent
extensions, id, name, parentId
-
-
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 pmmlContext)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.Map<String,String>getSourcesMap()-
Methods inherited from class org.kie.pmml.commons.model.KiePMMLModel
getKiePMMLMiningFields, getKiePMMLOutputFields, getKiePMMLTargets, getLocalTransformations, getMiningFields, getMiningFunction, getOutputFields, 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 pmmlContext)
- 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 otherspmmlContext- used to accumulate additional evaluated values- Returns:
-
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:
-
-