Examples of Progress


Examples of bdsup2sub.gui.support.Progress

        boolean ifo = FilenameUtils.getExtension(fname).equalsIgnoreCase("ifo");

        fileName = fname;
        progressMax = (int)(new File(fname)).length();
        progressLast = 0;
        progress = new Progress(parent);
        progress.setTitle("Loading");
        progress.setText("Loading subtitle stream");
        if (xml || sid == StreamID.XML) {
            runType = RunType.READXML;
        } else if (idx || sid == StreamID.DVDSUB || sid == StreamID.IDX) {
View Full Code Here

Examples of betsy.common.util.Progress

    protected static void log(Path path, Runnable closure) {
        LogUtil.log(path, LOGGER, closure);
    }

    public void execute() {
        final Progress progress = new Progress(testSuite.getProcessesCount());
        MDC.put("progress", progress.toString());

        // prepare test suite
        // MUST BE OUTSITE OF LOG -> as it deletes whole file tree
        FileTasks.deleteDirectory(testSuite.getPath());
        FileTasks.mkdirs(testSuite.getPath());

        log(testSuite.getPath(), () -> {
            // fail fast
            for (AbstractBPMNEngine engine : testSuite.getEngines()) {
                if (engine.isRunning()) {
                    throw new IllegalStateException("Engine " + engine.getName() + " is running");
                }
            }

            for (AbstractBPMNEngine engine : testSuite.getEngines()) {

                FileTasks.mkdirs(engine.getPath());

                log(engine.getPath(), () -> {
                    for (BPMNProcess process : engine.getProcesses()) {

                        progress.next();
                        MDC.put("progress", progress.toString());

                        executeProcess(process);
                    }
                });
            }
View Full Code Here

Examples of com.structis.fichesst.server.bean.domain.Progress

        }

        List<Progress> progressList = persistence.getProgresses();
        if (progressList != null) {
          for (Iterator<Progress> iterator = progressList.iterator(); iterator.hasNext();) {
            Progress progress = iterator.next();
            progress.setFicheSt(null);
            iterator.remove();
          }
        }

        List<Penalty> penaltyList = persistence.getPenalties();
View Full Code Here

Examples of com.structis.fichesst.server.bean.domain.Progress

   * @param listProcess
   * @param listSrcProcess
   * @return
   */
  private String createProgress(List<Progress> listProcess,List<String> listSrcProcess){
    Progress previousProgress = null;
    Progress progress = null;
    String srcProgress = "";
    String totalProcess = "";
    double mois = 0.0;
    double mois2;
    for (int j = 0; j < listProcess.size(); j++) {   
      progress = listProcess.get(j);
      if(j > 0){
        previousProgress = listProcess.get(j-1);
        mois = progress.getCumule() - previousProgress.getCumule();
        mois2 = progress.getCumule2() - previousProgress.getCumule2();
      }else{
        mois = progress.getCumule();
        mois2 = progress.getCumule2();
      }
      srcProgress += append((j+1),progress.getLabel(),progress.getDate(),progress.getCumule(),mois,progress.getCumule2(),mois2);
      totalProcess = append(progress.getCumule(),mois,progress.getCumule2(),mois2);
    }
    listSrcProcess.add(srcProgress);
    return totalProcess;
  }
View Full Code Here

Examples of com.structis.fichesst.server.bean.domain.Progress

        gestion = listGestion.get(i);
        totalTraite += gestion.getTraite();
      }
    }
    if( listProcess != null && listProcess.size() > 0 ) {
      Progress progress = null;
      for( int i = 0 ; i < listProcess.size() ; i++ ) {
        progress = listProcess.get(i);
        cumuleSum = progress.getCumule();
      }
    }

    if( totalTraite == 0 ) {
      etatAvancement = 0.0;
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.logging.progress.Progress

   * @param record Log record to publish
   */
  public void publish(final LogRecord record) {
    if(record instanceof ProgressLogRecord) {
      ProgressLogRecord preg = (ProgressLogRecord) record;
      Progress prog = preg.getProgress();
      JProgressBar pbar = getOrCreateProgressBar(prog);
      updateProgressBar(prog, pbar);
      if(prog.isComplete()) {
        removeProgressBar(prog, pbar);
      }
      if(prog.isComplete() || prog instanceof StepProgress) {
        publishTextRecord(record);
      }
    }
    else {
      publishTextRecord(record);
View Full Code Here

Examples of eu.ha3.matmos.game.data.abstractions.scanner.Progress

   
    int lineNumber = 0;
   
    if (this.scanDebug.startsWith("scan_large"))
    {
      Progress progressObject = this.dataGatherer.getLargeScanProgress();
      float progress = (float) progressObject.getProgress_Current() / progressObject.getProgress_Total();
     
      fontRenderer.drawStringWithShadow(
        "Scan ["
          + mc.theWorld.getHeight() + "]: " + StringUtils.repeat("|", (int) (100 * progress)) + " ("
          + (int) (progress * 100) + "%)", 20, 2 + 9 * lineNumber, 0xFFFFCC);
View Full Code Here

Examples of gem.util.Progress

   * @param trips
   */
  public static void assignGammaPval(Collection<Triplet> trips)
  {
    System.out.print("Assigining significance ...");
    Progress p = new Progress(trips.size());
    for (Triplet t : trips)
    {
      t.pvalGamma = calcGammaPval(t.cnt);
//      t.pvalGamma = calcModulationPval(t.cnt);

//      int[][][] c = CaseCounter.countComplete(t);
//      t.dcmi = MINDy.calcDMI(c);
//      t.pvalDcmi = MINDy.calcPval(c);

      p.tick();
    }
  }
View Full Code Here

Examples of gem.util.Progress

    double pv_thr = 5.418500919305291E-4;

    List <Triplet> trips = new ArrayList<Triplet>();

    Progress p = new Progress(mods.size());

    for (String u1 : mods)
    {
      p.tick();

      Gene U1 = id2gene.get(u1);
      if (U1 == null) continue;

      for (String u2 : mods)
View Full Code Here

Examples of gem.util.Progress

   */
  public static void count(Collection<Triplet> trips, double tailRatio)
  {
    System.out.print("Counting cases ... ");

    Progress p = new Progress(trips.size());
    Set<Gene> adjusted = new HashSet<Gene>();
    for (Triplet t : trips)
    {
      if (!adjusted.contains(t.M)) { t.M.rankAdjustStatus(tailRatio); adjusted.add(t.M);}
      if (!adjusted.contains(t.F)) { t.F.rankAdjustStatus(tailRatio); adjusted.add(t.F);}
      if (!adjusted.contains(t.T)) { t.T.rankAdjustStatus(tailRatio); adjusted.add(t.T);}

      count(t);
      p.tick();
    }
  }
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.