public abstract class AbstractModel<T> extends Object implements PMML4Model
Modifier and Type | Field and Description |
---|---|
protected List<ExternalBeanRef> |
externalMiningFields |
protected static PMML4Helper |
helper |
protected static String |
MINING_TEMPLATE_NAME |
protected Map<String,org.dmg.pmml.pmml_4_2.descr.MiningField> |
miningFieldMap |
protected static String |
OUTPUT_TEMPLATE_NAME |
protected Map<String,org.dmg.pmml.pmml_4_2.descr.OutputField> |
outputFieldMap |
static String |
PMML_JAVA_PACKAGE_NAME |
protected T |
rawModel |
protected static String |
RULE_UNIT_TEMPLATE_NAME |
protected static org.mvel2.templates.TemplateRegistry |
templateRegistry |
Constructor and Description |
---|
AbstractModel(String modelId,
PMML4ModelType modelType,
PMML4Unit owner,
PMML4Model parentModel,
T rawModel) |
AbstractModel(String modelId,
PMML4ModelType modelType,
PMML4Unit owner,
T rawModel) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addMiningTemplateToRegistry(org.mvel2.templates.TemplateRegistry registry) |
protected abstract void |
addOutputTemplateToRegistry(org.mvel2.templates.TemplateRegistry registry) |
protected abstract void |
addRuleUnitTemplateToRegistry(org.mvel2.templates.TemplateRegistry registry) |
PMMLMiningField |
findMiningField(String fieldName) |
PMMLOutputField |
findOutputField(String fieldName) |
List<PMMLMiningField> |
getActiveMiningFields() |
Map<String,PMML4Model> |
getChildModels()
Default method returns an empty Map
|
org.dmg.pmml.pmml_4_2.descr.DataDictionary |
getDataDictionary() |
String |
getExternalBeansMiningRules() |
protected org.dmg.pmml.pmml_4_2.descr.Extension |
getExternalClassInfo(List<org.dmg.pmml.pmml_4_2.descr.Extension> extensions) |
protected List<ExternalBeanDefinition> |
getExternalMiningClasses() |
List<ExternalBeanRef> |
getExternalMiningFields() |
Map<String,org.dmg.pmml.pmml_4_2.descr.MiningField> |
getFilteredMiningFieldMap(boolean includeFiltered,
org.dmg.pmml.pmml_4_2.descr.FIELDUSAGETYPE... filterTypes) |
Map.Entry<String,String> |
getMappedMiningPojo() |
Map.Entry<String,String> |
getMappedOutputPojo() |
Map.Entry<String,String> |
getMappedRuleUnit() |
Map<String,org.dmg.pmml.pmml_4_2.descr.MiningField> |
getMiningFieldMap() |
List<PMMLMiningField> |
getMiningFields() |
protected String |
getMiningPojoTemplateName() |
String |
getModelId() |
String |
getModelPackageName() |
String |
getModelRuleUnitName() |
PMML4ModelType |
getModelType() |
Map<String,org.dmg.pmml.pmml_4_2.descr.OutputField> |
getOutputFieldMap() |
List<PMMLOutputField> |
getOutputFields() |
protected String |
getOutputPojoTemplateName() |
PMML4Unit |
getOwner() |
PMML4Model |
getParentModel() |
List<org.dmg.pmml.pmml_4_2.descr.MiningField> |
getRawMiningFields() |
Serializable |
getRawModel() |
List<org.dmg.pmml.pmml_4_2.descr.OutputField> |
getRawOutputFields() |
protected String |
getRuleUnitTemplateName() |
protected org.dmg.pmml.pmml_4_2.descr.MiningField |
getValidMiningField(PMMLDataField dataField) |
protected void |
initFieldMaps() |
protected void |
initMiningFieldMap() |
protected void |
initOutputFieldMap() |
protected boolean |
isUseExternalBeanRefs(org.dmg.pmml.pmml_4_2.descr.MiningSchema schema) |
void |
setParentModel(PMML4Model parentModel) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMiningPojoClassName, getMiningSchema, getOutput, getOutputPojoClassName, getRuleUnitClassName
protected T rawModel
protected List<ExternalBeanRef> externalMiningFields
protected static PMML4Helper helper
protected static final String MINING_TEMPLATE_NAME
protected static final String OUTPUT_TEMPLATE_NAME
protected static final String RULE_UNIT_TEMPLATE_NAME
protected static org.mvel2.templates.TemplateRegistry templateRegistry
public static final String PMML_JAVA_PACKAGE_NAME
public AbstractModel(String modelId, PMML4ModelType modelType, PMML4Unit owner, T rawModel)
public AbstractModel(String modelId, PMML4ModelType modelType, PMML4Unit owner, PMML4Model parentModel, T rawModel)
protected abstract void addMiningTemplateToRegistry(org.mvel2.templates.TemplateRegistry registry)
protected abstract void addOutputTemplateToRegistry(org.mvel2.templates.TemplateRegistry registry)
protected abstract void addRuleUnitTemplateToRegistry(org.mvel2.templates.TemplateRegistry registry)
protected void initFieldMaps() throws IllegalArgumentException
IllegalArgumentException
protected void initMiningFieldMap() throws IllegalArgumentException
IllegalArgumentException
protected boolean isUseExternalBeanRefs(org.dmg.pmml.pmml_4_2.descr.MiningSchema schema)
protected org.dmg.pmml.pmml_4_2.descr.Extension getExternalClassInfo(List<org.dmg.pmml.pmml_4_2.descr.Extension> extensions)
protected void initOutputFieldMap()
protected org.dmg.pmml.pmml_4_2.descr.MiningField getValidMiningField(PMMLDataField dataField)
protected String getMiningPojoTemplateName()
protected String getOutputPojoTemplateName()
protected String getRuleUnitTemplateName()
public String getModelPackageName()
getModelPackageName
in interface PMML4Model
public Map.Entry<String,String> getMappedMiningPojo()
getMappedMiningPojo
in interface PMML4Model
public Map.Entry<String,String> getMappedOutputPojo()
getMappedOutputPojo
in interface PMML4Model
protected List<ExternalBeanDefinition> getExternalMiningClasses()
public List<ExternalBeanRef> getExternalMiningFields()
public String getExternalBeansMiningRules()
getExternalBeansMiningRules
in interface PMML4Model
public Map.Entry<String,String> getMappedRuleUnit()
getMappedRuleUnit
in interface PMML4Model
public List<PMMLMiningField> getMiningFields()
getMiningFields
in interface PMML4Model
public PMMLMiningField findMiningField(String fieldName)
findMiningField
in interface PMML4Model
public PMMLOutputField findOutputField(String fieldName)
findOutputField
in interface PMML4Model
public List<PMMLOutputField> getOutputFields()
getOutputFields
in interface PMML4Model
public PMML4ModelType getModelType()
getModelType
in interface PMML4Model
public String getModelId()
getModelId
in interface PMML4Model
public PMML4Unit getOwner()
getOwner
in interface PMML4Model
public List<org.dmg.pmml.pmml_4_2.descr.MiningField> getRawMiningFields()
getRawMiningFields
in interface PMML4Model
public List<org.dmg.pmml.pmml_4_2.descr.OutputField> getRawOutputFields()
getRawOutputFields
in interface PMML4Model
public Map<String,PMML4Model> getChildModels()
getChildModels
in interface PMML4Model
public PMML4Model getParentModel()
getParentModel
in interface PMML4Model
public void setParentModel(PMML4Model parentModel)
setParentModel
in interface PMML4Model
public Map<String,org.dmg.pmml.pmml_4_2.descr.MiningField> getFilteredMiningFieldMap(boolean includeFiltered, org.dmg.pmml.pmml_4_2.descr.FIELDUSAGETYPE... filterTypes)
public List<PMMLMiningField> getActiveMiningFields()
public String getModelRuleUnitName()
getModelRuleUnitName
in interface PMML4Model
public org.dmg.pmml.pmml_4_2.descr.DataDictionary getDataDictionary()
getDataDictionary
in interface PMML4Model
public Serializable getRawModel()
getRawModel
in interface PMML4Model
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.