Package jline.api.sn
Class SnPnAvgRates
java.lang.Object
jline.api.sn.SnPnAvgRates
Place throughput, arrival rate and response time in tokens.
A Place is a station and a token is the job it holds, so a firing that
consumes two tokens is two departures, not one. The CTMC and SSA analyzers
count firing events instead, which for unit arc multiplicities is the same
number and for weighted arcs is not: the reported throughput is then not a
token rate, and QLen over it is not a sojourn time.
This function rescales the Place rows to tokens:
- TN(p,k) tokens consumed from the Place per unit time
- AN(p,k) tokens produced into the Place per unit time
- RN(p,k) QN(p,k) / TN(p,k), Little's law over the Place
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidsnPnAvgRates(NetworkStruct sn, Matrix QN, Matrix TN, Matrix AN, Matrix RN) Rescales the Place rows of TN, AN and RN to tokens, in place.
-
Method Details
-
snPnAvgRates
Rescales the Place rows of TN, AN and RN to tokens, in place.- Parameters:
sn- network structureQN- average queue lengths, i.e. mean token counts at the PlacesTN- average throughputs at stations, counting firing eventsAN- average arrival rates at stations, or null when not yet computedRN- average response times at stations, or null when not needed
-