public class OutputARFF extends Object implements IMLOutput<SubstanceRecord>
Modifier and Type | Field and Description |
---|---|
protected BufferedWriter |
arff |
protected ARFFReporter |
arffWriter |
protected boolean |
enabled |
protected File |
file_arff |
protected Template |
header |
protected SubstanceRecord |
item |
Constructor and Description |
---|
OutputARFF(String folder,
String file,
boolean enabled) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
open() |
void |
print(org.apache.commons.csv.CSVRecord record,
int columnid) |
void |
setEnabled(boolean enabled) |
SubstanceRecord |
transform(org.apache.commons.csv.CSVRecord record,
int columnid) |
protected ARFFReporter arffWriter
protected BufferedWriter arff
protected boolean enabled
protected File file_arff
protected Template header
protected SubstanceRecord item
public void open() throws Exception
open
in interface IMLOutput<SubstanceRecord>
Exception
public SubstanceRecord transform(org.apache.commons.csv.CSVRecord record, int columnid)
transform
in interface IMLOutput<SubstanceRecord>
public void print(org.apache.commons.csv.CSVRecord record, int columnid) throws Exception
print
in interface IMLOutput<SubstanceRecord>
Exception
public void close() throws Exception
close
in interface IMLOutput<SubstanceRecord>
Exception
public void setEnabled(boolean enabled)
setEnabled
in interface IMLOutput<SubstanceRecord>
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.