Package jline.api.sn

Class SnSetArrivalKt

    • 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

      • snSetArrival

         final static NetworkStruct snSetArrival(NetworkStruct sn, Integer classIdx, Double rate, Double scv, ModifyMode mode, ValidationLevel validation, Boolean autoRefresh)

        Sets the arrival rate for a class at the Source station.

        This is a convenience method that finds the Source station and delegates to snSetService. Arrival rates are stored in the same rates matrix as service rates, at the Source station's row.

        Parameters:
        sn - NetworkStruct to modify
        classIdx - Class index (0-based)
        rate - New arrival rate (lambda, must be positive)
        scv - Squared coefficient of variation (default 1.
        mode - IN_PLACE modifies sn directly, COPY returns a modified copy
        validation - Validation level to apply
        autoRefresh - If true, refresh process fields after modification
        Returns:

        Modified NetworkStruct

      • snSetArrivalBatch

         final static NetworkStruct snSetArrivalBatch(NetworkStruct sn, Matrix rates, Matrix scvs, ModifyMode mode, ValidationLevel validation, Boolean autoRefresh)

        Sets arrival rates for multiple classes in a single operation.

        More efficient than calling snSetArrival multiple times when updating many classes. NaN values in the rates matrix are skipped.

        Parameters:
        sn - NetworkStruct to modify
        rates - Matrix of new arrival rates (1 x nclasses or nclasses x 1) - NaN values are skipped
        scvs - Matrix of new SCVs (same size as rates) - optional, NaN values skipped
        mode - IN_PLACE modifies sn directly, COPY returns a modified copy
        validation - Validation level to apply
        autoRefresh - If true, refresh process fields after modification
        Returns:

        Modified NetworkStruct