Package org.jreliability.bdd.javabdd
Class JBDDProviderFactory
- java.lang.Object
-
- org.jreliability.bdd.javabdd.JBDDProviderFactory
-
- All Implemented Interfaces:
BDDProviderFactory
public class JBDDProviderFactory extends java.lang.Object implements BDDProviderFactory
TheJBDDProviderFactory
is aBDDProviderFactory
for the JavaBDD library.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JBDDProviderFactory.Type
TheJBDDProviderFactory.Type
of realBDD
implementation.
-
Field Summary
Fields Modifier and Type Field Description protected static int
INITIAL_VARIABLES
The number of initially allocated variables.protected static java.util.Map<JBDDProviderFactory.Type,JBDDProvider<?>>
staticProviders
A map that provides each requestedJBDDProviderFactory.Type
of realBDD
implementation with its specificJBDDProvider
.protected JBDDProviderFactory.Type
type
The usedJBDDProviderFactory.Type
of realBDD
implementation.
-
Constructor Summary
Constructors Constructor Description JBDDProviderFactory()
Constructs aJBDDProviderFactory
.JBDDProviderFactory(JBDDProviderFactory.Type type)
Constructs aJBDDProviderFactory
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> BDDProvider<T>
getProvider()
Returns aBDDProvider
.
-
-
-
Field Detail
-
type
protected final JBDDProviderFactory.Type type
The usedJBDDProviderFactory.Type
of realBDD
implementation.
-
INITIAL_VARIABLES
protected static final int INITIAL_VARIABLES
The number of initially allocated variables.- See Also:
- Constant Field Values
-
staticProviders
protected static java.util.Map<JBDDProviderFactory.Type,JBDDProvider<?>> staticProviders
A map that provides each requestedJBDDProviderFactory.Type
of realBDD
implementation with its specificJBDDProvider
.
-
-
Constructor Detail
-
JBDDProviderFactory
public JBDDProviderFactory()
Constructs aJBDDProviderFactory
.
-
JBDDProviderFactory
public JBDDProviderFactory(JBDDProviderFactory.Type type)
Constructs aJBDDProviderFactory
.- Parameters:
type
- the type of bdd library
-
-
Method Detail
-
getProvider
public <T> BDDProvider<T> getProvider()
Description copied from interface:BDDProviderFactory
Returns aBDDProvider
.- Specified by:
getProvider
in interfaceBDDProviderFactory
- Type Parameters:
T
- the type of variables- Returns:
- a BDDProvider
-
-