Class OpenModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidMain method for testing and demonstrating open model examples.static NetworkSimple open network with delay and queue in series.static NetworkThree-class open network with class switching.static NetworkComplex multi-class open network with four queues.static NetworkTandem PS network with delay station using matrix notation.static NetworkOpen network with trace-driven service using Replayer.static NetworkOpen network with probabilistic routing to multiple virtual sinks.
-
Constructor Details
-
OpenModel
public OpenModel()
-
-
Method Details
-
oqn_basic
Simple open network with delay and queue in series.Features: - Single open class with exponential arrivals (rate 0.1) - Delay node with HyperExp service distribution - FCFS queue with exponential service - Serial routing: Source → Delay → Queue → Sink
- Returns:
- configured open network model
-
oqn_oneline
Tandem PS network with delay station using matrix notation.Features: - Uses Matrix-based constructor for PS queues with delay - Lambda matrix defines arrival rates for two classes - D matrix defines service demands at stations - Z matrix defines service times at delay stations
- Returns:
- configured tandem PS network
-
oqn_cs_routing
Three-class open network with class switching.Features: - Three open classes (A, B, C) with Class C having no arrivals - Class switching from A→C and B→C at ClassSwitch node - Two PS queues with different service rates per class - Demonstrates class transformation in open networks
- Returns:
- configured open network with class switching
-
oqn_trace_driven
Open network with trace-driven service using Replayer.Features: - Single open class with exponential arrivals - Queue service driven by trace file (example_trace.txt) - Demonstrates empirical service time distributions - Simple Source → Queue → Sink topology
- Returns:
- configured trace-driven network model
-
oqn_vsinks
Open network with probabilistic routing to multiple virtual sinks.Features: - Two open classes with different routing patterns - Class1: 60% to VSink1, 40% to VSink2 - Class2: 10% to VSink1, 90% to VSink2 - Router nodes as intermediate destinations - Demonstrates probabilistic routing patterns
- Returns:
- configured network with probabilistic routing
-
oqn_fourqueues
Complex multi-class open network with four queues.Features: - Three open classes with different arrival rates - Four queues: FCFS (Queue1,2,4) and PS (Queue3) - Complex routing patterns with probabilistic splits - Different service rates for each class at each queue
- Returns:
- configured multi-class open network
-
main
Main method for testing and demonstrating open model examples.Currently configured to run oqn_cs_routing() and solve it using multiple solvers (CTMC, Fluid, MVA, MAM, NC, JMT, SSA) for comparison. This matches the structure of the oqn_cs_routing.ipynb notebook.
- Parameters:
args- command line arguments (not used)- Throws:
Exception- if solver encounters an error
-