Package jline.examples.java.advanced
Class EnvBreakdownExample
-
- All Implemented Interfaces:
public class EnvBreakdownExampleExample demonstrating the node breakdown/repair API for random environments. This example shows how to easily model a server that can break down and be repaired using the new Environment convenience methods.
-
-
Constructor Summary
Constructors Constructor Description EnvBreakdownExample()
-
Method Summary
Modifier and Type Method Description static voidexample1_basicFailureRepair()Example 1: Using addNodeFailureRepair convenience method with node object (recommended). static voidexample2_separateCalls()Example 2: Using separate breakdown and repair calls with node object. static voidexample3_customResetPolicies()Example 3: With custom reset policies using node object. static voidexample4_modifyResetPolicies()Example 4: Modifying reset policies after creation using node object. static voidexample5_solveEnvironment()Example 5: Solve the environment model and display results. static voidmain(Array<String> args)Main method to run all examples. -
-
Method Detail
-
example1_basicFailureRepair
static void example1_basicFailureRepair()
Example 1: Using addNodeFailureRepair convenience method with node object (recommended).
-
example2_separateCalls
static void example2_separateCalls()
Example 2: Using separate breakdown and repair calls with node object.
-
example3_customResetPolicies
static void example3_customResetPolicies()
Example 3: With custom reset policies using node object.
-
example4_modifyResetPolicies
static void example4_modifyResetPolicies()
Example 4: Modifying reset policies after creation using node object.
-
example5_solveEnvironment
static void example5_solveEnvironment()
Example 5: Solve the environment model and display results.
-
-
-
-