Package jline.api.sn

Class SnSetPriorityKt

    • 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

      • snSetPriority

         final static NetworkStruct snSetPriority(NetworkStruct sn, Integer classIdx, Double priority, ModifyMode mode, ValidationLevel validation)

        Sets the priority for a class.

        Updates the classprio matrix in the NetworkStruct. Lower priority values typically indicate higher priority (depends on scheduler).

        Parameters:
        sn - NetworkStruct to modify
        classIdx - Class index (0-based)
        priority - Priority value
        mode - IN_PLACE modifies sn directly, COPY returns a modified copy
        validation - Validation level to apply
        Returns:

        Modified NetworkStruct

      • snSetPriorityBatch

         final static NetworkStruct snSetPriorityBatch(NetworkStruct sn, Matrix priorities, ModifyMode mode, ValidationLevel validation)

        Sets priorities for multiple classes in a single operation.

        More efficient than calling snSetPriority multiple times. NaN values in the priorities matrix are skipped (not updated).

        Parameters:
        sn - NetworkStruct to modify
        priorities - Matrix of new priorities (1 x nclasses or nclasses x 1) - NaN values are skipped
        mode - IN_PLACE modifies sn directly, COPY returns a modified copy
        validation - Validation level to apply
        Returns:

        Modified NetworkStruct