Java Reference
In-Depth Information
interface has get and set methods for specifying names of the input
and output objects, as shown in Listing 10-4(a). Whereas in the JDM
Schema, the BuildTask complex type gives applications the option of
specifying either an object name or the object itself, as shown in
Listing 10-4(b).
Listing 10-4(a)
javax.datamining.task.BuildTask interface
1. public interface BuildTask extends Task {
2. public String getBuildDataName();
public void setBuildDataName(String name) throws JDMException;
3. public String getBuildSettingsName();
public void setBuildSettingsName(String name) throws JDMException;
4. public String getValidationDataName();
public void setValidationDataName(String validationDataName) throws JDMException;
5. public String getModelDescription();
public void setModelDescription(String description);
6. public Map getBuildDataMap();
public void setBuildDataMap(Map buildDataMap) throws JDMException;
7. public Map getValidationDataMap();
public void setValidationDataMap(Map validationDataMap) throws JDMException;
8. public String getModelName();
public void setModelName(String name) throws JDMException;
9. public String getInputModelName();
public void setInputModelName(String modelName) throws JDMException;
10. public String getApplicationName();
public void setApplicationName(String name);
Listing 10-4(b)
BuildTask XML complex type
1. <xsd:complexType name=" BuildTask ">
<xsd:extension base=" Task ">
2. <xsd:choice>
<xsd:element name="buildDataName" type="xsd:string"/>
<xsd:element name="buildData" type="PhysicalDataSet"/>
3. <xsd:choice>
<xsd:element name="buildSettingsName" type="xsd:string"/>
<xsd:element name="buildSettings" type="BuildSettings"/>
4. <xsd:choice>
<xsd:element name="validationDataName" type="xsd:string" minOccurs="0"/>
<xsd:element name="validationData" type="PhysicalDataSet" minOccurs="0"/>
5. <xsd:element name="modelDescription" type="xsd:string" minOccurs="0"/>
6. <xsd:element name="buildDataMap" type="LogicalAttrNameMap" minOccurs="0"
Search WWH ::

Custom Search