Solution_
- the solution type, the class with the PlanningSolution
annotationpublic abstract class CommonApp<Solution_> extends LoggingMain
Modifier and Type | Class and Description |
---|---|
static interface |
CommonApp.ExtraAction<Solution_> |
Modifier and Type | Field and Description |
---|---|
static String |
DATA_DIR_SYSTEM_PROPERTY
The path to the data directory, preferably with unix slashes for portability.
|
protected String |
dataDirName |
protected String |
description |
protected String |
iconResource |
protected String |
name |
protected SolutionBusiness<Solution_> |
solutionBusiness |
protected SolverAndPersistenceFrame<Solution_> |
solverAndPersistenceFrame |
protected String |
solverConfigResource |
logger
Modifier | Constructor and Description |
---|---|
protected |
CommonApp(String name,
String description,
String solverConfigResource,
String dataDirName,
String iconResource) |
Modifier and Type | Method and Description |
---|---|
protected CommonApp.ExtraAction<Solution_>[] |
createExtraActions() |
SolutionBusiness<Solution_> |
createSolutionBusiness() |
protected AbstractSolutionExporter |
createSolutionExporter() |
abstract org.optaplanner.persistence.common.api.domain.solution.SolutionFileIO<Solution_> |
createSolutionFileIO()
Used for the unsolved and solved directories,
not for the import and output directories, in the data directory.
|
protected AbstractSolutionImporter[] |
createSolutionImporters() |
protected abstract SolutionPanel<Solution_> |
createSolutionPanel() |
protected org.optaplanner.core.api.solver.SolverFactory<Solution_> |
createSolverFactory() |
static File |
determineDataDir(String dataDirName) |
String |
getDataDirName() |
String |
getDescription() |
String |
getIconResource() |
String |
getName() |
String |
getSolverConfigResource() |
void |
init() |
void |
init(Component centerForComponent,
boolean exitOnClose) |
static void |
prepareSwingEnvironment()
Some examples are not compatible with every native LookAndFeel.
|
public static final String DATA_DIR_SYSTEM_PROPERTY
protected final String name
protected final String description
protected final String solverConfigResource
protected final String dataDirName
protected final String iconResource
protected SolverAndPersistenceFrame<Solution_> solverAndPersistenceFrame
protected SolutionBusiness<Solution_> solutionBusiness
public static void prepareSwingEnvironment()
public String getName()
public String getDescription()
public String getSolverConfigResource()
public String getDataDirName()
public String getIconResource()
public void init()
public void init(Component centerForComponent, boolean exitOnClose)
public SolutionBusiness<Solution_> createSolutionBusiness()
protected org.optaplanner.core.api.solver.SolverFactory<Solution_> createSolverFactory()
protected abstract SolutionPanel<Solution_> createSolutionPanel()
protected CommonApp.ExtraAction<Solution_>[] createExtraActions()
public abstract org.optaplanner.persistence.common.api.domain.solution.SolutionFileIO<Solution_> createSolutionFileIO()
protected AbstractSolutionImporter[] createSolutionImporters()
protected AbstractSolutionExporter createSolutionExporter()
Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.