Class PSJobInfo


public class PSJobInfo extends JobInfo
This class is a generic job information storage class used by processor- sharing.
Author:
Lulai Zhu
See Also:
  • Constructor Details

    • PSJobInfo

      public PSJobInfo(Job job)
      Creates a new instance of JobInfo object.
      Parameters:
      job - Job referenced by this JobInfo.
  • Method Details

    • getServiceTime

      public double getServiceTime()
      Gets the service time that the job must receive.
      Returns:
      Service time that the job must receive.
    • setServiceTime

      public void setServiceTime(double serviceTime)
      Sets the service time that the job must receive.
      Parameters:
      serviceTime - Service time that the job must receive.
    • getResidualServiceTime

      public double getResidualServiceTime()
      Gets the residual service time that the job must receive.
      Returns:
      Residual service time that the job must receive.
    • setResidualServiceTime

      public void setResidualServiceTime(double residualServiceTime)
      Sets the residual service time that the job must receive.
      Parameters:
      residualServiceTime - Residual service time that the job must receive.
    • performServiceTime

      public void performServiceTime(double serviceTime)
      Performs the service time that the job has received.
      Parameters:
      serviceTime - Service time that the job has received.
    • getAheadServiceTimeInLastQuantum

      public double getAheadServiceTimeInLastQuantum()
      Gets the Ahead service time in last quantum.
      Returns:
      Ahead service time in last quantum.
    • setAheadServiceTimeInLastQuantum

      public void setAheadServiceTimeInLastQuantum(double aheadServiceTimeInLastQuantum)
      Sets the ahead service time in last quantum.
      Parameters:
      aheadServiceTimeInLastQuantum - ahead service time in last quantum.