Class PrioModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidMain method for testing and demonstrating priority examples.static NetworkClosed network comparing scheduling strategies with priorities.static NetworkOpen network with multiple scheduling strategies and priority classes.static NetworkNetwork with GPSPRIO scheduling and multiple priority classes.static NetworkSimple priority network with PSPRIO scheduling.
-
Constructor Details
-
PrioModel
public PrioModel()
-
-
Method Details
-
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
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
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
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
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
-