public abstract class AbstractSolutionImporter extends LoggingMain
Modifier and Type | Class and Description |
---|---|
class |
AbstractSolutionImporter.InputBuilder |
Modifier and Type | Field and Description |
---|---|
protected static String |
DEFAULT_OUTPUT_FILE_SUFFIX |
protected File |
inputDir |
protected File |
outputDir |
protected SolutionDao |
solutionDao |
logger
Constructor and Description |
---|
AbstractSolutionImporter(boolean withoutDao) |
AbstractSolutionImporter(SolutionDao solutionDao) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptInputFile(File inputFile) |
boolean |
acceptInputFileDuringBulkConvert(File inputFile)
Some files are too big to be serialized to XML or take too long.
|
protected void |
convert(File inputFile,
File outputFile) |
void |
convert(String inputFileName,
String outputFileName) |
void |
convertAll() |
static String |
getFlooredPossibleSolutionSize(BigInteger possibleSolutionSize) |
File |
getInputDir() |
abstract String |
getInputFileSuffix() |
File |
getOutputDir() |
protected String |
getOutputFileSuffix() |
abstract org.optaplanner.core.impl.solution.Solution |
readSolution(File inputFile) |
protected static final String DEFAULT_OUTPUT_FILE_SUFFIX
protected final SolutionDao solutionDao
protected final File inputDir
protected final File outputDir
public AbstractSolutionImporter(SolutionDao solutionDao)
public AbstractSolutionImporter(boolean withoutDao)
public File getInputDir()
public File getOutputDir()
public abstract String getInputFileSuffix()
protected String getOutputFileSuffix()
public void convertAll()
public boolean acceptInputFile(File inputFile)
public boolean acceptInputFileDuringBulkConvert(File inputFile)
inputFile
- never nullpublic abstract org.optaplanner.core.impl.solution.Solution readSolution(File inputFile)
public static String getFlooredPossibleSolutionSize(BigInteger possibleSolutionSize)
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.