Package jmt.engine.dataAnalysis

Examples of jmt.engine.dataAnalysis.Measure


  static void stopNoSamplesMeasures() {
    ListIterator<QueueNetwork> networks = networkList.listIterator();
    QueueNetwork network;
    ListIterator<Measure> measures;
    int num;
    Measure measure;
    while (networks.hasNext()) {
      network = networks.next();
      num = network.getMeasures().size();
      if (num > 0) {
        measures = network.getMeasures().listIterator();

        while (measures.hasNext()) {
          measure = measures.next();

          if (!measure.hasFinished()) {
            measure.testDeadMeasure();
          }
        }
      }
    }
  }
View Full Code Here


   * @param job current job
   */
  private void updateResponseTime(Job job) {
    if (responseTimePerClass != null) {
      // Retrives measure (if not null)
      Measure m = responseTimePerClass[job.getJobClass().getId()];
      if (m != null) {
        m.update(NetSystem.getTime() - job.getSystemEnteringTime(), 1.0);
      }
    }
    if (responseTime != null) {
      responseTime.update(NetSystem.getTime() - job.getSystemEnteringTime(), 1.0);
    }
View Full Code Here

   */
  private void updateJobNumber(Job job) {
    if (jobNumPerClass != null) {
      // Retrives measure (if not null)
      int index = job.getJobClass().getId();
      Measure m = jobNumPerClass[index];
      if (m != null) {
        m.update(jobsPerClass[index], NetSystem.getTime() - lastModifyNumberPerClass[index]);
      }
    }
    if (jobNum != null) {
      jobNum.update(jobs, NetSystem.getTime() - lastModifyNumber);
    }
View Full Code Here

   */
  private void updateDropRate(Job job) {
    if (dropRatePerClass != null) {
      // Retrives measure (if not null)
      int index = job.getJobClass().getId();
      Measure m = dropRatePerClass[index];
      if (m != null) {
        m.update(NetSystem.getTime() - lastJobDropTimePerClass[index], 1.0);
      }
    }
    if (dropRate != null) {
      dropRate.update(NetSystem.getTime() - lastJobDropTime, 1.0);
    }
View Full Code Here

              .parseDouble(e.getAttribute("precision")), maxSamples, e.getAttribute("verbose").equalsIgnoreCase("true"));

          sim.addMeasure(measureType, e.getAttribute("referenceNode"), invMeasure, e.getAttribute("referenceUserClass"), nodeType);
        } else {
          //other measures
          Measure measure = new Measure(e.getAttribute("name"), Double.parseDouble(e.getAttribute("alpha")), Double.parseDouble(e
              .getAttribute("precision")), maxSamples, e.getAttribute("verbose").equalsIgnoreCase("true"), null);

          sim.addMeasure(measureType, e.getAttribute("referenceNode"), measure, e.getAttribute("referenceUserClass"), nodeType);

        }
View Full Code Here

TOP

Related Classes of jmt.engine.dataAnalysis.Measure

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.