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 logicaland
of two BDDs.void
andWith
(Collection<T> that) Makes this BDD the logicaland
of this andthat
variables.void
void
Makes this BDD the logicaland
of this andthat
variable.copy()
Returns a copy of thisBDD
.boolean
TODO Returnstrue
if this BDD equalsthat
BDD.Returns thisBDD
after an existential quantification of the specified variable.Returns thisBDD
after a universal quantification of the specified variable.void
free()
Destroys thisBDD
.Returns the usedBDDProvider
.Returns the set of variables that are used in thisBDD
.int
hashCode()
high()
Returns thetrue
or1
branch of this BDD.Returns the logical implication of twoBDD
s.void
Returns the logical implication of twoBDD
s.void
Makes this BDD the logical implication of this andthat
variable.boolean
isOne()
Returnstrue
if this BDD is theone
BDD.boolean
isZero()
Returnstrue
if this BDD is thezero
BDD.int
level()
Returns the level of thisBDD
.low()
int
Returns the number of node in thisBDD
.not()
Returns the logical or of twoBDD
s.void
orWith
(Collection<T> that) Makes thisBDD
the logical or of this andthat
variables.void
Makes this BDD the logical or of this andthat
BDD
.void
Makes this BDD the logical or of this andthat
variable.void
replaceWith
(T variable1, T variable2) void
restrictWith
(BDD<T> that) Restricts the variables ofthat
to 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 twoBDD
s.void
Makes thisBDD
the logical xor of this andthat
BDD.void
Makes thisBDD
the logical xor of this andthat
variable.
-
Field Details
-
provider
-
bdd
protected com.github.javabdd.BDD bdd
-
-
Method Details
-
allsat
Description copied from interface:BDD
-
and
Description copied from interface:BDD
Returns the logicaland
of two BDDs. Note: Both BDDs remain unchanged after this and-operation. -
andWith
Description copied from interface:BDD
Makes this BDD the logicaland
of this andthat
BDD
. Note:That
BDD is consumed(!) within this operation and invalid afterwards. -
equals
Description copied from interface:BDD
TODO Returnstrue
if this BDD equalsthat
BDD. -
exist
Description copied from interface:BDD
Returns thisBDD
after an existential quantification of the specified variable. -
forAll
Description copied from interface:BDD
Returns thisBDD
after a universal quantification of the specified variable. -
getProvider
Description copied from interface:BDD
Returns the usedBDDProvider
.- Specified by:
getProvider
in interfaceBDD<T>
- Returns:
- the used bdd provider
-
high
Description copied from interface:BDD
Returns thetrue
or1
branch of this BDD. -
isOne
public boolean isOne()Description copied from interface:BDD
Returnstrue
if this BDD is theone
BDD. -
isZero
public boolean isZero()Description copied from interface:BDD
Returnstrue
if this BDD is thezero
BDD. -
ite
Description copied from interface:BDD
-
level
public int level()Description copied from interface:BDD
Returns the level of thisBDD
. -
low
Description copied from interface:BDD
-
not
Description copied from interface:BDD
-
nodeCount
public int nodeCount()Description copied from interface:BDD
Returns the number of node in thisBDD
. -
or
Description copied from interface:BDD
Returns the logical or of twoBDD
s. Note: Both BDDs remain unchanged after this or-operation. -
orWith
Description copied from interface:BDD
Makes this BDD the logical or of this andthat
BDD
. Note:That
BDD is consumed(!) within this operation and invalid afterwards. -
replace
Description copied from interface:BDD
-
replaceWith
Description copied from interface:BDD
- Specified by:
replaceWith
in interfaceBDD<T>
- Parameters:
variable1
- the first variablevariable2
- the second variable
-
restrict
Description copied from interface:BDD
-
restrictWith
Description copied from interface:BDD
Restricts the variables ofthat
to constant reliabilityFunctions in this BDD. Note:That
BDD is consumed(!) within this operation and invalid afterwards.- Specified by:
restrictWith
in interfaceBDD<T>
- Parameters:
that
- the BDD to restrict this BDD with
-
sat
Description copied from interface:BDD
Returns one satisfying variable assignment as aBDD
. -
var
Description copied from interface:BDD
Returns the variable labeling theBDD
. -
xor
Description copied from interface:BDD
Returns the logical xor of twoBDD
s. Note: Both BDDs remain unchanged after this xor-operation. -
xorWith
Description copied from interface:BDD
Makes thisBDD
the logical xor of this andthat
BDD. Note:That
BDD is consumed(!) within this operation and invalid afterwards. -
imp
Description copied from interface:BDD
Returns the logical implication of twoBDD
s. Note: Both BDDs remain unchanged after this and-operation. -
impWith
Description copied from interface:BDD
Returns the logical implication of twoBDD
s. Note:That
BDD is consumed(!) within this operation and invalid afterwards. -
toString
-
hashCode
public int hashCode() -
andWith
Description copied from interface:BDD
Makes this BDD the logicaland
of this andthat
variables. -
andWith
Description copied from interface:BDD
Makes this BDD the logicaland
of this andthat
variable. -
orWith
Description copied from interface:BDD
Makes thisBDD
the logical or of this andthat
variables. -
orWith
Description copied from interface:BDD
Makes this BDD the logical or of this andthat
variable. -
impWith
Description copied from interface:BDD
Makes this BDD the logical implication of this andthat
variable. -
xorWith
Description copied from interface:BDD
Makes thisBDD
the logical xor of this andthat
variable. -
copy
Description copied from interface:BDD
Returns a copy of thisBDD
. -
getVariables
Description copied from interface:BDD
Returns the set of variables that are used in thisBDD
.- Specified by:
getVariables
in interfaceBDD<T>
- Returns:
- the set of variables that are used in this bdd
-
free
public void free()Description copied from interface:BDD
Destroys thisBDD
.
-