Class ForkJob
java.lang.Object
QueueNet.Job
QueueNet.ForkJob
- All Implemented Interfaces:
Cloneable
Title: Fork Job
Description: This class implements the fork job.
- Author:
- Lulai Zhu Date: 06-10-2016 Time: 14.00.00
-
Field Summary
Fields inherited from class Job
globalJobInfoList, lastVisitedPair, netSystem, systemEnteringTime -
Constructor Summary
ConstructorsConstructorDescriptionForkJob(JobClass jobClass, ForkJobInfo forkJobInfo) Creates a new ForkJob, given job class and shared information. -
Method Summary
Modifier and TypeMethodDescriptionGets parent job that was forked.intGets number of child jobs forked from the parent job.Gets information of this fork job.Gets fork node that forked the parent job.Gets original job that was forked.Methods inherited from class Job
addQueueTime, AddToVisitPath, equals, getCurrentStationSoftDeadline, getId, getJobClass, getLastVisitedPair, getNetSystem, getNextJobClass, getOriginalDestinationNode, getRemainingServiceTime, getRenegingMessage, getServiceStartTime, getServiceTime, getServingMessage, getSystemEnteringTime, getTotalQueueTime, hashCode, initialize, resetSystemEnteringTime, setCurrentStationSoftDeadline, setJobClass, setLastVisitedPair, setNextJobClass, setOriginalDestinationNode, setRenegingMessage, setServiceStartTime, setServiceTime, setServingMessage, setSystemEnteringTime, setTotalQueueTime
-
Constructor Details
-
ForkJob
Creates a new ForkJob, given job class and shared information.- Parameters:
jobClass- class of the fork job.forkJobInfo- info of the fork job.
-
-
Method Details
-
getForkedJob
-
getForkedNum
public int getForkedNum()Gets number of child jobs forked from the parent job.- Returns:
- number of child jobs forked from the parent job.
-
getForkNode
Gets fork node that forked the parent job.- Returns:
- fork node that forked the parent job.
-
getOriginalJob
Gets original job that was forked.- Returns:
- original job that was forked.
-
getForkJobInfo
Gets information of this fork job.- Returns:
- information of this fork job.
-