public class C45Saver extends AbstractFileSaver implements BatchConverter, IncrementalConverter, OptionHandler
-i <the input file> The input file
-o <the output file> The output file
-c <the class index> The class index
Saver,
Serialized FormBATCH, INCREMENTAL, NONE| Constructor and Description |
|---|
C45Saver()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Capabilities |
getCapabilities()
Returns the Capabilities of this saver.
|
String |
getFileDescription()
Returns a description of the file type.
|
String[] |
getOptions()
Gets the current settings of the C45Saver object.
|
String |
getRevision()
Returns the revision string.
|
String |
globalInfo()
Returns a string describing this Saver
|
Enumeration<Option> |
listOptions()
Returns an enumeration describing the available options.
|
static void |
main(String[] args)
Main method.
|
void |
resetOptions()
Resets the Saver
|
void |
setOptions(String[] options)
Parses a given list of options.
|
void |
writeBatch()
Writes a Batch of instances
|
void |
writeIncremental(Instance inst)
Saves an instances incrementally.
|
cancel, filePrefix, getFileExtension, getFileExtensions, getUseRelativePath, getWriter, resetWriter, retrieveDir, retrieveFile, runFileSaver, setDestination, setDestination, setDir, setDirAndPrefix, setEnvironment, setFile, setFilePrefix, setUseRelativePath, useRelativePathTipTextdoNotCheckCapabilitiesTipText, getDoNotCheckCapabilities, getInstances, getWriteMode, resetStructure, setDoNotCheckCapabilities, setInstances, setRetrieval, setStructurepublic String globalInfo()
public String getFileDescription()
getFileDescription in interface FileSourcedConvertergetFileDescription in class AbstractFileSaverpublic void resetOptions()
resetOptions in class AbstractFileSaverpublic Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlergetCapabilities in class AbstractSaverCapabilitiespublic void writeIncremental(Instance inst) throws IOException
writeIncremental in interface SaverwriteIncremental in class AbstractSaverinst - the instance to saveIOException - throws IOEXception if an instance cannot be saved
incrementally.public void writeBatch()
throws IOException
writeBatch in interface SaverwriteBatch in class AbstractSaverIOException - throws IOException if saving in batch mode is not
possiblepublic Enumeration<Option> listOptions()
listOptions in interface OptionHandlerlistOptions in class AbstractFileSaverpublic void setOptions(String[] options) throws Exception
-i <the input file> The input file
-o <the output file> The output file
-c <the class index> The class index
setOptions in interface OptionHandlersetOptions in class AbstractFileSaveroptions - the list of options as an array of stringsException - if an option is not supportedpublic String[] getOptions()
getOptions in interface OptionHandlergetOptions in class AbstractFileSaverpublic String getRevision()
getRevision in interface RevisionHandlerpublic static void main(String[] args)
args - should contain the options of a Saver.Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.