Class PSJobInfo
java.lang.Object
QueueNet.JobInfo
QueueNet.PSJobInfo
This class is a generic job information storage class used by processor-
sharing.
- Author:
- Lulai Zhu
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the Ahead service time in last quantum.doubleGets the residual service time that the job must receive.doubleGets the service time that the job must receive.voidperformServiceTime(double serviceTime) Performs the service time that the job has received.voidsetAheadServiceTimeInLastQuantum(double aheadServiceTimeInLastQuantum) Sets the ahead service time in last quantum.voidsetResidualServiceTime(double residualServiceTime) Sets the residual service time that the job must receive.voidsetServiceTime(double serviceTime) Sets the service time that the job must receive.Methods inherited from class JobInfo
getEnteringTime, getJob, getNetSystem, resetEnteringTime
-
Constructor Details
-
PSJobInfo
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.
-