Пример #1
0
 /**
  * This method MUST be called each time a new job is added to the network
  *
  * @param job identifier of created job
  */
 public void addJob(Job job) {
   job.resetSystemEnteringTime();
   updateJobNumber(job);
   // Updates job number data structures
   lastModifyNumberPerClass[job.getJobClass().getId()] = lastModifyNumber = NetSystem.getTime();
   jobs++;
   jobsPerClass[job.getJobClass().getId()]++;
 }
Пример #2
0
  /**
   * This method MUST be called each time a job cycles in its reference station
   *
   * @param job identifier of cycling job
   */
  public void recycleJob(Job job) {
    updateResponseTime(job);
    updateThroughput(job);

    updateJobNumber(job);

    // Added by ASHANKA START
    // Analyse the sample
    updateSystemPower(job);
    // Added by ASHANKA STOP

    // Updates jobs number and throughput data structures
    lastModifyNumberPerClass[job.getJobClass().getId()] = lastModifyNumber = NetSystem.getTime();
    lastJobOutTimePerClass[job.getJobClass().getId()] = lastJobOutTime = NetSystem.getTime();

    job.resetSystemEnteringTime();
  }