org.android.activityminer.pmml.model
Class PMML

Package class diagram package PMML
java.lang.Object
  extended by org.android.activityminer.pmml.model.PMML
All Implemented Interfaces:
SerializableData

public class PMML
extends Object
implements SerializableData

The pmml root representation (without header, mining build task, transformation dictionary and extensions ). For now just the nearest neighbor model element is supported.


Field Summary
private  DataDictionary dataDictionary
          The data dictionary
private  List<Extension> extensions
          The extensions
private  Header header
          The header
private  List<ModelElement> modelElements
          The model elements
private  String version
          The version attribute
static String VERSION_4_2
          The default version for new created PMML models
 
Constructor Summary
PMML()
          Constructor
 
Method Summary
 DataDictionary getDataDictionary()
          Getter for the data dictionary
 List<Extension> getExtensions()
          Getter for the extensions
 Header getHeader()
          Getter for the header
 List<ModelElement> getModelElements()
          Getter for the model elements
 String getVersion()
          Getter for the version
 void setDataDictionary(DataDictionary dataDictionary)
          Setter for the data dictionary
 void setExtensions(List<Extension> extensions)
          Setter for the extensions
 void setHeader(Header header)
          Setter for the header
 void setModelElements(List<ModelElement> modelElements)
          Setter for the model elements
 void setVersion(String version)
          Setter for the version
 String toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION_4_2

public static final String VERSION_4_2
The default version for new created PMML models

See Also:
Constant Field Values

version

private String version
The version attribute


header

private Header header
The header


dataDictionary

private DataDictionary dataDictionary
The data dictionary


modelElements

private List<ModelElement> modelElements
The model elements


extensions

private List<Extension> extensions
The extensions

Constructor Detail

PMML

public PMML()
Constructor

Method Detail

getVersion

public String getVersion()
Getter for the version

Returns:
the version

setVersion

public void setVersion(String version)
Setter for the version

Parameters:
version - the version to set

getHeader

public final Header getHeader()
Getter for the header

Returns:
the header

setHeader

public final void setHeader(Header header)
Setter for the header

Parameters:
header - the header to set

setDataDictionary

public void setDataDictionary(DataDictionary dataDictionary)
Setter for the data dictionary

Parameters:
dataDictionary - the data dictionary to set

getDataDictionary

public DataDictionary getDataDictionary()
Getter for the data dictionary

Returns:
the data dictionary

setModelElements

public void setModelElements(List<ModelElement> modelElements)
Setter for the model elements

Parameters:
modelElements - the model elements to set

getModelElements

public List<ModelElement> getModelElements()
Getter for the model elements

Returns:
the model elements

getExtensions

public final List<Extension> getExtensions()
Getter for the extensions

Returns:
the extensions

setExtensions

public final void setExtensions(List<Extension> extensions)
Setter for the extensions

Parameters:
extensions - the extensions to set

toXML

public String toXML()
             throws Exception
Specified by:
toXML in interface SerializableData
Throws:
Exception