Package org.jreliability.bdd
Class BDDTTRF<T>
- java.lang.Object
-
- org.jreliability.bdd.BDDTTRF<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected BDDProvider<T>
provider
TheBDDProvider
.
-
Constructor Summary
Constructors Constructor Description BDDTTRF(BDDProvider<T> provider)
Constructs aBDDTTRF
with a givenBDDProvider
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReliabilityFunction
convert(BDD<T> bdd, org.apache.commons.collections15.Transformer<T,ReliabilityFunction> functionTransformer)
ReliabilityFunction
convert(Term term, org.apache.commons.collections15.Transformer<T,ReliabilityFunction> functionTransformer)
Converts aTerm
to aReliabilityFunction
.ReliabilityFunction
convert(Term term, org.apache.commons.collections15.Transformer<T,ReliabilityFunction> functionTransformer, org.apache.commons.collections15.Predicate<T> existsPredicate)
BDD<T>
convertToBDD(Term term)
BDD<T>
convertToBDD(Term term, org.apache.commons.collections15.Predicate<T> existsPredicate)
protected BDD<T>
transform(Term term)
protected BDD<T>
transformAND(ANDTerm term)
protected BDD<T>
transformFALSE(FALSETerm term)
protected BDD<T>
transformLinear(LinearTerm term)
Transforms aLinearTerm
to aBDD
.protected BDD<T>
transformLiteral(LiteralTerm<T> term)
Transforms aLiteralTerm
to aBDD
.protected BDD<T>
transformNOT(NOTTerm term)
protected BDD<T>
transformOR(ORTerm term)
protected BDD<T>
transformTRUE(TRUETerm term)
-
-
-
Field Detail
-
provider
protected final BDDProvider<T> provider
TheBDDProvider
.
-
-
Constructor Detail
-
BDDTTRF
public BDDTTRF(BDDProvider<T> provider)
Constructs aBDDTTRF
with a givenBDDProvider
.- Parameters:
provider
- the bdd provider
-
-
Method Detail
-
convert
public ReliabilityFunction convert(Term term, org.apache.commons.collections15.Transformer<T,ReliabilityFunction> functionTransformer)
Description copied from interface:TTRF
Converts aTerm
to aReliabilityFunction
.
-
convert
public ReliabilityFunction convert(Term term, org.apache.commons.collections15.Transformer<T,ReliabilityFunction> functionTransformer, org.apache.commons.collections15.Predicate<T> existsPredicate)
Description copied from interface:TTRF
-
convert
public ReliabilityFunction convert(BDD<T> bdd, org.apache.commons.collections15.Transformer<T,ReliabilityFunction> functionTransformer)
- Parameters:
bdd
- the bddfunctionTransformer
- the function functionTransformer- Returns:
- a reliability function from the given bdd and function functionTransformer
-
convertToBDD
public BDD<T> convertToBDD(Term term)
- Parameters:
term
- the term- Returns:
- a bdd representing the given term
-
convertToBDD
public BDD<T> convertToBDD(Term term, org.apache.commons.collections15.Predicate<T> existsPredicate)
- Parameters:
term
- the termexistsPredicate
- the exists predicate- Returns:
- a bdd representing the given term
-
transform
protected BDD<T> transform(Term term)
- Parameters:
term
- the term to transform- Returns:
- a bdd representing the term
-
transformAND
protected BDD<T> transformAND(ANDTerm term)
- Parameters:
term
- the term to transform- Returns:
- a bdd representing the AND term
-
transformOR
protected BDD<T> transformOR(ORTerm term)
- Parameters:
term
- the term to transform- Returns:
- a bdd representing the OR term
-
transformLinear
protected BDD<T> transformLinear(LinearTerm term)
Transforms aLinearTerm
to aBDD
.- Parameters:
term
- the term to transform- Returns:
- a bdd representing the linear term
-
transformLiteral
protected BDD<T> transformLiteral(LiteralTerm<T> term)
Transforms aLiteralTerm
to aBDD
.- Parameters:
term
- the term to transform- Returns:
- a bdd representing the literal term
-
transformTRUE
protected BDD<T> transformTRUE(TRUETerm term)
- Parameters:
term
- the term to transform- Returns:
- a bdd representing the TRUE term
-
transformFALSE
protected BDD<T> transformFALSE(FALSETerm term)
- Parameters:
term
- the term to transform- Returns:
- a bdd representing the FALSE term
-
-