Package org.jreliability.bdd.javabdd
Class JBDD<T>
java.lang.Object
org.jreliability.bdd.javabdd.JBDD<T>
- Type Parameters:
T- the type of the variables
- All Implemented Interfaces:
BDD<T>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionallsat()Returns the logicalandof two BDDs.voidandWith(Collection<T> that) Makes this BDD the logicalandof this andthatvariables.voidvoidMakes this BDD the logicalandof this andthatvariable.copy()Returns a copy of thisBDD.booleanTODO Returnstrueif this BDD equalsthatBDD.Returns thisBDDafter an existential quantification of the specified variable.Returns thisBDDafter a universal quantification of the specified variable.voidfree()Destroys thisBDD.Returns the usedBDDProvider.Returns the set of variables that are used in thisBDD.inthashCode()high()Returns thetrueor1branch of this BDD.Returns the logical implication of twoBDDs.voidReturns the logical implication of twoBDDs.voidMakes this BDD the logical implication of this andthatvariable.booleanisOne()Returnstrueif this BDD is theoneBDD.booleanisZero()Returnstrueif this BDD is thezeroBDD.intlevel()Returns the level of thisBDD.low()intReturns the number of node in thisBDD.not()Returns the logical or of twoBDDs.voidorWith(Collection<T> that) Makes thisBDDthe logical or of this andthatvariables.voidMakes this BDD the logical or of this andthatBDD.voidMakes this BDD the logical or of this andthatvariable.voidreplaceWith(T variable1, T variable2) voidrestrictWith(BDD<T> that) Restricts the variables ofthatto constant reliabilityFunctions in this BDD.sat()Returns one satisfying variable assignment as aBDD.toString()var()Returns the variable labeling theBDD.Returns the logical xor of twoBDDs.voidMakes thisBDDthe logical xor of this andthatBDD.voidMakes thisBDDthe logical xor of this andthatvariable.
-
Field Details
-
provider
-
bdd
protected com.github.javabdd.BDD bdd
-
-
Method Details
-
allsat
Description copied from interface:BDD -
and
Description copied from interface:BDDReturns the logicalandof two BDDs. Note: Both BDDs remain unchanged after this and-operation. -
andWith
Description copied from interface:BDDMakes this BDD the logicalandof this andthatBDD. Note:ThatBDD is consumed(!) within this operation and invalid afterwards. -
equals
Description copied from interface:BDDTODO Returnstrueif this BDD equalsthatBDD. -
exist
Description copied from interface:BDDReturns thisBDDafter an existential quantification of the specified variable. -
forAll
Description copied from interface:BDDReturns thisBDDafter a universal quantification of the specified variable. -
getProvider
Description copied from interface:BDDReturns the usedBDDProvider.- Specified by:
getProviderin interfaceBDD<T>- Returns:
- the used bdd provider
-
high
Description copied from interface:BDDReturns thetrueor1branch of this BDD. -
isOne
public boolean isOne()Description copied from interface:BDDReturnstrueif this BDD is theoneBDD. -
isZero
public boolean isZero()Description copied from interface:BDDReturnstrueif this BDD is thezeroBDD. -
ite
Description copied from interface:BDD -
level
public int level()Description copied from interface:BDDReturns the level of thisBDD. -
low
Description copied from interface:BDD -
not
Description copied from interface:BDD -
nodeCount
public int nodeCount()Description copied from interface:BDDReturns the number of node in thisBDD. -
or
Description copied from interface:BDDReturns the logical or of twoBDDs. Note: Both BDDs remain unchanged after this or-operation. -
orWith
Description copied from interface:BDDMakes this BDD the logical or of this andthatBDD. Note:ThatBDD is consumed(!) within this operation and invalid afterwards. -
replace
Description copied from interface:BDD -
replaceWith
Description copied from interface:BDD- Specified by:
replaceWithin interfaceBDD<T>- Parameters:
variable1- the first variablevariable2- the second variable
-
restrict
Description copied from interface:BDD -
restrictWith
Description copied from interface:BDDRestricts the variables ofthatto constant reliabilityFunctions in this BDD. Note:ThatBDD is consumed(!) within this operation and invalid afterwards.- Specified by:
restrictWithin interfaceBDD<T>- Parameters:
that- the BDD to restrict this BDD with
-
sat
Description copied from interface:BDDReturns one satisfying variable assignment as aBDD. -
var
Description copied from interface:BDDReturns the variable labeling theBDD. -
xor
Description copied from interface:BDDReturns the logical xor of twoBDDs. Note: Both BDDs remain unchanged after this xor-operation. -
xorWith
Description copied from interface:BDDMakes thisBDDthe logical xor of this andthatBDD. Note:ThatBDD is consumed(!) within this operation and invalid afterwards. -
imp
Description copied from interface:BDDReturns the logical implication of twoBDDs. Note: Both BDDs remain unchanged after this and-operation. -
impWith
Description copied from interface:BDDReturns the logical implication of twoBDDs. Note:ThatBDD is consumed(!) within this operation and invalid afterwards. -
toString
-
hashCode
public int hashCode() -
andWith
Description copied from interface:BDDMakes this BDD the logicalandof this andthatvariables. -
andWith
Description copied from interface:BDDMakes this BDD the logicalandof this andthatvariable. -
orWith
Description copied from interface:BDDMakes thisBDDthe logical or of this andthatvariables. -
orWith
Description copied from interface:BDDMakes this BDD the logical or of this andthatvariable. -
impWith
Description copied from interface:BDDMakes this BDD the logical implication of this andthatvariable. -
xorWith
Description copied from interface:BDDMakes thisBDDthe logical xor of this andthatvariable. -
copy
Description copied from interface:BDDReturns a copy of thisBDD. -
getVariables
Description copied from interface:BDDReturns the set of variables that are used in thisBDD.- Specified by:
getVariablesin interfaceBDD<T>- Returns:
- the set of variables that are used in this bdd
-
free
public void free()Description copied from interface:BDDDestroys thisBDD.
-