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
 java.lang.Object clone()
           
 Phylogeny[] create(java.lang.Object source, java.lang.Object parser, java.util.List<java.lang.Object> parameters)
          This must create a Phylogeny from source (e.g.
 Phylogeny[] create(java.lang.Object source, java.lang.Object parser, java.lang.String schema_location, java.util.List<java.lang.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 java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

create

public Phylogeny[] create(java.lang.Object source,
                          java.lang.Object parser,
                          java.util.List<java.lang.Object> parameters)
                   throws java.io.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:
java.io.IOException

create

public Phylogeny[] create(java.lang.Object source,
                          java.lang.Object parser,
                          java.lang.String schema_location,
                          java.util.List<java.lang.Object> parameters)
                   throws java.io.IOException
Throws:
java.io.IOException

getInstance

public static PhylogenyFactory getInstance()