Class LayeredCQExamples

java.lang.Object
jline.examples.java.advanced.LayeredCQExamples

public class LayeredCQExamples extends Object
Examples demonstrating layered queueing networks with contention queues (CQ). This class provides Java implementations corresponding to the Kotlin notebooks in jline.examples.kotlin.advanced.layeredCQ package.
  • Constructor Details

    • LayeredCQExamples

      public LayeredCQExamples()
  • Method Details

    • lcq_singlehost

      public static void lcq_singlehost() throws Exception
      Demonstrates a layered CQ model with a single host (lcq_singlehost.ipynb). This example shows a basic layered queueing network where software tasks execute on a single host. The model captures both software contention (at the task level) and hardware contention (at the host level), typical in client-server architectures. Features: - Single host with multiple software tasks - Nested queueing structure (software and hardware layers) - Analysis of software bottlenecks vs. hardware bottlenecks - Mean value analysis for layered networks
      Throws:
      Exception - if the solver encounters an error
    • lcq_threehosts

      public static void lcq_threehosts() throws Exception
      Demonstrates a layered CQ model with three hosts (lcq_threehosts.ipynb). This example extends the single host case to a distributed system with three hosts. Different software tasks are deployed on different hosts, creating a more complex interaction pattern typical of multi-tier architectures. Features: - Three hosts with distributed software tasks - Inter-host communication patterns - Analysis of distributed system bottlenecks - Load balancing considerations in layered networks
      Throws:
      Exception - if the solver encounters an error
    • main

      public static void main(String[] args)
      Main method to run all layered CQ examples.
      Parameters:
      args - command line arguments (not used)