Class Sn_set_service_cocKt

    • 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
    • Method Summary

      Modifier and Type Method Description
      final static Unit sn_set_service_coc(NetworkStruct sn, Integer stationIdx, Integer classIdx, Double rate, Double scv) Update service rate in NetworkStruct preserving Map-based format.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • sn_set_service_coc

         final static Unit sn_set_service_coc(NetworkStruct sn, Integer stationIdx, Integer classIdx, Double rate, Double scv)

        Update service rate in NetworkStruct preserving Map-based format.

        Works like sn_set_service with autoRefresh=true, but writes mu, phi, proc, pie using Map-based indexing. This avoids breaking solvers that expect the standard NetworkStruct format.

        Parameters:
        sn - NetworkStruct to update (modified in-place)
        stationIdx - station index (0-based)
        classIdx - class index (0-based)
        rate - new service rate (positive scalar)
        scv - squared coefficient of variation (default 1.