Package org.jreliability.bdd
Class BDDReliabilityFunction<T>
- java.lang.Object
-
- org.jreliability.function.SequentialFunction
-
- org.jreliability.bdd.BDDReliabilityFunction<T>
-
- Type Parameters:
T
- the type of variable
- All Implemented Interfaces:
Function
,ReliabilityFunction
public class BDDReliabilityFunction<T> extends SequentialFunction implements ReliabilityFunction
-
-
Field Summary
Fields Modifier and Type Field Description protected BDD<T>
bdd
The BDD representing theUnreliabilityFunction
.protected org.apache.commons.collections15.Transformer<T,ReliabilityFunction>
functionTransformer
protected BDDTopEvent<T>
topEvent
The calculator for the top event.
-
Constructor Summary
Constructors Constructor Description BDDReliabilityFunction(BDD<T> bdd, org.apache.commons.collections15.Transformer<T,ReliabilityFunction> functionTransformer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BDD<T>
getBdd()
Returns theBDD
.org.apache.commons.collections15.Transformer<T,ReliabilityFunction>
getTransformer()
Returns the usedTransformer
.double
getY(double x)
Returns they
value fory = f(x)
.-
Methods inherited from class org.jreliability.function.SequentialFunction
getY
-
-
-
-
Field Detail
-
bdd
protected final BDD<T> bdd
The BDD representing theUnreliabilityFunction
.
-
functionTransformer
protected final org.apache.commons.collections15.Transformer<T,ReliabilityFunction> functionTransformer
-
topEvent
protected final BDDTopEvent<T> topEvent
The calculator for the top event.
-
-
Constructor Detail
-
BDDReliabilityFunction
public BDDReliabilityFunction(BDD<T> bdd, org.apache.commons.collections15.Transformer<T,ReliabilityFunction> functionTransformer)
- Parameters:
bdd
- the bdd representing the reliabilityFunctionfunctionTransformer
- the functionTransformer to transform bdd elements to reliabilityFunction
-
-
Method Detail
-
getY
public double getY(double x)
Description copied from interface:Function
Returns they
value fory = f(x)
.
-
getTransformer
public org.apache.commons.collections15.Transformer<T,ReliabilityFunction> getTransformer()
Returns the usedTransformer
.- Returns:
- the used functionTransformer
-
-