Package jmt.engine.dataAnalysis

Examples of jmt.engine.dataAnalysis.InverseMeasure


        //jobsList.analyzeThroughput(jobClass, measurement);
        //NEW
        //an InverseMeasured object is required to analyze throughput
        //@author Stefano Omini
        if (measurement instanceof InverseMeasure) {
          InverseMeasure inv = (InverseMeasure) measurement;
          jobsList.analyzeThroughput(jobClass, inv);
        } else {
          throw new jmt.common.exception.NetException(this, EXCEPTION_MEASURE_DOES_NOT_EXIST,
              "An InverseMeasure object is required to analyze throughput!");
        }
View Full Code Here


    }
  }
  public void updateThroughputPerSink(JobInfo jobInfo) {
    int c = jobInfo.getJob().getJobClass().getId();
    if (throughputPerSinkPerClass != null) {
      InverseMeasure m = throughputPerSinkPerClass[c];
      if (m != null) {
        m.update(NetSystem.getTime() - getLastJobDropTimePerClass(jobInfo.getJob().getJobClass()), 1.0);
      }
    }
    if (throughputPerSink != null) {
      throughputPerSink.update(NetSystem.getTime() - getLastJobDropTime(), 1.0);
    }
View Full Code Here

      sim.addConnection("server1", "server2");
      sim.addConnection("server2", "terminal");

      //measure

      jmt.engine.dataAnalysis.Measure mis3_s1 = new InverseMeasure(testName + "_x1.out", .1, .1, 1000000, true);
      jmt.engine.dataAnalysis.Measure mis3_s2 = new InverseMeasure(testName + "_x2.out", .1, .1, 1000000, true);

      int through = SimConstants.THROUGHPUT;

      sim.addMeasure(through, "server1", mis3_s1, classes[0].getName());
      //sim.addMeasure(through, "server2", mis3_s2, classes[0].getName());
View Full Code Here

  private void updateThroughput(Job job) {
    if (throughputPerClass != null) {
      // Retrives measure (if not null)
      // new sample is the inter-departures time (1/throughput)
      int index = job.getJobClass().getId();
      InverseMeasure m = throughputPerClass[index];
      if (m != null) {
        m.update(NetSystem.getTime() - lastJobOutTimePerClass[index], 1.0);
      }
    }
    if (throughput != null) {
      throughput.update(NetSystem.getTime() - lastJobOutTime, 1.0);
    }
View Full Code Here

    systemPowerSamples = systemPowerSamples +1;
    if (systemPowerPerClass != null) {
      // Retrives measure (if not null)
      // new sample is the inter-departures time (1/throughput)
      int index = job.getJobClass().getId();
      InverseMeasure m = systemPowerPerClass[index];
      samplingClass_SystemThroughputSum[index] = samplingClass_SystemThroughputSum[index] + NetSystem.getTime() - lastJobOutTimePerClass[index];
      systemPowerSamplesClass[index] = systemPowerSamplesClass[index] + 1;
      //Measure m = systemPowerPerClass[index];
      if (m != null) {
        double temp = (sampling_SystemResponseSum/systemPowerSamples) * (samplingClass_SystemThroughputSum[index]/systemPowerSamplesClass[index]);
        //double temp = (NetSystem.getTime() - job.getSystemEnteringTime()) * (NetSystem.getTime() - lastJobOutTimePerClass[index]);
        m.update(temp, 1.0);
      }
    }
    if (systemPower != null) {
      double tmp = (sampling_SystemResponseSum/systemPowerSamples) * (sampling_SystemThroughputSum/systemPowerSamples);
      //double tmp = (NetSystem.getTime() - job.getSystemEnteringTime()) * (NetSystem.getTime() - lastJobOutTime);//(R/X)
View Full Code Here

      //measure

      jmt.engine.dataAnalysis.Measure mis1 = new jmt.engine.dataAnalysis.Measure("queuelength_s.out", .1, .1, 1000000, false, null);
      jmt.engine.dataAnalysis.Measure mis11 = new jmt.engine.dataAnalysis.Measure("queuelength_t.out", .1, .1, 1000000, false, null);
      jmt.engine.dataAnalysis.Measure mis2 = new jmt.engine.dataAnalysis.Measure("utilization_s.out", .1, .1, 1000000, false, null);
      jmt.engine.dataAnalysis.Measure mis3 = new InverseMeasure("throughput_s.out", .1, .1, 1000000, false);
      jmt.engine.dataAnalysis.Measure mis4 = new jmt.engine.dataAnalysis.Measure("queuetime_s.out", .1, .1, 1000000, false, null);
      jmt.engine.dataAnalysis.Measure mis5 = new jmt.engine.dataAnalysis.Measure("residencetime_s.out", .1, .1, 1000000, false, null);

      jmt.engine.dataAnalysis.Measure mis6 = new jmt.engine.dataAnalysis.Measure("utilization_t.out", .1, .1, 1000000, false, null);
      jmt.engine.dataAnalysis.Measure mis7 = new InverseMeasure("throughput_t.out", .1, .1, 1000000, false);
      jmt.engine.dataAnalysis.Measure mis8 = new jmt.engine.dataAnalysis.Measure("residencetime_t.out", .1, .1, 1000000, false, null);
      jmt.engine.dataAnalysis.Measure mis9 = new jmt.engine.dataAnalysis.Measure("responsetime_s.out", .1, .1, 1000000, false, null);
      jmt.engine.dataAnalysis.Measure mis10 = new jmt.engine.dataAnalysis.Measure("responsetime_t.out", .1, .1, 1000000, false, null);

      int queue_l = SimConstants.QUEUE_LENGTH;
View Full Code Here

            //Added System power as an Inverse Measure.
            || measureType == SimConstants.SYSTEM_POWER
            || measureType == SimConstants.THROUGHPUT_PER_SINK
        ) {
          //throughput measure
          InverseMeasure invMeasure = new InverseMeasure(e.getAttribute("name"), Double.parseDouble(e.getAttribute("alpha")), Double
              .parseDouble(e.getAttribute("precision")), maxSamples, e.getAttribute("verbose").equalsIgnoreCase("true"));

          sim.addMeasure(measureType, e.getAttribute("referenceNode"), invMeasure, e.getAttribute("referenceUserClass"), nodeType);
        } else {
          //other measures
View Full Code Here

TOP

Related Classes of jmt.engine.dataAnalysis.InverseMeasure

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.