Enum SchedStrategy
-
- All Implemented Interfaces:
public enum SchedStrategyEnumeration 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)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INFInfinite Server - each job gets its own server immediately (delay station)
FCFSFirst Come First Serve - jobs served in order of arrival
LCFSLast Come First Serve - most recent arrival served first (non-preemptive)
LCFSPRLast Come First Serve Preemptive Resume - arriving job preempts current service
SIROService In Random Order - jobs selected randomly from queue
SJFShortest Job First - jobs with smallest service requirement served first
LJFLongest Job First - jobs with largest service requirement served first
PSProcessor Sharing - all jobs receive equal share of service capacity
DPSDiscriminatory Processor Sharing - jobs receive weighted shares based on class
GPSGeneralized Processor Sharing - minimum service guarantee with work-conserving
SEPTShortest Expected Processing Time - based on expected remaining service time
LEPTLongest Expected Processing Time - based on expected remaining service time
HOLHead Of Line priority (FCFS with priorities) - highest priority class served first
FORKFork node - jobs are split into parallel tasks
EXTExternal routing - used for open classes at sources
REFReference station - used for closed classes
POLLINGPolling - server visits queues in cyclic order
PSPRIOProcessor Sharing with Priorities - PS within priority levels
DPSPRIODiscriminatory PS with Priorities - DPS within priority levels
GPSPRIOGeneralized PS with Priorities - GPS within priority levels
-
Method Summary
Modifier and Type Method Description static SchedStrategyfromText(String string)Converts a LINE string representation to a SchedStrategy enum value. static StringtoFeature(SchedStrategy scheduling)Converts a SchedStrategy enum value to a feature string for analysis. static StringtoText(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 SchedStrategyvalueOf(String name)Returns the enum constant of this type with the specified name. -
-
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
-
-
-
-