Class CriticalityCalculator<T>
- java.lang.Object
-
- org.jreliability.importancemeasures.CriticalityCalculator<T>
-
- Type Parameters:
T
- The type of the variables of theBDD
of the system
public class CriticalityCalculator<T> extends java.lang.Object
TheCriticalityCalculator
is a utility class used to calculate theCriticalityValues
andCriticalityBDDs
of the components of a system. Uses [ABGT17] in order to calculate theCriticalityBDDs
and the correspondingCriticalityValues
via boolean expression. [ABGT17] ( https://doi.org/10.1016/j.ress.2016.12.013 )
-
-
Field Summary
Fields Modifier and Type Field Description protected BDD<T>
bdd
protected BDDTTRF<T>
bddTTRF
protected BDDProvider<T>
provider
protected org.apache.commons.collections15.Transformer<T,ReliabilityFunction>
transformer
-
Constructor Summary
Constructors Constructor Description CriticalityCalculator(BDD<T> bdd, org.apache.commons.collections15.Transformer<T,ReliabilityFunction> transformer)
Returns aCriticalityCalculator
for a specific system with itsBDD
andReliabilityFunction
Transformer
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CriticalityBDDs<T>
getCriticalityBDDs(T var)
Calculates the failure and repairCriticalityBDDs
of the given variable (component).java.util.Map<T,CriticalityValues>
getCriticalityValues(double time)
Calculates theCriticalityValues
for all components at the specified time.
-
-
-
Field Detail
-
transformer
protected final org.apache.commons.collections15.Transformer<T,ReliabilityFunction> transformer
-
provider
protected final BDDProvider<T> provider
-
-
Constructor Detail
-
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 Detail
-
getCriticalityValues
public java.util.Map<T,CriticalityValues> getCriticalityValues(double time)
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
public CriticalityBDDs<T> getCriticalityBDDs(T var)
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
.
-
-