Package ru.vassaev.core.types

Examples of ru.vassaev.core.types.TimeList


            //System.out.println("005 ::: " + fullname);
            return;
          }
        }
        if (p != null) {
          TimeList tl = getTimeList(gl_name, p);
          result = p.calculate(tl, Context.this);
          //System.out.println("006 ::: " + fullname);
          if (p.getTrace())
            tl.printTrace();
          p.executeCopyTo(Context.this, result);
        }
        if (log)
          Context.this.log(false, "ASYNC:", gl_name, "=", result);
        // System.out.println(Context.this.ta.getAlias() + " : " +
View Full Code Here


          continue;
        String name = x.getKey();
        if (v instanceof IDependentParam) {
          IDependentParam d = (IDependentParam) v;
          if (!d.isNoSave()) {
            TimeList tl = cntx.getTimeList(d.getGLName(), d);
            Object vl = d.getValue(cntx);
            if (Null.equ(vl))
              continue;
            long wait = tl.getWaitTime();
            long calc = tl.getWorkTime();
            long sc = tl.getSystemCallTime();
            // ta.setTaskParamObject(id_task, x.getKey(),
            // d.getValue(cntx));
            ta.setParamObject(id_task, name, vl, wait, calc, sc);
          }
        } else {
View Full Code Here

    super();
  }

  //*
  public final Object getValue(Context cntx) throws CalculateException {
    TimeList tl = cntx.getTimeList(gl_name, this);
    tl.addPointTime(TimeList.Type.START);
    try {
      return calculate(tl, cntx);
    } finally {
      tl.addPointTime(TimeList.Type.END);
    }
  }
View Full Code Here

          // TODO Auto-generated catch block
          e.printStackTrace();
        }
      }
    }
    TimeList tl = cntx.getTimeList(gl_name, this);
    long w = tl.getWaitTime();
    long c = tl.getWorkTime();
    long sc = tl.getSystemCallTime();
    ta.setParamObject(id_task, fullname, val, w, c, sc);
  }
View Full Code Here

      value = nvl;
    return value;
  }

  public final TimeList getTimeList(String name, IDependentParam p) {
    TimeList tl;
    synchronized (prms_time) {
      tl = prms_time.get(name);
      if (tl == null) {
        if (p != null && p.getTrace())
          tl = new TimeList(name, true);
        else
          tl = new TimeList(name);
        prms_time.put(name, tl);
      }
    }
    return tl;
  }
View Full Code Here

        return result;
      }
    }
    if (p != null) {
      try {
        TimeList tl = getTimeList(gl_name, p);
        result = p.calculate(tl, this);
        //System.out.println("106 ::: " + fullname);
        if (p.getTrace())
          tl.printTrace();
      } catch (CalculateException e) {
        if (v != null)
          v.retException(e);
        throw e;
      }
View Full Code Here

   * Функция расчёта значения параметра в указанном контексте
   * @param cntx - Контекст расчёта
   * @return результат расчёта
   */
  public final Object calculate(Context cntx) throws CalculateException {
    TimeList tl = cntx.getTimeList(owner, tp);
    try {
      tl.addPointTime(TimeList.Type.START);
      return calculate(tl, cntx);
    } finally {
      tl.addPointTime(TimeList.Type.END);
    }
  }
View Full Code Here

TOP

Related Classes of ru.vassaev.core.types.TimeList

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.