Package net.geco.model

Examples of net.geco.model.Trace


        control++;
      } else if( trace.isSubst() ) {
        if( cutSubst ) {
          String code = trace.getCode();
          int cut = code.indexOf("+"); //$NON-NLS-1$
          Trace mpTrace = factory().createTrace(code.substring(0, cut), TimeManager.NO_TIME);
          splits.add(createSplit(Integer.toString(control), mpTrace, startTime, TimeManager.NO_TIME_l, TimeManager.NO_TIME_l));
          Trace addedTrace = factory().createTrace(code.substring(cut), trace.getTime());
          added.add(createSplit("", addedTrace, startTime, TimeManager.NO_TIME_l, time)); //$NON-NLS-1$
        } else {
          splits.add(createSplit(Integer.toString(control), trace, startTime, TimeManager.NO_TIME_l, time));
        }
        control++;
View Full Code Here


        j--;
      } else {
        int max = max(matrix[j][i], matrix[j+1][i], matrix[j][i+1]);
        choice: {
          if( max==matrix[j][i] ) {
            Trace t = factory().createTrace("-" + codes[i] + "+" + punches[j].getCode(), //$NON-NLS-1$ //$NON-NLS-2$
                              punches[j].getTime());
            path.add(0, t);
            i--;
            j--;
            break choice;
View Full Code Here

  }
 
  protected void appendHtmlSplitsInLine(SplitTime[] linearSplits, Html html) {
    for (SplitTime splitTime : linearSplits) {
      html.openTr("lin"); //$NON-NLS-1$
      Trace trace = splitTime.trace;
      String time = TimeManager.time(splitTime.time);
      if( trace!=null ) {
        html.td(splitTime.seq);
        html.td(splitTime.trace.getCode());
        String timeClass = "class=\""; //$NON-NLS-1$
        if( trace.isOK() ) {
          timeClass += "time"; //$NON-NLS-1$
        } else {
          if( trace.isAdded() || trace.isSubst() ) {
            timeClass += "add"; //$NON-NLS-1$
          } else {
            timeClass += "miss"; //$NON-NLS-1$
          }
        }
View Full Code Here

TOP

Related Classes of net.geco.model.Trace

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.