Examples of doWork()


Examples of ch.inftec.ju.db.JuConnUtil.doWork()

       
        // Create a new connUtil to make sure we'll see the changes there...
        JuConnUtil connUtil2 = JuConnUtils.build()
          .profile(JuUtils.getJuPropertyChain().get("ju-dbutil-test.profile", true))
          .create();
        connUtil2.doWork(new DbWork() {
          @Override
          public void execute(Connection conn) {
            Long id2 = JuConnUtils.asJdbcTemplate(conn).queryForLong("select id from juConnUtilTestTable where id=1");
            Assert.assertEquals(new Long(1), id2);
           
View Full Code Here

Examples of com.iisigroup.cap.action.IAction.doWork()

    IResult rtn = null;
    @SuppressWarnings("static-access")
    String actionType = params.get(handler.FORM_ACTION);
    //setName(handler.getHandlerName() + "." + actionType);
    IAction action = handler.getAction(actionType);
    rtn = action.doWork(params);
    ctx.setGoToStep(NEXT);
    ctx.setResult(rtn);
    return ctx;
  }// ;
View Full Code Here

Examples of de.timefinder.algo.Algorithm.doWork()

            @Override
            protected void myconstruct() throws Exception {
                algorithm.setDataPoolSettings(settings);
                algorithm.setDataPool(dataPool);
                algorithm.setStatusBar(new StatusBarBridge(getApplicationWindow().getStatusBar()));
                algorithm.doWork();
            }
        };
        sw.execute();
    }
}
View Full Code Here

Examples of de.timefinder.algo.io.DataPool4Track2.doWork()

    @Test
    public void testRunAlgorithm() {
        System.out.println("runAlgorithm");
        DataPool4Track2 dataPool4Track2 = createDP4Track2();
        dataPool4Track2.doWork();
        assertTrue(ncpInstance.getDataPool().getDao(Event.class).getAll().size() > 100);
        Solution sol = ncpInstance.doWork();
        ConstraintChecker.printStatistics(sol, true);
        assertTrue("Optimization is not efficient enough!", ncpInstance.getHardConflicts() < 20);
    }
View Full Code Here

Examples of de.timefinder.algo.io.DataPool4Track2.doWork()

    }

    @Test
    public void testGetInitialPeriode() {
        DataPool4Track2 dataPool4Track2 = createDP4Track2();
        dataPool4Track2.doWork();
        int oldSize = ncpInstance.getDataPool().getDao(Event.class).getAll().size();

        Period currentWeek = ncpInstance.getInitialPeriod(true);
        assertEquals(oldSize, currentWeek.getAll().size());
        assertEquals(oldSize, currentWeek.getInvalidAssignments().size());
View Full Code Here

Examples of de.timefinder.algo.io.DataPool4Track2.doWork()

            DataPool4Track2 dataPool4Track2 = new DataPool4Track2();
            dataPool4Track2.setSettings(settings);
            dataPool4Track2.setDataPool(dataPool);
            dataPool4Track2.setSource(reader);

            dataPool4Track2.doWork();
        }
    }
}
View Full Code Here

Examples of de.timefinder.algo.ncp.NoCollisionPrinciple.doWork()

        ncpInstance.setDataPool(dataPool);

        loadData(dataPool, new File(fileOrFolder), settings);

        long start = System.currentTimeMillis();
        Solution solution = ncpInstance.doWork();
//        ConstraintChecker.printStatistics(solution);

        return start;
    }
View Full Code Here

Examples of de.timefinder.algo.ncp.NoCollisionPrinciple.doWork()

        ncpInstance.setCondition(new AlgorithmConditionIteration(5));
        ncpInstance.setDataPoolSettings(settings);
        ncpInstance.setStatusBar(new SilentConsoleStatusBar());
        ncpInstance.setDataPool(dataPool);

        ncpInstance.doWork();
    }
}
View Full Code Here

Examples of de.timefinder.algo.ncp.NoCollisionPrinciple.doWork()

        ncpInstance.setCondition(new AlgorithmConditionIteration(1000));
        ncpInstance.setDataPoolSettings(settings);
        ncpInstance.setStatusBar(new SilentConsoleStatusBar());
        ncpInstance.setDataPool(dataPool);

        ncpInstance.doWork();
    }
}
View Full Code Here

Examples of de.timefinder.core.io.text.ImportText.doWork()

            protected void myconstruct() throws Exception {
                bar.getProgressMonitor().worked(10);
                ImportText importer = new ImportText(dataPool, settings, file);

                bar.getProgressMonitor().worked(20);
                importer.doWork();
                bar.getProgressMonitor().worked(80);
            }

            @Override
            protected void done() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.