org.optaplanner.examples.common.persistence
public abstract class AbstractSolutionImporter extends LoggingMain
Modifier and Type | Field and Description |
---|---|
protected static String |
DEFAULT_OUTPUT_FILE_SUFFIX |
protected SolutionDao |
solutionDao |
logger
Constructor and Description |
---|
AbstractSolutionImporter(SolutionDao solutionDao) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptInputFile(File inputFile) |
boolean |
acceptInputFileDuringBulkConvert(File inputFile)
Some files are to big to be serialized to XML or take too long.
|
void |
convertAll() |
protected File |
getInputDir() |
abstract String |
getInputFileSuffix() |
protected File |
getOutputDir() |
protected String |
getOutputFileSuffix() |
abstract org.optaplanner.core.impl.solution.Solution |
readSolution(File inputFile) |
protected static final String DEFAULT_OUTPUT_FILE_SUFFIX
protected SolutionDao solutionDao
public AbstractSolutionImporter(SolutionDao solutionDao)
protected File getInputDir()
public abstract String getInputFileSuffix()
protected File getOutputDir()
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)
Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.