Package jline.api.sn

Class SnRefreshProcessFieldsKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • snRefreshProcessFields

         final static NetworkStruct snRefreshProcessFields(NetworkStruct sn, Integer stationIdx, Integer classIdx)

        Refreshes process fields for a specific station-class pair based on current rate and SCV.

        Given the rate and SCV in sn.rates and sn.scv, this function computes and updates:

        • sn.proc: MAP representation {D0, D1}

        • sn.procid: Process type (EXP, ERLANG, HYPEREXP)

        • sn.mu: Phase service rates

        • sn.phi: Phase completion probabilities

        • sn.pie: Initial phase distribution

        • sn.phases, sn.phasessz, sn.phaseshift: Phase count information

        The process type is determined by SCV:

        • SCV = 1.0: Exponential (1 phase)

        • SCV < 1.0: Erlang approximation (k phases where k = ceil(1/scv))

        • SCV 1.0: Hyperexponential(2) approximation

        Parameters:
        sn - NetworkStruct to modify (in-place)
        stationIdx - Station index (0-based)
        classIdx - Class index (0-based)
        Returns:

        The modified NetworkStruct (same instance)

      • snRefreshAllProcessFields

         final static NetworkStruct snRefreshAllProcessFields(NetworkStruct sn)

        Refreshes process fields for all station-class pairs.

        Iterates through all stations and classes, refreshing process fields for each pair that has a valid rate defined.

        Parameters:
        sn - NetworkStruct to modify (in-place)
        Returns:

        The modified NetworkStruct (same instance)