Class Job
java.lang.Object
QueueNet.Job
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
ForkJob
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected GlobalJobInfoListprotected NetSystemprotected double -
Constructor Summary
ConstructorsConstructorDescriptionJob(JobClass jobClass, GlobalJobInfoList globalJobInfoList) Creates a new instance of Job. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddQueueTime(double time) voidAddToVisitPath(org.apache.commons.math3.util.Pair<NetNode, JobClass> pair) Adds a pair to the visit path of this job.booleandoubleintgetId()Gets the ID of this job.Gets the class of this job.Gets the last pair visited by this job.Gets the next class of this job.Gets the destination node of this redirected job.doubleGets the remaining service time of this job.Gets the reneging message of this job.doubleGets the service start time of this job.doubleGets the service time of this job.Gets the serving message of this job.doubleGets the system entering time of this job.doubleinthashCode()voidinitialize(NetSystem netSystem) Initializes this job.voidResets the system entering time of this job.voidsetCurrentStationSoftDeadline(double currentStationSoftDeadline) voidsetJobClass(JobClass jobClass) Sets the class of this job.voidsetLastVisitedPair(org.apache.commons.math3.util.Pair<NetNode, JobClass> pair) Sets the last pair visited by this job.voidsetNextJobClass(JobClass jobClass) Sets the next class of this job.voidSets the destination node of this redirected job.voidsetRenegingMessage(RemoveToken message) Sets the reneging message of this job.voidsetServiceStartTime(double time) Sets the service start time of this job.voidsetServiceTime(double time) Sets the service time of this job.voidsetServingMessage(RemoveToken message) Sets the serving message of this job.voidsetSystemEnteringTime(double time) Sets the system entering time of this job.voidsetTotalQueueTime(double time)
-
Field Details
-
netSystem
-
systemEnteringTime
protected double systemEnteringTime -
globalJobInfoList
-
lastVisitedPair
-
-
Constructor Details
-
Job
Creates a new instance of Job.- Parameters:
jobClass- Reference to the class of the job.globalJobInfoList- Reference to the global jobInfoList.
-
-
Method Details
-
initialize
Initializes this job.- Parameters:
netSystem- the network system
-
getId
public int getId()Gets the ID of this job.- Returns:
- the ID of this job.
-
getJobClass
-
setJobClass
Sets the class of this job.- Parameters:
jobClass- the class of this job.
-
getNextJobClass
Gets the next class of this job.- Returns:
- the next class of this job.
-
setNextJobClass
Sets the next class of this job.- Parameters:
jobClass- the next class of this job.
-
getSystemEnteringTime
public double getSystemEnteringTime()Gets the system entering time of this job.- Returns:
- the system entering time of this job.
-
setSystemEnteringTime
public void setSystemEnteringTime(double time) Sets the system entering time of this job.- Parameters:
time- the system entering time of this job.
-
resetSystemEnteringTime
public void resetSystemEnteringTime()Resets the system entering time of this job. -
getOriginalDestinationNode
Gets the destination node of this redirected job.- Returns:
- the destination node of this redirected job.
-
setOriginalDestinationNode
Sets the destination node of this redirected job.- Parameters:
node- the destination node of this redirected job.
-
getServiceTime
public double getServiceTime()Gets the service time of this job.- Returns:
- the service time of this job.
-
setServiceTime
public void setServiceTime(double time) Sets the service time of this job.- Parameters:
time- the service time of this job.
-
getServiceStartTime
public double getServiceStartTime()Gets the service start time of this job.- Returns:
- the service start time of this job.
-
setServiceStartTime
public void setServiceStartTime(double time) Sets the service start time of this job.- Parameters:
time- the service start time of this job.
-
getServingMessage
Gets the serving message of this job.- Returns:
- the serving message of this job.
-
setServingMessage
Sets the serving message of this job.- Parameters:
message- the serving message of this job.
-
getRemainingServiceTime
public double getRemainingServiceTime()Gets the remaining service time of this job.- Returns:
- the remaining service time of this job.
-
getRenegingMessage
Gets the reneging message of this job.- Returns:
- the reneging message of this job.
-
setRenegingMessage
Sets the reneging message of this job.- Parameters:
message- the reneging message of this job.
-
getLastVisitedPair
-
setLastVisitedPair
-
AddToVisitPath
-
getTotalQueueTime
public double getTotalQueueTime() -
addQueueTime
public void addQueueTime(double time) -
setTotalQueueTime
public void setTotalQueueTime(double time) -
getNetSystem
-
getCurrentStationSoftDeadline
public double getCurrentStationSoftDeadline() -
setCurrentStationSoftDeadline
public void setCurrentStationSoftDeadline(double currentStationSoftDeadline) -
equals
-
hashCode
-