Class OpenExamples
-
- All Implemented Interfaces:
public class OpenExamples
Open queueing network examples mirroring the Kotlin notebooks in openQN.
This class contains Java implementations that mirror the Kotlin notebook examples found in jar/src/main/kotlin/jline/examples/kotlin/basic/openQN/. Each method demonstrates a specific open queueing network concept using models from the basic package.
The examples cover: - Basic open networks with multiple solver comparisons - Class switching and routing patterns - Multi-class systems with complex topologies - Trace-driven service and empirical distributions - One-line network specifications - Virtual sinks and probabilistic routing
-
-
Constructor Summary
Constructors Constructor Description OpenExamples()
-
Method Summary
Modifier and Type Method Description static void
oqn_basic()
Basic open queueing network (oqn_basic.ipynb). static void
oqn_cs_routing()
Three-class open network with class switching (oqn_cs_routing.ipynb). static void
oqn_fourqueues()
Complex multi-class open network with four queues (oqn_fourqueues.ipynb). static void
oqn_oneline()
One-line tandem PS network specification (oqn_oneline.ipynb). static void
oqn_trace_driven()
Open network with trace-driven service (oqn_trace_driven.ipynb). static void
oqn_vsinks()
Open network with virtual sinks (oqn_vsinks.ipynb). static void
main(Array<String> args)
Main method demonstrating all open queueing network examples. -
-
Method Detail
-
oqn_basic
static void oqn_basic()
Basic open queueing network (oqn_basic.ipynb).
Demonstrates a basic open queueing network with hyperexponential service time distribution and comparison of multiple solvers.
Features: - Open network structure: jobs arrive from external source and depart through sink - Hyperexponential service distribution at delay station - Multiple solver comparison (CTMC, JMT, SSA, Fluid, MVA, NC) - Performance analysis with steady-state metrics
-
oqn_cs_routing
static void oqn_cs_routing()
Three-class open network with class switching (oqn_cs_routing.ipynb).
Demonstrates class switching behavior in open networks where jobs can transform from one class to another during processing.
Features: - Three open classes: Class A and B arrive, Class C created via switching - Class switching from A→C and B→C at ClassSwitch node - Two PS queues with different service rates per class - Multiple solver comparison (CTMC, Fluid, MVA, MAM, NC, JMT, SSA)
-
oqn_fourqueues
static void oqn_fourqueues()
Complex multi-class open network with four queues (oqn_fourqueues.ipynb).
Demonstrates a web service architecture with multiple storage systems and complex feedback routing patterns.
Features: - Three open classes with different arrival rates and priorities - Four queues: WebServer (FCFS), Storage1 (FCFS), Storage2 (PS), Storage3 (FCFS) - Complex feedback routing with 25% probability splits - Multiple solver comparison (CTMC, MVA, MAM, JMT) - matches MATLAB coverage
-
oqn_oneline
static void oqn_oneline()
One-line tandem PS network specification (oqn_oneline.ipynb).
Demonstrates compact network specification using matrix-based constructors for processor sharing queues with delays.
Features: - Matrix-based constructor for PS queues with delay - Lambda matrix defines arrival rates for multiple classes - D matrix defines service demands at stations - Z matrix defines service times at delay stations
-
oqn_trace_driven
static void oqn_trace_driven()
Open network with trace-driven service (oqn_trace_driven.ipynb).
Demonstrates empirical service time distributions driven by trace files, useful for modeling real workload patterns.
Features: - Single open class with exponential arrivals - Queue service driven by trace file (example_trace.txt) - Empirical service time distributions from real data - Simple Source → Queue → Sink topology
-
oqn_vsinks
static void oqn_vsinks()
Open network with virtual sinks (oqn_vsinks.ipynb).
Demonstrates probabilistic routing to multiple exit points using virtual sinks for different departure streams.
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 - Multiple exit points from the network
-
-
-
-