Class LayeredExamples

java.lang.Object
jline.examples.java.basic.LayeredExamples

public class LayeredExamples extends Object
Layered network examples mirroring the example notebooks in layeredModel.

This class contains Java implementations that mirror the example notebooks found in jar/src/main/java/jline/examples/java/basic/layeredModel/. Each method demonstrates a specific layered network concept using models from the basic package.

The examples cover: - Basic layered network structures with processors and tasks - Activity precedence patterns and synchronous calls - Multi-solver approaches for layered networks - Enterprise application modeling patterns - BPMN-style workflow representations

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
     
    static void
    BPMN-style layered network (lqn_bpmn.ipynb).
    static void
    Multi-solver layered network (lqn_multi_solvers.ipynb).
    static void
    OFBiz-style layered network (lqn_ofbiz.ipynb).
    static void
    Serial layered network (lqn_serial.ipynb).
    static void
    A processor whose servers are not interchangeable (lqn_server_pools).
    static void
    Layered network with a setup / delay-off task (lqn_setup.ipynb).
    static void
    Sock Shop microservice layered network (lqn_sockshop).
    static void
    Two-task layered network (lqn_twotasks.ipynb).
    static void
    Workflow layered network (lqn_workflows.ipynb).
    static void
    main(String[] args)
    Main method demonstrating selected layered network examples.

    Methods inherited from class java.lang.Object

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

    • LayeredExamples

      public LayeredExamples()
  • Method Details

    • lqn_server_pools

      public static void lqn_server_pools() throws Exception
      A processor whose servers are not interchangeable (lqn_server_pools).

      Prints the fully-compatible pool, which is the neutral declaration, and then the compatibility graph, under which neither task reaches more than two of the three servers.

      Throws:
      Exception
    • lqn_basic

      public static void lqn_basic() throws Exception
      Throws:
      Exception
    • lqn_serial

      public static void lqn_serial() throws Exception
      Serial layered network (lqn_serial.ipynb).

      Shows serial activity precedence in layered networks with synchronous call patterns.

      Throws:
      Exception
    • lqn_multi_solvers

      public static void lqn_multi_solvers() throws Exception
      Multi-solver layered network (lqn_multi_solvers.ipynb).

      Demonstrates different solver approaches for layered networks with infinite server capacity.

      Throws:
      Exception
    • lqn_twotasks

      public static void lqn_twotasks() throws Exception
      Two-task layered network (lqn_twotasks.ipynb).

      Shows interaction between multiple tasks with synchronous call patterns.

      Throws:
      Exception
    • lqn_bpmn

      public static void lqn_bpmn() throws Exception
      BPMN-style layered network (lqn_bpmn.ipynb).

      Shows fork-join patterns with OrFork, AndFork, OrJoin, and AndJoin activity precedence.

      Throws:
      Exception
    • lqn_setup

      public static void lqn_setup() throws Exception
      Layered network with a setup / delay-off task (lqn_setup.ipynb).

      The servers of task F2 switch off when idle and pay a setup time when a request reactivates them.

      Throws:
      Exception
    • lqn_workflows

      public static void lqn_workflows() throws Exception
      Workflow layered network (lqn_workflows.ipynb).

      Demonstrates loop and fork-join precedence patterns with nested synchronous calls.

      Throws:
      Exception
    • lqn_ofbiz

      public static void lqn_ofbiz() throws Exception
      OFBiz-style layered network (lqn_ofbiz.ipynb).

      Enterprise application model inspired by Apache OFBiz with database and application layers.

      Throws:
      Exception
    • lqn_sockshop

      public static void lqn_sockshop() throws Exception
      Sock Shop microservice layered network (lqn_sockshop).

      Demonstrates a multi-tier microservice architecture with processor replication, fan-in/fan-out, and PS scheduling.

      Throws:
      Exception
    • main

      public static void main(String[] args) throws Exception
      Main method demonstrating selected layered network examples.
      Throws:
      Exception