uk.ac.ed.inf.taweka.mulan
Class MulanArff

java.lang.Object
  extended by uk.ac.ed.inf.taweka.Initialised
      extended by uk.ac.ed.inf.taweka.weka.Arff
          extended by uk.ac.ed.inf.taweka.mulan.MulanArff
All Implemented Interfaces:
Initialisable
Direct Known Subclasses:
AttributesFilteredArff

public class MulanArff
extends Arff

Generates an Attribute Relation Format File (ARFF) in Mulan format (multiple class labels per instance). The class attributes must be in a separate Mulan XML file (either flat or hierarchical) to distinguish them from the normal attributes. Call structure: the MulanArffGenerator creates a DataSetManager which checks the input (DataSetChecker), loads the data (MulanDataSetDbLoader), creates the instances (MulanDataSetGenerator) and writes them as ARFF file (DataSetWriter).

Version:
10 May 2010
Author:
Luna De Ferrari luna.deferrari-at-ed.ac.uk

Field Summary
 
Fields inherited from class uk.ac.ed.inf.taweka.weka.Arff
ARFF_TABLE, AUTHOR, TAWEKA_NAME, VERSION, WEB_PAGE
 
Fields inherited from class uk.ac.ed.inf.taweka.Initialised
m_initialisationIsCorrect
 
Constructor Summary
MulanArff(java.lang.String dataPropsFileName, java.lang.String resultsPropsFileName)
           
 
Method Summary
 MulanDataSetManager getDataSetManager()
           
 java.lang.String getXmlPath()
           
static java.lang.String getXMLpathFromArffPath(java.lang.String arffPath)
          Generates the xml file path: same name+path as .arff file, but .xml termination
static void main(java.lang.String[] args)
           
 void setDataSetManager()
           
 
Methods inherited from class uk.ac.ed.inf.taweka.weka.Arff
generateAndWriteArffFile, getArffPath, getArffRecordId, getDataArffProperties, getDataDbManager, getDataPropsFilePath, getDbConn, getDbReader, getResultsDbManager, loadAndGenerateArff, setArffRecordId
 
Methods inherited from class uk.ac.ed.inf.taweka.Initialised
initialisationIsCorrect, setInitialisationIsCorrect
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MulanArff

public MulanArff(java.lang.String dataPropsFileName,
                 java.lang.String resultsPropsFileName)
Method Detail

getDataSetManager

public MulanDataSetManager getDataSetManager()
Overrides:
getDataSetManager in class Arff

getXmlPath

public java.lang.String getXmlPath()

setDataSetManager

public void setDataSetManager()
Overrides:
setDataSetManager in class Arff

getXMLpathFromArffPath

public static java.lang.String getXMLpathFromArffPath(java.lang.String arffPath)
Generates the xml file path: same name+path as .arff file, but .xml termination

Parameters:
arffPath - the path to the arff file
Returns:
the same filename+directorypath of the arff file but with the termination .xml instead of .arff

main

public static void main(java.lang.String[] args)