org.forester.phylogeny.factories
Class ParserBasedPhylogenyFactory

java.lang.Object
  extended by org.forester.phylogeny.factories.BasicPhylogenyFactory
      extended by org.forester.phylogeny.factories.ParserBasedPhylogenyFactory
All Implemented Interfaces:
PhylogenyFactory

public class ParserBasedPhylogenyFactory
extends BasicPhylogenyFactory


Method Summary
 Object clone()
           
 Phylogeny[] create(Object source, Object parser, List<Object> parameters)
          This must create a Phylogeny from source (e.g.
 Phylogeny[] create(Object source, Object parser, String schema_location, List<Object> parameters)
           
static PhylogenyFactory getInstance()
           
 
Methods inherited from class org.forester.phylogeny.factories.BasicPhylogenyFactory
create, create
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 from
parser - a means to create a Phylogeny
parameters - 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()