Package org.forester.phylogeny.factories
Class ParserBasedPhylogenyFactory
- java.lang.Object
-
- org.forester.phylogeny.factories.ParserBasedPhylogenyFactory
-
- All Implemented Interfaces:
PhylogenyFactory
public class ParserBasedPhylogenyFactory extends java.lang.Object implements PhylogenyFactory
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Phylogeny[]create(java.lang.Object source, java.lang.Object parser)This must create a Phylogeny from source (e.g.Phylogeny[]create(java.lang.Object source, java.lang.Object parser, java.lang.String schema_location)static PhylogenyFactorygetInstance()
-
-
-
Method Detail
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException- Overrides:
clonein classjava.lang.Object- Throws:
java.lang.CloneNotSupportedException
-
create
public Phylogeny[] create(java.lang.Object source, java.lang.Object parser) throws java.io.IOException
Description copied from interface:PhylogenyFactoryThis 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).- Specified by:
createin interfacePhylogenyFactory- Parameters:
source- a source to create a Phylogeny fromparser- a means to create a Phylogeny- Returns:
- a Phylogeny[] based on argument source
- Throws:
java.io.IOException
-
create
public Phylogeny[] create(java.lang.Object source, java.lang.Object parser, java.lang.String schema_location) throws java.io.IOException
- Throws:
java.io.IOException
-
getInstance
public static PhylogenyFactory getInstance()
-
-