Class PMMLRuntimeFactoryInternal


  • public class PMMLRuntimeFactoryInternal
    extends Object
    Factory class to hide implementation details to end user
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      protected static org.drools.core.io.impl.DescrResource createDescrResource​(org.drools.compiler.lang.descr.PackageDescr pDescr)  
      protected static org.kie.api.KieBase createKieBase​(File pmmlFile)  
      protected static org.kie.api.KieBase createKieBase​(org.drools.compiler.builder.impl.KnowledgeBuilderImpl kbuilderImpl)  
      protected static org.kie.api.definition.KiePackage getKiePackageByFullClassName​(String fullClassName, org.kie.api.KieBase kieBase)  
      protected static org.kie.api.definition.KiePackage getKiePackageByModelName​(String modelName, org.kie.api.KieBase kieBase)  
      protected static List<org.kie.api.definition.KiePackage> getNestedKiePackages​(org.drools.core.definitions.InternalKnowledgePackage kiePackage, org.kie.api.KieBase kieBase)  
      static org.kie.pmml.api.runtime.PMMLRuntime getPMMLRuntime​(File pmmlFile)
      Retrieves a PMMLRuntime for the given PMML File
      protected static org.kie.pmml.api.runtime.PMMLRuntime getPMMLRuntime​(File pmmlFile, org.drools.compiler.builder.impl.KnowledgeBuilderImpl kbuilderImpl)  
      static org.kie.pmml.api.runtime.PMMLRuntime getPMMLRuntime​(File pmmlFile, org.kie.api.builder.ReleaseId releaseId)  
      static org.kie.pmml.api.runtime.PMMLRuntime getPMMLRuntime​(String pmmlFileName)
      Retrieves a PMMLRuntime for the PMML File with the given pmmlFileName
      static org.kie.pmml.api.runtime.PMMLRuntime getPMMLRuntime​(String kieBase, String pmmlFileName, org.kie.api.builder.ReleaseId releaseId)
      Retrieves a PMMLRuntime for the PMML File with the given pmmlFileName inside the given kieBase from a KieContainer
      static org.kie.pmml.api.runtime.PMMLRuntime getPMMLRuntime​(String pmmlFileName, String pmmlModelName, org.kie.api.KieBase kieBase)  
      static org.kie.pmml.api.runtime.PMMLRuntime getPMMLRuntime​(String pmmlFileName, org.kie.api.builder.ReleaseId releaseId)
      Retrieves a PMMLRuntime for the PMML File with the given pmmlFileName inside the default kieBase from a KieContainer
      static org.kie.pmml.api.runtime.PMMLRuntime getPMMLRuntime​(org.kie.api.KieBase kieBase)  
      protected static void populateNestedKiePackageList​(Collection<org.kie.pmml.commons.model.KiePMMLModel> kiePmmlModels, List<org.kie.api.definition.KiePackage> toPopulate, org.kie.api.KieBase kieBase)  
    • Method Detail

      • getPMMLRuntime

        public static org.kie.pmml.api.runtime.PMMLRuntime getPMMLRuntime​(File pmmlFile)
        Retrieves a PMMLRuntime for the given PMML File
        Parameters:
        pmmlFile -
        Returns:
      • getPMMLRuntime

        public static org.kie.pmml.api.runtime.PMMLRuntime getPMMLRuntime​(String pmmlFileName)
        Retrieves a PMMLRuntime for the PMML File with the given pmmlFileName
        Parameters:
        pmmlFileName -
        Returns:
      • getPMMLRuntime

        public static org.kie.pmml.api.runtime.PMMLRuntime getPMMLRuntime​(String kieBase,
                                                                          String pmmlFileName,
                                                                          org.kie.api.builder.ReleaseId releaseId)
        Retrieves a PMMLRuntime for the PMML File with the given pmmlFileName inside the given kieBase from a KieContainer
        Parameters:
        kieBase -
        pmmlFileName -
        releaseId -
        Returns:
      • getPMMLRuntime

        public static org.kie.pmml.api.runtime.PMMLRuntime getPMMLRuntime​(String pmmlFileName,
                                                                          org.kie.api.builder.ReleaseId releaseId)
        Retrieves a PMMLRuntime for the PMML File with the given pmmlFileName inside the default kieBase from a KieContainer
        Parameters:
        pmmlFileName -
        releaseId -
        Returns:
      • getPMMLRuntime

        public static org.kie.pmml.api.runtime.PMMLRuntime getPMMLRuntime​(File pmmlFile,
                                                                          org.kie.api.builder.ReleaseId releaseId)
      • getPMMLRuntime

        public static org.kie.pmml.api.runtime.PMMLRuntime getPMMLRuntime​(org.kie.api.KieBase kieBase)
      • getPMMLRuntime

        public static org.kie.pmml.api.runtime.PMMLRuntime getPMMLRuntime​(String pmmlFileName,
                                                                          String pmmlModelName,
                                                                          org.kie.api.KieBase kieBase)
      • createKieBase

        protected static org.kie.api.KieBase createKieBase​(File pmmlFile)
      • createKieBase

        protected static org.kie.api.KieBase createKieBase​(org.drools.compiler.builder.impl.KnowledgeBuilderImpl kbuilderImpl)
      • getPMMLRuntime

        protected static org.kie.pmml.api.runtime.PMMLRuntime getPMMLRuntime​(File pmmlFile,
                                                                             org.drools.compiler.builder.impl.KnowledgeBuilderImpl kbuilderImpl)
      • createDescrResource

        protected static org.drools.core.io.impl.DescrResource createDescrResource​(org.drools.compiler.lang.descr.PackageDescr pDescr)
      • getKiePackageByModelName

        protected static org.kie.api.definition.KiePackage getKiePackageByModelName​(String modelName,
                                                                                    org.kie.api.KieBase kieBase)
      • getNestedKiePackages

        protected static List<org.kie.api.definition.KiePackage> getNestedKiePackages​(org.drools.core.definitions.InternalKnowledgePackage kiePackage,
                                                                                      org.kie.api.KieBase kieBase)
      • populateNestedKiePackageList

        protected static void populateNestedKiePackageList​(Collection<org.kie.pmml.commons.model.KiePMMLModel> kiePmmlModels,
                                                           List<org.kie.api.definition.KiePackage> toPopulate,
                                                           org.kie.api.KieBase kieBase)
      • getKiePackageByFullClassName

        protected static org.kie.api.definition.KiePackage getKiePackageByFullClassName​(String fullClassName,
                                                                                        org.kie.api.KieBase kieBase)