public class SRGUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SRGUtils.SharedRiskModel
Type of shared-risk model.
|
Constructor and Description |
---|
SRGUtils() |
Modifier and Type | Method and Description |
---|---|
static double[] |
computeStateProbabilities(java.util.List<java.util.Set<java.lang.Integer>> F_s,
double[] A_f)
Computes the probability to find the network on each failure state.
|
static void |
configureSRGs(NetPlan netPlan,
double defaultMTTF,
double defaultMTTR,
SRGUtils.SharedRiskModel sharedRiskModel,
boolean removeExistingSRGs)
Configures the SRGs into the network design.
|
static java.util.List<java.util.Set<java.lang.Integer>> |
enumerateFailureStates(int numSRGs,
boolean considerNoFailureState,
boolean considerDoubleFailureStates)
Returns the set of SRGs going down on each failure state.
|
public static void configureSRGs(NetPlan netPlan, double defaultMTTF, double defaultMTTR, SRGUtils.SharedRiskModel sharedRiskModel, boolean removeExistingSRGs)
netPlan
- A network design containing a physical topologydefaultMTTF
- Default value for mean time to fail (in hours). Zero or negative value means Double.MAX_VALUE
defaultMTTR
- Default value for mean time to repair (in hours). Zero or negative value are not allowedsharedRiskModel
- Model defining SRGsremoveExistingSRGs
- Indicates whether or not existing SRGs should be removedpublic static java.util.List<java.util.Set<java.lang.Integer>> enumerateFailureStates(int numSRGs, boolean considerNoFailureState, boolean considerDoubleFailureStates)
numSRGs
- Number of defined SRGsconsiderNoFailureState
- Flag to indicate whether or not no failure state is includedconsiderDoubleFailureStates
- Flag to indicate whether or not double failure states are includedpublic static double[] computeStateProbabilities(java.util.List<java.util.Set<java.lang.Integer>> F_s, double[] A_f)
F_s
- Set of SRGs failing per each failure stateA_f
- Availability value per SRG