Class RandomEnvExamples

java.lang.Object
jline.examples.java.advanced.RandomEnvExamples

public class RandomEnvExamples extends Object
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 Details

    • RandomEnvExamples

      public RandomEnvExamples()
  • Method Details

    • renv_twostages_repairmen

      public static void renv_twostages_repairmen() throws Exception
      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

      public static void renv_threestages_repairmen() throws Exception
      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

      public static void renv_fourstages_repairmen() throws Exception
      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

      public static Environment example_random_env_basics() throws Exception
      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

      public static void main(String[] args)
      Main method to run all random environment examples.
      Parameters:
      args - command line arguments (not used)