Class OpenModel

java.lang.Object
jline.examples.java.basic.OpenModel

public class OpenModel extends Object
Examples of open queueing networks
  • Constructor Details

    • OpenModel

      public OpenModel()
  • Method Details

    • oqn_basic

      public static Network 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

      public static Network 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

      public static 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

      public static Network 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

      public static Network 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

      public static Network 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

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