Class CriticalityCalculator<T>
java.lang.Object
org.jreliability.importancemeasures.CriticalityCalculator<T>
- Type Parameters:
T- The type of the variables of theBDDof the system
The
CriticalityCalculator is a utility class used to calculate the CriticalityValues
and CriticalityBDDs of the components of a system.
Uses [ABGT17] in order to calculate the CriticalityBDDs and the corresponding CriticalityValues
via boolean expression.
[ABGT17] ( https://doi.org/10.1016/j.ress.2016.12.013 )-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BDDProvider<T> protected final org.apache.commons.collections15.Transformer<T, ReliabilityFunction> -
Constructor Summary
ConstructorsConstructorDescriptionCriticalityCalculator(BDD<T> bdd, org.apache.commons.collections15.Transformer<T, ReliabilityFunction> transformer) Returns aCriticalityCalculatorfor a specific system with itsBDDandReliabilityFunctionTransformer. -
Method Summary
Modifier and TypeMethodDescriptiongetCriticalityBDDs(T var) Calculates the failure and repairCriticalityBDDsof the given variable (component).getCriticalityValues(double time) Calculates theCriticalityValuesfor all components at the specified time.
-
Field Details
-
bdd
-
transformer
-
provider
-
bddTTRF
-
-
Constructor Details
-
CriticalityCalculator
public CriticalityCalculator(BDD<T> bdd, org.apache.commons.collections15.Transformer<T, ReliabilityFunction> transformer) Returns aCriticalityCalculatorfor a specific system with itsBDDandReliabilityFunctionTransformer.- Parameters:
bdd- TheBDDrepresenting the system structure functiontransformer- TheTransformerused to get theReliabilityFunctionof variables present in theBDD
-
-
Method Details
-
getCriticalityValues
Calculates theCriticalityValuesfor all components at the specified time. Uses equations 5 and 6 of [ABGT17] to calculate theCriticalityValuesvia theCriticalityBDDsinstead of the partial derivatives.- Parameters:
time- Time t at which theCriticalityValuesof all components is calculated. Must be greater than 0, otherwise an IllegalArgumentException is thrown.- Returns:
- results
Map of components and their respective
CriticalityValuesvalues at time t.
-
getCriticalityBDDs
Calculates the failure and repairCriticalityBDDsof the given variable (component). Uses Proposition 1 of [ABGT17].- Parameters:
var- Variable for wich the failure and repairCriticalityBDDsare calculated.- Returns:
- CriticalityBDDs
Wrapper for the failure criticality
BDDand the repair criticalityBDD.
-