org.forester.phylogeny.factories
Class ParserBasedPhylogenyFactory
java.lang.Object
org.forester.phylogeny.factories.BasicPhylogenyFactory
org.forester.phylogeny.factories.ParserBasedPhylogenyFactory
- All Implemented Interfaces:
- PhylogenyFactory
public class ParserBasedPhylogenyFactory
- extends BasicPhylogenyFactory
clone
public Object clone()
throws CloneNotSupportedException
- Overrides:
clone
in class Object
- Throws:
CloneNotSupportedException
create
public Phylogeny[] create(Object source,
Object parser,
List<Object> parameters)
throws IOException
- Description copied from interface:
PhylogenyFactory
- This must create a Phylogeny from source (e.g. an XML file, an alignment,
pairwise distances) by using creator (e.g. an XML file parser, an
algorithm implementation) with parameters listed in parameters.
- Parameters:
source
- a source to create a Phylogeny fromparser
- a means to create a Phylogenyparameters
- a List of parameters for Phylogeny creation
- Returns:
- a Phylogeny[] based on argument source
- Throws:
IOException
create
public Phylogeny[] create(Object source,
Object parser,
String schema_location,
List<Object> parameters)
throws IOException
- Throws:
IOException
getInstance
public static PhylogenyFactory getInstance()