Class LayeredModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LayeredNetworkBasic layered network with multiple processors and synchronous calls.static LayeredNetworklqn_bpmn()Complex layered network with fork-join patterns and multiple precedence types.static LayeredNetworkLayered network with function task demonstrating FaaS/serverless.static LayeredNetworkLayered network with infinite servers and APH service.static LayeredNetworkLarge enterprise layered network model (ofbizExample substitute).static LayeredNetworkBasic layered network with two processors and synchronous calls.static LayeredNetworkSock Shop microservice layered network model.static LayeredNetworkLayered network with multiple entries and synchronous calls.static LayeredNetworkLayered network demonstrating loop and fork-join precedence patterns.static voidMain method for testing and demonstrating layered model examples.
-
Constructor Details
-
LayeredModel
public LayeredModel()
-
-
Method Details
-
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
- Throws:
Exception- if model creation fails
-
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
- Throws:
Exception- if model creation fails
-
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
- Throws:
Exception- if model creation fails
-
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
- Throws:
Exception- if model creation fails
-
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
- Throws:
Exception- if model creation fails
-
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
- Throws:
Exception- if model creation fails
-
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
- Throws:
Exception- if model creation fails
-
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
- Throws:
Exception- if model creation fails
-
lqn_sockshop
Sock Shop microservice layered network model.Features: - 7 processors: P1 (INF), P2_1 (PS, replication=2), P2_2-P2_3, P3_1-P3_3 (PS) - 7 tasks: T0 (1000 users, REF), T1-T5 and T6 (FCFS with various thread pools) - 12 entries, 24 activities with serial precedence - Processor replication on P2_1 (edge router) - Fan-in/fan-out for replicated task communication - Synchronous calls across a multi-tier microservice architecture - Based on the Sock Shop benchmark (atom2021)
- Returns:
- configured Sock Shop layered network model
- Throws:
Exception- if model creation fails
-
main
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)- Throws:
Exception- if any example execution fails
-