Enum SchedStrategy

  • All Implemented Interfaces:

    
    public enum SchedStrategy
    
                        

    Enumeration of scheduling strategies available at queueing stations.

    These constants specify how jobs are selected for service when multiple jobs are waiting at a station. Each strategy implements different prioritization and fairness policies.

    Common strategies include:

    • FCFS - First Come First Serve
    • PS - Processor Sharing
    • LCFS - Last Come First Serve
    • SJF - Shortest Job First
    • INF - Infinite servers (delay station)
    • 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
      INF

      Infinite Server - each job gets its own server immediately (delay station)

      FCFS

      First Come First Serve - jobs served in order of arrival

      LCFS

      Last Come First Serve - most recent arrival served first (non-preemptive)

      LCFSPR

      Last Come First Serve Preemptive Resume - arriving job preempts current service

      SIRO

      Service In Random Order - jobs selected randomly from queue

      SJF

      Shortest Job First - jobs with smallest service requirement served first

      LJF

      Longest Job First - jobs with largest service requirement served first

      PS

      Processor Sharing - all jobs receive equal share of service capacity

      DPS

      Discriminatory Processor Sharing - jobs receive weighted shares based on class

      GPS

      Generalized Processor Sharing - minimum service guarantee with work-conserving

      SEPT

      Shortest Expected Processing Time - based on expected remaining service time

      LEPT

      Longest Expected Processing Time - based on expected remaining service time

      HOL

      Head Of Line priority (FCFS with priorities) - highest priority class served first

      FORK

      Fork node - jobs are split into parallel tasks

      EXT

      External routing - used for open classes at sources

      REF

      Reference station - used for closed classes

      POLLING

      Polling - server visits queues in cyclic order

      PSPRIO

      Processor Sharing with Priorities - PS within priority levels

      DPSPRIO

      Discriminatory PS with Priorities - DPS within priority levels

      GPSPRIO

      Generalized PS with Priorities - GPS within priority levels

    • Method Summary

      Modifier and Type Method Description
      static SchedStrategy fromText(String string) Converts a LINE string representation to a SchedStrategy enum value.
      static String toFeature(SchedStrategy scheduling) Converts a SchedStrategy enum value to a feature string for analysis.
      static String toText(SchedStrategy scheduling) Converts a SchedStrategy enum value to its text representation.
      static Array<SchedStrategy> values() Returns an array containing the constants of this enum type, in the order they're declared.
      static SchedStrategy valueOf(String name) Returns the enum constant of this type with the specified name.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • fromText

         static SchedStrategy fromText(String string)

        Converts a LINE string representation to a SchedStrategy enum value.

        Parameters:
        string - the string representation (e.g.
        Returns:

        the corresponding SchedStrategy enum value

      • toFeature

         static String toFeature(SchedStrategy scheduling)

        Converts a SchedStrategy enum value to a feature string for analysis.

        Parameters:
        scheduling - the scheduling strategy to convert
        Returns:

        the feature string representation

      • toText

         static String toText(SchedStrategy scheduling)

        Converts a SchedStrategy enum value to its text representation.

        Parameters:
        scheduling - the scheduling strategy to convert
        Returns:

        the text representation of the strategy

      • values

         static Array<SchedStrategy> values()

        Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

        Returns:

        an array containing the constants of this enum type, in the order they're declared

      • valueOf

         static SchedStrategy valueOf(String name)

        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

        Returns:

        the enum constant with the specified name