Package jmt.engine.dataAnalysis

Examples of jmt.engine.dataAnalysis.InverseMeasure.update()


  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


      // 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

      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

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.