Package org.jreliability.bdd.javabdd
Class JBDDProvider<T>
java.lang.Object
org.jreliability.bdd.javabdd.JBDDProvider<T>
- Type Parameters:
 T- the type of the variables
- All Implemented Interfaces:
 BDDProvider<T>
The 
JBDDProvider used to get JBDD BDDs.- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.github.javabdd.BDDFactoryThe usedBDDFactory.protected intThe factor to extend the number of variables in case more variables are required.protected intThe offset of the variables.protected intThe number of variables. - 
Constructor Summary
ConstructorsConstructorDescriptionJBDDProvider(int vars) Constructs aJBDDProviderwith a given number of variables.JBDDProvider(int vars, int variableGrowthFactor, int initialNumberofNodes) Constructs aJBDDProviderwith a given number of variables, the growth rate of the number of variables, and the initial number of nodes. - 
Method Summary
Modifier and TypeMethodDescriptionvoidRegister variables in the specified order.voidRegister variables in the specified order.Returns thevariablethat is represented by theBDD.Returns theBDDthat represents thevariable.com.github.javabdd.BDDFactoryReturns the usedBDDFactory.one()Returns thetrueor1BDD.zero()Returns thefalseor0BDD. 
- 
Field Details
- 
variableOffset
protected int variableOffsetThe offset of the variables. - 
factory
protected com.github.javabdd.BDDFactory factoryThe usedBDDFactory. - 
variableToInt
 - 
intToVariable
 - 
vars
protected int varsThe number of variables. - 
variableGrowthFactor
protected int variableGrowthFactorThe factor to extend the number of variables in case more variables are required. 
 - 
 - 
Constructor Details
- 
JBDDProvider
public JBDDProvider(int vars) Constructs aJBDDProviderwith a given number of variables.- Parameters:
 vars- the number of variables
 - 
JBDDProvider
public JBDDProvider(int vars, int variableGrowthFactor, int initialNumberofNodes) Constructs aJBDDProviderwith a given number of variables, the growth rate of the number of variables, and the initial number of nodes.- Parameters:
 vars- the number of variablesvariableGrowthFactor- the factor by which to extend the number of variables if requiredinitialNumberofNodes- the initial number of nodes reserved in the BDD factory
 
 - 
 - 
Method Details
- 
add
Description copied from interface:BDDProviderRegister variables in the specified order.- Specified by:
 addin interfaceBDDProvider<T>- Parameters:
 variables- the variables to register
 - 
add
Description copied from interface:BDDProviderRegister variables in the specified order.- Specified by:
 addin interfaceBDDProvider<T>- Parameters:
 variables- the variables to register
 - 
zero
Description copied from interface:BDDProviderReturns thefalseor0BDD.- Specified by:
 zeroin interfaceBDDProvider<T>- Returns:
 - the false or 0 BDD
 
 - 
one
Description copied from interface:BDDProviderReturns thetrueor1BDD.- Specified by:
 onein interfaceBDDProvider<T>- Returns:
 - the true or 1 BDD
 
 - 
get
Description copied from interface:BDDProviderReturns theBDDthat represents thevariable.- Specified by:
 getin interfaceBDDProvider<T>- Parameters:
 variable- the variable- Returns:
 - the BDD that represents the Object
 
 - 
get
Description copied from interface:BDDProviderReturns thevariablethat is represented by theBDD.- Specified by:
 getin interfaceBDDProvider<T>- Parameters:
 bdd- the bdd- Returns:
 - the variable represented by the BDD
 
 - 
getFactory
public com.github.javabdd.BDDFactory getFactory()Returns the usedBDDFactory.- Returns:
 - the used bdd factory
 
 
 -