Class CriticalityCalculator<T>
java.lang.Object
org.jreliability.importancemeasures.CriticalityCalculator<T>
- Type Parameters:
T
- The type of the variables of theBDD
of 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 aCriticalityCalculator
for a specific system with itsBDD
andReliabilityFunction
Transformer
. -
Method Summary
Modifier and TypeMethodDescriptiongetCriticalityBDDs
(T var) Calculates the failure and repairCriticalityBDDs
of the given variable (component).getCriticalityValues
(double time) Calculates theCriticalityValues
for 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 aCriticalityCalculator
for a specific system with itsBDD
andReliabilityFunction
Transformer
.- Parameters:
bdd
- TheBDD
representing the system structure functiontransformer
- TheTransformer
used to get theReliabilityFunction
of variables present in theBDD
-
-
Method Details
-
getCriticalityValues
Calculates theCriticalityValues
for all components at the specified time. Uses equations 5 and 6 of [ABGT17] to calculate theCriticalityValues
via theCriticalityBDDs
instead of the partial derivatives.- Parameters:
time
- Time t at which theCriticalityValues
of all components is calculated. Must be greater than 0, otherwise an IllegalArgumentException is thrown.- Returns:
- results
Map of components and their respective
CriticalityValues
values at time t.
-
getCriticalityBDDs
Calculates the failure and repairCriticalityBDDs
of the given variable (component). Uses Proposition 1 of [ABGT17].- Parameters:
var
- Variable for wich the failure and repairCriticalityBDDs
are calculated.- Returns:
- CriticalityBDDs
Wrapper for the failure criticality
BDD
and the repair criticalityBDD
.
-