Class LayeredModel

  • All Implemented Interfaces:

    
    public class LayeredModel
    
                        

    Examples of layered networks

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      LayeredModel()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static LayeredNetwork lqn_basic() Basic layered network with multiple processors and synchronous calls.
      static LayeredNetwork lqn_serial() Basic layered network with two processors and synchronous calls.
      static LayeredNetwork lqn_multi_solvers() Layered network with infinite servers and APH service.
      static LayeredNetwork lqn_function() Layered network with function task demonstrating FaaS/serverless.
      static LayeredNetwork lqn_twotasks() Layered network with multiple entries and synchronous calls.
      static LayeredNetwork lqn_bpmn() Complex layered network with fork-join patterns and multiple precedence types.
      static LayeredNetwork lqn_workflows() Layered network demonstrating loop and fork-join precedence patterns.
      static LayeredNetwork lqn_ofbiz() Large enterprise layered network model (ofbizExample substitute).
      static void main(Array<String> args) Main method for testing and demonstrating layered model examples.
      • Methods inherited from class java.lang.Object

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

      • LayeredModel

        LayeredModel()
    • Method Detail

      • lqn_basic

         static LayeredNetwork lqn_basic()

        Basic layered network with multiple processors and synchronous calls.

        Features: - Two PS processors P1 (2 cores) and P2 (3 cores) - Three tasks: T1 (50 jobs, REF), T2 (50 jobs, FCFS), T3 (25 jobs, FCFS) - Synchronous call chain: T1 -> E2 (1 call), T2 -> E3 (5 calls) - Demonstrates basic multi-tier application modeling

        Returns:

        configured basic layered network model

      • lqn_serial

         static LayeredNetwork lqn_serial()

        Basic layered network with two processors and synchronous calls.

        Features: - Two PS processors P1 and P2 with single server each - Task T1 (10 jobs, REF) with exponential think time (0.01) - Task T2 (1 job, FCFS) with immediate think time - Activities with serial precedence and synchronous calls - Demonstrates basic layered network modeling

        Returns:

        configured layered network model

      • lqn_multi_solvers

         static LayeredNetwork lqn_multi_solvers()

        Layered network with infinite servers and APH service.

        Features: - Two infinite capacity processors (P1, P2) - Task T1 (1 job, REF) with Erlang think time - Task T2 (infinite jobs, INF) with immediate think time - APH service distribution with high variability (SCV=10) - Synchronous call with multiplicity 3

        Returns:

        configured layered network with infinite servers

      • lqn_function

         static LayeredNetwork lqn_function()

        Layered network with function task demonstrating FaaS/serverless.

        Features: - 2 processors (P1 infinite, P2 with 4 servers) - FunctionTask demonstrating cold start and keep-alive behavior - Setup time (cold start penalty) and delay-off time (warm duration) - Synchronous calls between client and function layers - Representative of serverless/FaaS architectures

        Returns:

        configured layered network with function task

      • lqn_twotasks

         static LayeredNetwork lqn_twotasks()

        Layered network with multiple entries and synchronous calls.

        Features: - Two PS processors with high task populations - Task T1 (100 jobs, REF) with Erlang think time - Task T2 (100 jobs, INF) with multiple entries (E2, E3) - Activity A1 makes synchronous calls to both E2 and E3 - Serial precedence pattern in T2 activities - Demonstrates concurrent service requests

        Returns:

        configured multi-entry layered network

      • lqn_bpmn

         static LayeredNetwork lqn_bpmn()

        Complex layered network with fork-join patterns and multiple precedence types.

        Features: - 7 processors with varying capacities and scheduling strategies - 7 tasks with different multiplicity and reference patterns - 16 entries across all tasks - OrFork, AndFork, OrJoin, AndJoin activity precedence patterns - Demonstrates advanced layered network control flow - Complex synchronous call patterns between layers

        Returns:

        configured fork-join layered network

      • lqn_workflows

         static LayeredNetwork lqn_workflows()

        Layered network demonstrating loop and fork-join precedence patterns.

        Features: - 3 processors: P1 (INF), P2 (INF), P3 (5 servers, PS) - Task T1 with loop precedence (3 iterations) - Task T2 with AndFork/AndJoin patterns - Task T3 with OrFork/OrJoin patterns (30%, 30%, 40% probabilities) - Nested synchronous calls between tasks - Demonstrates complex control flow in layered networks

        Returns:

        configured layered network with loops and forks

      • lqn_ofbiz

         static LayeredNetwork lqn_ofbiz()

        Large enterprise layered network model (ofbizExample substitute).

        Features: - 5 processors representing different system layers - Client layer with reference task (10 jobs) - 3 service layers with FCFS tasks - Database layer with FCFS task - Serial activity precedence with synchronous calls - Representative of Apache OFBiz-style enterprise architecture - Each service layer makes database calls

        Returns:

        configured large layered network model

      • main

         static void main(Array<String> args)

        Main method for testing and demonstrating layered model examples.

        Currently contains commented code for various testing scenarios: - XML parsing and export functionality - Solver integration and performance analysis - Model structure inspection and visualization - Ensemble analysis for layered networks

        Parameters:
        args - command line arguments (not used)