Package jline.examples.java.advanced
Class AgentModelExamples
java.lang.Object
jline.examples.java.advanced.AgentModelExamples
Examples demonstrating MAM with RCAT/INAP method for agent-based analysis.
The RCAT (Reversed Compound Agent Theorem) algorithm decomposes queueing
networks into interacting stochastic processes. INAP (Iterative Numerical
Approximation Procedure) efficiently solves the resulting fixed-point equations.
References:
- Marin and Rota-Bulo', "A Mean-Field Analysis of a Class of Interactive
Distributed Systems", MASCOTS 2009
- Harrison and Llado, "Stochastic bounds and product form solutions using
RCAT", ICPE 2011
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidClosed network with two PS queues.static voidG-network (Gelenbe network) with negative customers.static voidJackson network with probabilistic routing.static voidMulticlass closed network.static voidOpen tandem queue (M/M/1 -> M/M/1) example.static voidRun all agent model examples.
-
Constructor Details
-
AgentModelExamples
public AgentModelExamples()
-
-
Method Details
-
ag_tandem_open
Open tandem queue (M/M/1 -> M/M/1) example. Demonstrates MAM with INAP method on a simple open network with two queues in series. Compares results against analytical M/M/1 formulas and MVA.- Throws:
Exception- if the solver encounters an error
-
ag_closed_network
Closed network with two PS queues. Demonstrates MAM with INAP method on a closed queueing network with processor-sharing discipline. Compares results against MVA and CTMC.- Throws:
Exception- if the solver encounters an error
-
ag_multiclass_closed
Multiclass closed network. Demonstrates MAM with INAP method on a multiclass closed network. RCAT creates separate processes for each (station, class) pair.- Throws:
Exception- if the solver encounters an error
-
ag_jackson_network
Jackson network with probabilistic routing. Demonstrates MAM with INAP method on an open Jackson network with feedback routing. RCAT models job transfers as synchronization actions between processes.- Throws:
Exception- if the solver encounters an error
-
ag_gnetwork
G-network (Gelenbe network) with negative customers. Demonstrates MAM with INAP method on a G-network where negative customers (signals) remove jobs from queues. This models scenarios like job cancellations or service interrupts. Reference: Gelenbe, E. (1991). "Product-form queueing networks with negative and positive customers", Journal of Applied Probability- Throws:
Exception- if the solver encounters an error
-
main
Run all agent model examples.- Parameters:
args- command line arguments (unused)- Throws:
Exception- if any solver encounters an error
-