Class OpenExamples

java.lang.Object
jline.examples.java.basic.OpenExamples

public class OpenExamples extends Object
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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
    Main method demonstrating all open queueing network examples.
    static void
    Basic open queueing network (oqn_basic.ipynb).
    static void
    Three-class open network with class switching (oqn_cs_routing.ipynb).
    static void
    Complex multi-class open network with four queues (oqn_fourqueues.ipynb).
    static void
    One-line tandem PS network specification (oqn_oneline.ipynb).
    static void
    Open network with trace-driven service (oqn_trace_driven.ipynb).
    static void
    Open network with virtual sinks (oqn_vsinks.ipynb).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OpenExamples

      public OpenExamples()
  • Method Details

    • oqn_basic

      public static void oqn_basic() throws Exception
      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

      public static void oqn_cs_routing() throws Exception
      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

      public static void oqn_fourqueues() throws Exception
      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

      public static void oqn_oneline() throws Exception
      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

      public static void oqn_trace_driven() throws Exception
      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

      public static void oqn_vsinks() throws Exception
      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

      public static void main(String[] args) throws Exception
      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