Package org.biojava.bio.dist
Class DistributionFactory.DefaultDistributionFactory
- java.lang.Object
-
- org.biojava.bio.dist.DistributionFactory.DefaultDistributionFactory
-
- All Implemented Interfaces:
Serializable
,DistributionFactory
- Enclosing interface:
- DistributionFactory
public static class DistributionFactory.DefaultDistributionFactory extends Object implements DistributionFactory, Serializable
The default DistributionFactory implementation.
It knows about hand-optimized implementations for some alphabets (like DNA) without the optimized classes needing to be exposed from the DP package.
- Author:
- Matthew Pocock
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.biojava.bio.dist.DistributionFactory
DistributionFactory.DefaultDistributionFactory
-
-
Field Summary
-
Fields inherited from interface org.biojava.bio.dist.DistributionFactory
DEFAULT
-
-
Constructor Summary
Constructors Constructor Description DefaultDistributionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Distribution
createDistribution(Alphabet alpha)
Generate a new Distribution as requested.
-
-
-
Constructor Detail
-
DefaultDistributionFactory
public DefaultDistributionFactory()
-
-
Method Detail
-
createDistribution
public Distribution createDistribution(Alphabet alpha) throws IllegalAlphabetException
Description copied from interface:DistributionFactory
Generate a new Distribution as requested.- Specified by:
createDistribution
in interfaceDistributionFactory
- Parameters:
alpha
- the emission alphabet for the state- Returns:
- a new Distribution instance
- Throws:
IllegalAlphabetException
- if the factory is unable to generate a distribution for the required alphabet
-
-