Package org.jreliability.bdd
Class BDDTTRF<T>
java.lang.Object
org.jreliability.bdd.BDDTTRF<T>
- Type Parameters:
T- the type of the variables
- All Implemented Interfaces:
TTRF<T>
The
BDDTTRF transforms a Boolean function represented as a
Term into a ReliabilityFunction or, if needed, into a
BDD.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBDDTTRF(BDDProvider<T> provider) Constructs aBDDTTRFwith a givenBDDProvider. -
Method Summary
Modifier and TypeMethodDescriptionconvert(BDD<T> bdd, org.apache.commons.collections15.Transformer<T, ReliabilityFunction> functionTransformer) convert(Term term, org.apache.commons.collections15.Transformer<T, ReliabilityFunction> functionTransformer) Converts aTermto aReliabilityFunction.convert(Term term, org.apache.commons.collections15.Transformer<T, ReliabilityFunction> functionTransformer, org.apache.commons.collections15.Predicate<T> existsPredicate) convertToBDD(Term term) convertToBDD(Term term, org.apache.commons.collections15.Predicate<T> existsPredicate) transformAND(ANDTerm term) transformFALSE(FALSETerm term) transformLinear(LinearTerm term) Transforms aLinearTermto aBDD.transformLiteral(LiteralTerm<T> term) Transforms aLiteralTermto aBDD.transformNOT(NOTTerm term) transformOR(ORTerm term) transformTRUE(TRUETerm term)
-
Field Details
-
provider
TheBDDProvider.
-
-
Constructor Details
-
BDDTTRF
Constructs aBDDTTRFwith a givenBDDProvider.- Parameters:
provider- the bdd provider
-
-
Method Details
-
convert
public ReliabilityFunction convert(Term term, org.apache.commons.collections15.Transformer<T, ReliabilityFunction> functionTransformer) Description copied from interface:TTRFConverts aTermto 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
- 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
- Parameters:
term- the term to transform- Returns:
- a bdd representing the term
-
transformAND
- Parameters:
term- the term to transform- Returns:
- a bdd representing the AND term
-
transformOR
- Parameters:
term- the term to transform- Returns:
- a bdd representing the OR term
-
transformLinear
Transforms aLinearTermto aBDD.- Parameters:
term- the term to transform- Returns:
- a bdd representing the linear term
-
transformLiteral
Transforms aLiteralTermto aBDD.- Parameters:
term- the term to transform- Returns:
- a bdd representing the literal term
-
transformTRUE
- Parameters:
term- the term to transform- Returns:
- a bdd representing the TRUE term
-
transformFALSE
- Parameters:
term- the term to transform- Returns:
- a bdd representing the FALSE term
-
transformNOT
- Parameters:
term- the term to transform- Returns:
- a bdd representing the NOT term
-