org.forester.phylogeny.factories
Class BasicPhylogenyFactory

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

public abstract class BasicPhylogenyFactory
extends Object
implements PhylogenyFactory


Constructor Summary
BasicPhylogenyFactory()
           
 
Method Summary
 Phylogeny create()
          This must be implemented in such a way that it returns an empty Phylogeny.
 Phylogeny[] create(Object source, Object creator)
          This must create a Phylogeny from source (e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.forester.phylogeny.factories.PhylogenyFactory
create
 

Constructor Detail

BasicPhylogenyFactory

public BasicPhylogenyFactory()
Method Detail

create

public Phylogeny create()
Description copied from interface: PhylogenyFactory
This must be implemented in such a way that it returns an empty Phylogeny.

Specified by:
create in interface PhylogenyFactory
Returns:
an empty Phylogeny

create

public Phylogeny[] create(Object source,
                          Object creator)
                   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).

Specified by:
create in interface PhylogenyFactory
Parameters:
source - a source to create a Phylogeny from
creator - a means to create a Phylogeny
Returns:
a Phylogeny[] based on argument source
Throws:
IOException