Package jline.api.sn

Class SnPnAvgRates

java.lang.Object
jline.api.sn.SnPnAvgRates

public final class SnPnAvgRates extends Object
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
Rows that do not belong to a Place are left untouched, so a mixed Queue/Place model keeps its queueing metrics. When the firing rates cannot be recovered from the throughputs the inputs are left unchanged rather than replaced by a guess. Port of matlab/src/api/sn/sn_pn_avg_rates.m
  • Method Details

    • snPnAvgRates

      public static void snPnAvgRates(NetworkStruct sn, Matrix QN, Matrix TN, Matrix AN, Matrix RN)
      Rescales the Place rows of TN, AN and RN to tokens, in place.
      Parameters:
      sn - network structure
      QN - average queue lengths, i.e. mean token counts at the Places
      TN - average throughputs at stations, counting firing events
      AN - average arrival rates at stations, or null when not yet computed
      RN - average response times at stations, or null when not needed