Class ClassSwitchingModel
-
- All Implemented Interfaces:
public class ClassSwitchingModel
Examples of models with class switching
-
-
Constructor Summary
Constructors Constructor Description ClassSwitchingModel()
-
Method Summary
Modifier and Type Method Description static Network
cs_implicit()
Class switching example with probabilistic transitions. static Network
cs_multi_diamond()
Multi-diamond class switching example. static Network
cs_single_diamond()
Single-diamond class switching example. static Network
cs_transient_class()
Transient class switching example. static void
main(Array<String> args)
Main method for testing and demonstrating class switching examples. -
-
Method Detail
-
cs_implicit
static Network 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
static Network 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
static Network 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
static Network 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
static void main(Array<String> args)
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)
-
-
-
-