Package jline.api.sn

Class SnRtStations

java.lang.Object
jline.api.sn.SnRtStations

public final class SnRtStations extends Object
  • Method Details

    • snRtStations

      public static Pair<Matrix,Matrix> snRtStations(NetworkStruct sn)
      Station-to-station routing probabilities and per-station visits.

      Indexing sn.rt or sn.visits by station index silently reads the wrong rows as soon as the model owns a stateful node that is not a station (Router, Cache, stateful class switch). The routing matrix returned here absorbs those nodes,

      Pst = P_AA + P_AB * (I - P_BB)^-1 * P_BA,
      with A the station rows in station order and B the remaining stateful rows, which is exact because a non-station stateful node holds no jobs: it passes every arrival on instantaneously. When every stateful node is a station the result is sn.rt unchanged.

      Parameters:
      sn - network structure
      Returns:
      the (M*K,M*K) routing matrix and the (M,K) visits