Class PrioModel

java.lang.Object
jline.examples.java.basic.PrioModel

public class PrioModel extends Object
Examples of queueing models with priorities
  • Constructor Details

    • PrioModel

      public PrioModel()
  • Method Details

    • prio_hol_open

      public static Network prio_hol_open()
      Open network with multiple scheduling strategies and priority classes.

      Features: - Three open classes with different priority levels (Class2 has priority 1) - Five stations with different scheduling: FCFS, SIRO, PS, HOL - HOL (Head-of-Line) queue demonstrates priority scheduling - Complex routing with 25% probability splits from central queue - All classes have identical arrival rates but different service rates - Demonstrates impact of scheduling strategies on class performance

      Returns:
      configured priority-based open network model
    • prio_hol_closed

      public static Network prio_hol_closed()
      Closed network comparing scheduling strategies with priorities.

      Features: - Three closed classes (18 jobs each) with Class2 having priority 1 - Six stations: SlowDelay, FCFS, SIRO, PS, HOL queues, FastDelay - Central FCFS queue distributes traffic (25% each direction) - HOL queue provides priority service for Class2 - Cyclic topology demonstrating sustained priority effects - Identical service rates at delay stations for fair comparison

      Returns:
      configured closed priority network model
    • prio_psprio

      @NotNull public static Network prio_psprio()
      Simple priority network with PSPRIO scheduling.

      Features: - Two closed classes (2 jobs each) with Class2 having priority 1 - PSPRIO (Processor Sharing with Priorities) scheduling - Mixed service distributions: Erlang for Class1, HyperExp for Class2 - Serial two-station topology: Delay → PSPRIO Queue → Delay - Demonstrates preemptive priority in processor sharing

      Returns:
      configured PSPRIO network model
    • prio_identical

      public static Network prio_identical()
      Network with GPSPRIO scheduling and multiple priority classes.

      Features: - Four closed classes with different populations and priorities - Two stations: Delay node and GPSPRIO queue with weights - Class1: 6 jobs, priority 0; Class2,3: 4 jobs, priority 1; Class4: 1 job, priority 2 - Demonstrates GPS (Generalized Processor Sharing) with priorities - Different service rates and weights for weighted fair sharing - Simple serial routing: Delay → GPSPRIO Queue → Delay

      Returns:
      configured network with GPSPRIO scheduling
    • main

      public static void main(String[] args) throws Exception
      Main method for testing and demonstrating priority examples.

      Currently configured to: - Run prio_psprio() with PSPRIO scheduling - Use JMT options with specified seed and sample count - Solve using SSA solver and print average metrics - Model visualization and JMT solving are commented out

      Parameters:
      args - command line arguments (not used)
      Throws:
      Exception - if solver encounters an error