Package jline.examples.java.advanced
Class RandomEnvExamples
java.lang.Object
jline.examples.java.advanced.RandomEnvExamples
Examples demonstrating queueing networks in random environments.
This class provides Java implementations corresponding to the Kotlin notebooks
in jline.examples.kotlin.advanced.randomEnv package.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EnvironmentDemonstrates a basic random environment model (example_random_env_basics).static voidMain method to run all random environment examples.static voidDemonstrates a random environment model with four stages (renv_fourstages_repairmen.ipynb).static voidDemonstrates a random environment model with three stages (renv_threestages_repairmen.ipynb).static voidDemonstrates a random environment model with two stages (renv_twostages_repairmen.ipynb).
-
Constructor Details
-
RandomEnvExamples
public RandomEnvExamples()
-
-
Method Details
-
renv_twostages_repairmen
Demonstrates a random environment model with two stages (renv_twostages_repairmen.ipynb). This example models a system that alternates between two environmental states, such as normal operation and degraded mode. The repairmen model captures how the system transitions between states and how performance varies in each state. Features: - Two-stage random environment - State-dependent service rates - Environmental state transitions - Analysis of availability and performance trade-offs- Throws:
Exception- if the solver encounters an error
-
renv_threestages_repairmen
Demonstrates a random environment model with three stages (renv_threestages_repairmen.ipynb). This example extends the two-stage model to include three environmental states, allowing for more complex failure and recovery patterns. This could model systems with multiple failure modes or degradation levels. Features: - Three-stage random environment - Multiple degradation levels - Complex state transition patterns - Performance analysis across environmental states- Throws:
Exception- if the solver encounters an error
-
renv_fourstages_repairmen
Demonstrates a random environment model with four stages (renv_fourstages_repairmen.ipynb). This example shows a more complex random environment with four states, suitable for modeling systems with multiple components that can fail independently or systems with graduated performance levels based on environmental conditions. Features: - Four-stage random environment - Rich state space for complex systems - Analysis of multi-level degradation - Optimization of repair strategies- Throws:
Exception- if the solver encounters an error
-
example_random_env_basics
Demonstrates a basic random environment model (example_random_env_basics). This is the fundamental example for random environments, showing a simple queueing system with a server that switches between two modes: Fast and Slow. Features: - Simple closed network with delay and server - Two-stage environment (Fast mode: rate 4.0, Slow mode: rate 1.0) - Exponential transitions (Fast->Slow at rate 0.5, Slow->Fast at rate 1.0) - Analysis using Fluid solver - Environment-averaged and stage-wise performance metrics- Returns:
- the configured environment model
- Throws:
Exception- if the solver encounters an error
-
main
Main method to run all random environment examples.- Parameters:
args- command line arguments (not used)
-