Package de.timefinder.algo

Examples of de.timefinder.algo.AlgorithmConditionTime


    private List<Pair> orderActions;
    private AlgorithmCondition condition;

    public NoCollisionPrinciple() {
        statusBar = new ConsoleStatusBar();
        condition = new AlgorithmConditionTime(5 * 60);
    }
View Full Code Here


        ApplicationWindow aw = getApplicationWindow();
        aw.getStatusBar().clear();

        // TODO make variable
        int sec = 5 * 60;
        algorithm.setCondition(new AlgorithmConditionTime(sec));
        String msg = tr.get(ID + ".startTask", sec / 60.0f);

        aw.getStatusBar().getProgressMonitor().taskStarted(msg, -1);
        MySwingWorker sw = new MySwingWorker(ID) {

View Full Code Here

        final Algorithm algorithm = new UniTimeOptimization();
        ((UniTimeOptimization) algorithm).setInitialAssignment(true);

        // TODO make seconds editable via GUI
        int sec = 5 * 60;
        algorithm.setCondition(new AlgorithmConditionTime(sec));
        String msg = tr.get(ID + ".startTask", sec / 60.0f);

        aw.getStatusBar().getProgressMonitor().taskStarted(msg, -1);
        MySwingWorker sw = new MySwingWorker(ID) {

View Full Code Here

        Location loc1 = new Location("loc1", 10);
        lDao.attach(loc1);

        unitimer = new UniTimeOptimization();
        unitimer.setCondition(new AlgorithmConditionTime(1));
        unitimer.setInitialAssignment(true);
        unitimer.setStatusBar(new ConsoleStatusBar());
        unitimer.setDataPool(dataPool);
        unitimer.setDataPoolSettings(settings);
        unitimer.start();
View Full Code Here

        Location loc1 = new Location("loc1", 10);
        lDao.attach(loc1);

        unitimer = new UniTimeOptimization();
        unitimer.setCondition(new AlgorithmConditionTime(1));
        unitimer.setInitialAssignment(true);
        unitimer.setStatusBar(new ConsoleStatusBar());
        unitimer.setDataPool(dataPool);
        unitimer.setDataPoolSettings(settings);
        unitimer.start();
View Full Code Here

        // 9 hours per day
        settings.setTimeslotsPerDay(9);

        NoCollisionPrinciple ncpInstance = new NoCollisionPrinciple();
        ncpInstance.setRandom(new Random(seed));//123456L
        ncpInstance.setCondition(new AlgorithmConditionTime(seconds));
        ncpInstance.setDataPoolSettings(settings);
        ncpInstance.setStatusBar(new SilentConsoleStatusBar());
        ncpInstance.setDataPool(dataPool);

        loadData(dataPool, new File(fileOrFolder), settings);
View Full Code Here

    @Test
    public void testStart() throws Exception {
        ImportWinQD importer = new ImportWinQD(dataPool, settings, new File(ImportWinQDTest.GMG_FOLDER));
        importer.doWork();
        unitimer = new UniTimeOptimization();
        unitimer.setCondition(new AlgorithmConditionTime(10));
        unitimer.setStatusBar(new ConsoleStatusBar());
        unitimer.setDataPool(dataPool);
        unitimer.setDataPoolSettings(settings);
        unitimer.start();
    }
View Full Code Here

TOP

Related Classes of de.timefinder.algo.AlgorithmConditionTime

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.