Class ClassSwitchingModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NetworkClass switching example with probabilistic transitions.static NetworkMulti-diamond class switching example.static NetworkSingle-diamond class switching example.static NetworkTransient class switching example.static voidMain method for testing and demonstrating class switching examples.
-
Constructor Details
-
ClassSwitchingModel
public ClassSwitchingModel()
-
-
Method Details
-
cs_implicit
Class switching example with probabilistic transitions.Features: - Two open classes with different arrival rates (10.0 and 2.0) - ClassSwitch node with probabilistic class transitions - Class1 → Class1 (30%) or Class1 → Class2 (70%) - Class2 → Class1 (100%) - FCFS queue with identical service rates for both classes - Demonstrates class switching in open networks
- Returns:
- configured class switching network model
-
cs_multi_diamond
Multi-diamond class switching example.Features: - Three FCFS queues with different service rates - Three open classes with only Class1 having external arrivals - Class switching through routing matrix creating multiple paths - Demonstrates implicit class switching without ClassSwitch node
- Returns:
- configured class switching network model
-
cs_single_diamond
Single-diamond class switching example.Features: - Three Delay nodes (infinite servers) in a closed network - Three closed classes with only Class1 having initial population - Creates a diamond-shaped flow pattern through class switching - Jobs can switch from Class1 to Class2/3, then return to Class1
- Returns:
- configured class switching network model
-
cs_transient_class
Transient class switching example.Features: - Three Delay nodes with Class1 served at all nodes - Class2 and Class3 only served at specific nodes - Creates an absorbing Markov chain where jobs eventually get stuck - Once jobs switch to Class2 or Class3, they remain in those classes
- Returns:
- configured class switching network model
-
main
Main method for testing and demonstrating class switching examples.Currently configured to: - Run cs_implicit() with class switching demonstration - Print network structure and routing matrix details - Solve using MVA solver and display various performance tables - Show average metrics, system metrics, and chain metrics
- Parameters:
args- command line arguments (not used)- Throws:
Exception- if solver encounters an error
-