Class ScorecardCompilationDTO

  • All Implemented Interfaces:
    Serializable, org.kie.pmml.compiler.api.dto.CompilationDTO<org.dmg.pmml.scorecard.Scorecard>

    public class ScorecardCompilationDTO
    extends org.kie.pmml.compiler.commons.dto.AbstractSpecificCompilationDTO<org.dmg.pmml.scorecard.Scorecard>
    See Also:
    Serialized Form
    • Method Detail

      • fromCompilationDTO

        public static ScorecardCompilationDTO fromCompilationDTO​(org.kie.pmml.compiler.api.dto.CompilationDTO<org.dmg.pmml.scorecard.Scorecard> source)
        Builder that use given CommonCompilationDTO
        Parameters:
        source -
      • compileAndLoadCharacteristicsClass

        public Class<?> compileAndLoadCharacteristicsClass​(Map<String,​String> sourcesMap)
        Compile the given sources and add them to given Classloader of the current instance. Returns the Class with the current packageCharacteristicsClassName
        Parameters:
        sourcesMap -
        Returns:
      • getScorecardModel

        public org.dmg.pmml.scorecard.Scorecard getScorecardModel()
      • getInitialScore

        public Number getInitialScore()
      • isUseReasonCodes

        public boolean isUseReasonCodes()
      • getReasonCodeAlgorithm

        public org.dmg.pmml.scorecard.Scorecard.ReasonCodeAlgorithm getReasonCodeAlgorithm()
      • getREASONCODE_ALGORITHM

        public org.kie.pmml.api.enums.REASONCODE_ALGORITHM getREASONCODE_ALGORITHM()
      • getBaselineScore

        public Number getBaselineScore()
      • getCharacteristics

        public org.dmg.pmml.scorecard.Characteristics getCharacteristics()
      • getCharacteristicsClassName

        public String getCharacteristicsClassName()
      • getPackageCanonicalCharacteristicsClassName

        public String getPackageCanonicalCharacteristicsClassName()