OptaPlanner distribution 6.0.0.Final

org.optaplanner.examples.common.app
Class CommonApp

java.lang.Object
  extended by org.optaplanner.examples.common.app.LoggingMain
      extended by org.optaplanner.examples.common.app.CommonApp
Direct Known Subclasses:
CloudBalancingApp, CurriculumCourseApp, ExaminationApp, MachineReassignmentApp, Manners2009App, NQueensApp, NurseRosteringApp, PatientAdmissionScheduleApp, ProjectJobSchedulingApp, TennisApp, TravelingTournamentApp, TspApp, VehicleRoutingApp

public abstract class CommonApp
extends LoggingMain


Field Summary
protected  String description
           
protected  String iconResource
           
protected static org.slf4j.Logger logger
           
protected  String name
           
protected  SolutionBusiness solutionBusiness
           
protected  SolverAndPersistenceFrame solverAndPersistenceFrame
           
 
Constructor Summary
protected CommonApp(String name, String description, String iconResource)
           
 
Method Summary
 SolutionBusiness createSolutionBusiness()
           
protected abstract  SolutionDao createSolutionDao()
           
protected  AbstractSolutionExporter createSolutionExporter()
           
protected  AbstractSolutionImporter createSolutionImporter()
           
protected abstract  SolutionPanel createSolutionPanel()
           
protected abstract  Solver createSolver()
           
static void fixateLookAndFeel()
          Some examples are not compatible with every native LookAndFeel.
 String getDescription()
           
 String getIconResource()
           
 String getName()
           
 void init()
           
 void init(Component centerForComponent, boolean exitOnClose)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.slf4j.Logger logger

name

protected final String name

description

protected final String description

iconResource

protected final String iconResource

solverAndPersistenceFrame

protected SolverAndPersistenceFrame solverAndPersistenceFrame

solutionBusiness

protected SolutionBusiness solutionBusiness
Constructor Detail

CommonApp

protected CommonApp(String name,
                    String description,
                    String iconResource)
Method Detail

fixateLookAndFeel

public static void fixateLookAndFeel()
Some examples are not compatible with every native LookAndFeel. For example, NurseRosteringPanel is incompatible with Mac.


getName

public String getName()

getDescription

public String getDescription()

getIconResource

public String getIconResource()

init

public void init()

init

public void init(Component centerForComponent,
                 boolean exitOnClose)

createSolutionBusiness

public SolutionBusiness createSolutionBusiness()

createSolver

protected abstract Solver createSolver()

createSolutionPanel

protected abstract SolutionPanel createSolutionPanel()

createSolutionDao

protected abstract SolutionDao createSolutionDao()

createSolutionImporter

protected AbstractSolutionImporter createSolutionImporter()

createSolutionExporter

protected AbstractSolutionExporter createSolutionExporter()

OptaPlanner distribution 6.0.0.Final

Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.