Class OpenExamples
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic voidMain method demonstrating all open queueing network examples.static voidBasic open queueing network (oqn_basic.ipynb).static voidThree-class open network with class switching (oqn_cs_routing.ipynb).static voidComplex multi-class open network with four queues (oqn_fourqueues.ipynb).static voidOne-line tandem PS network specification (oqn_oneline.ipynb).static voidOpen network with trace-driven service (oqn_trace_driven.ipynb).static voidOpen network with virtual sinks (oqn_vsinks.ipynb).
-
Constructor Details
-
OpenExamples
public OpenExamples()
-
-
Method Details
-
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
- Throws:
Exception- if any solver fails
-
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)
- Throws:
Exception- if solver fails
-
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
- Throws:
Exception- if solver fails
-
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
- Throws:
Exception- if solver fails
-
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
- Throws:
Exception- if solver fails
-
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
- Throws:
Exception- if solver fails
-
main
Main method demonstrating all open queueing network examples.Executes all example methods to showcase the different open network concepts and solution approaches available in LINE.
- Parameters:
args- command line arguments (not used)- Throws:
Exception- if any example fails
-