Class GlobalJobInfoList
java.lang.Object
QueueNet.GlobalJobInfoList
Title: Global Job Info List
Description: This class provides a global "job info list" to be used during simulation to compute global measures. This is designed to be associated to a simulation object.
- Author:
- Bertoli Marco Date: 8-mar-2006 Time: 12.27.42 Modified by Ashanka (Feb 2010) Desc: Modified the logic of System Power calculation. Earlier the logic was to capture the response time (rn) of each job when it was entering the sink and to capture the time of throughput (xn) for each job. Then x1/r1 ... x2/r2 ... x3/r3 ... was sent for System Power Simulation Engine. This logic was modified into: x1/r1 .. [x1/r1 + (x1+x2)/(r1+r2)] .. [x1/r1 + (x1+x2)/(r1+r2) + (x1+x2+x3)/(r1+r2+r3)] ..
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method MUST be called each time a new job is added to the network.voidanalyzeBalkingRate(JobClass jobClass, Measure Measure) Analyzes System Balking Rate for a specific job class or for every classvoidanalyzeDropRate(JobClass jobClass, Measure Measure) Analyzes System Drop Rate for a specific job class or for every class.voidanalyzeEarliness(JobClass jobClass, Measure measure) Analyzes System Earliness for a specific job class or for every class.voidanalyzeJobNumber(JobClass jobClass, Measure Measure) Analyzes System Number of Jobs for a specific job class or for every class.voidanalyzeLateness(JobClass jobClass, Measure measure) Analyzes System Lateness for a specific job class or for every class.voidanalyzeRenegingRate(JobClass jobClass, Measure Measure) Analyzes System Reneging Rate for a specific job class or for every classvoidanalyzeResponseTime(JobClass jobClass, Measure measure) Analyzes System Response Time for a specific job class or for every class.voidanalyzeRetrialAttemptsRate(JobClass jobClass, Measure Measure) Analyzes System Retrial Attempts Rate for a specific job class or for every class.voidanalyzeSystemPower(JobClass jobClass, Measure Measure) Analyzes System Power for a specific job class or for every class.voidanalyzeTardiness(JobClass jobClass, Measure measure) Analyzes System Tardiness for a specific job class or for every class.voidanalyzeThroughput(JobClass jobClass, Measure Measure) Analyzes System Throughput for a specific job class or for every class.voidThis method must be called each time a job is balked by a queuevoidconsumeJob(Job job) This method MUST be called each time a job is consumed by a transition.voidThis method must be called each time a job is dropped by a queue, a place or a blocking region.Gets chain set.Map<org.apache.commons.math3.util.Pair<NetNode, JobClass>, Set<org.apache.commons.math3.util.Pair<NetNode, JobClass>>> Gets pair chain map.Gets total visit count.Gets visit count per chain.voidperformJobClassSwitch(JobClass oldClass, JobClass newClass) It changes the class of a job from @oldClass to @newClass.voidproduceJob(Job job) This method MUST be called each time a job is produced by a transition.voidrecycleJob(Job job) This method MUST be called each time a job cycles in its reference station.voidThis method MUST be called each time a job is removed from the network.voidThis method MUST be called each time a job is reneged by a queue.voidThis method must be called each time a job is retried by a queuevoidsetNetSystem(NetSystem netSystem) protected voidupdateChainGraph(org.apache.commons.math3.util.Pair<NetNode, JobClass> sourcePair, org.apache.commons.math3.util.Pair<NetNode, JobClass> targetPair) Updates chain graph.
-
Constructor Details
-
GlobalJobInfoList
public GlobalJobInfoList(int classNum) Creates a new GlobalJobInfoList- Parameters:
classNum- number of classes in current network model
-
-
Method Details
-
addJob
This method MUST be called each time a new job is added to the network.- Parameters:
job- identifier of added job.
-
removeJob
This method MUST be called each time a job is removed from the network.- Parameters:
job- identifier of removed job.
-
recycleJob
This method MUST be called each time a job cycles in its reference station.- Parameters:
job- identifier of cycling job.
-
dropJob
This method must be called each time a job is dropped by a queue, a place or a blocking region.- Parameters:
job- identifier of dropped job.
-
balkJob
This method must be called each time a job is balked by a queue- Parameters:
job- identifier of balked job
-
renegeJob
This method MUST be called each time a job is reneged by a queue.- Parameters:
job- identifier of reneged job.
-
retryJob
This method must be called each time a job is retried by a queue- Parameters:
job- identifier of retried job
-
produceJob
This method MUST be called each time a job is produced by a transition.- Parameters:
job- identifier of produced job.
-
consumeJob
This method MUST be called each time a job is consumed by a transition.- Parameters:
job- identifier of consumed job.
-
analyzeJobNumber
-
analyzeResponseTime
-
analyzeThroughput
-
analyzeDropRate
-
analyzeBalkingRate
-
analyzeRenegingRate
-
analyzeRetrialAttemptsRate
-
analyzeSystemPower
-
analyzeTardiness
-
analyzeEarliness
-
analyzeLateness
-
updateChainGraph
-
performJobClassSwitch
-
setNetSystem
-
getChainSet
-
getPairChainMap
-
getVisitCountPerChain
-
getTotalVisitCount
-