Class CommonApp<Solution_>
java.lang.Object
ai.timefold.solver.examples.common.app.LoggingMain
ai.timefold.solver.examples.common.app.CommonApp<Solution_>
- Type Parameters:
Solution_- the solution type, the class with thePlanningSolutionannotation
- Direct Known Subclasses:
CloudBalancingApp,ConferenceSchedulingApp,CurriculumCourseApp,ExaminationApp,FlightCrewSchedulingApp,MachineReassignmentApp,MeetingSchedulingApp,NQueensApp,NurseRosteringApp,PatientAdmissionScheduleApp,ProjectJobSchedulingApp,TaskAssigningApp,TennisApp,TravelingTournamentApp,TspApp,VehicleRoutingApp
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe path to the data directory, preferably with unix slashes for portability.protected final Stringprotected final Stringprotected final Stringprotected final Stringprotected SolutionBusiness<Solution_,?> protected SolverAndPersistenceFrame<Solution_>protected final StringFields inherited from class ai.timefold.solver.examples.common.app.LoggingMain
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CommonApp.ExtraAction<Solution_>[]protected Set<AbstractSolutionExporter<Solution_>>abstract SolutionFileIO<Solution_>Used for the unsolved and solved directories, not for the import and output directories, in the data directory.protected Set<AbstractSolutionImporter<Solution_>>protected abstract SolutionPanel<Solution_>static FiledetermineDataDir(String dataDirName) getName()voidinit()voidstatic voidSome examples are not compatible with every native LookAndFeel.
-
Field Details
-
DATA_DIR_SYSTEM_PROPERTY
The path to the data directory, preferably with unix slashes for portability. For example: -D"ai.timefold.solver.examples.dataDir"=sources/data/- See Also:
-
name
-
description
-
solverConfigResource
-
dataDirName
-
iconResource
-
solverAndPersistenceFrame
-
solutionBusiness
-
-
Constructor Details
-
CommonApp
-
-
Method Details
-
determineDataDir
-
prepareSwingEnvironment
public static void prepareSwingEnvironment()Some examples are not compatible with every native LookAndFeel. For example, NurseRosteringPanel is incompatible with Mac. -
getName
-
getDescription
-
getSolverConfigResource
-
getDataDirName
-
getIconResource
-
init
public void init() -
init
-
createSolutionBusiness
-
createSolutionPanel
-
createExtraActions
-
createSolutionFileIO
Used for the unsolved and solved directories, not for the import and output directories, in the data directory.- Returns:
- never null
-
createSolutionImporters
-
createSolutionExporters
-