org.forester.phylogeny.factories
Class BasicPhylogenyFactory
java.lang.Object
org.forester.phylogeny.factories.BasicPhylogenyFactory
- All Implemented Interfaces:
- PhylogenyFactory
- Direct Known Subclasses:
- ParserBasedPhylogenyFactory
public abstract class BasicPhylogenyFactory
- extends Object
- implements PhylogenyFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicPhylogenyFactory
public BasicPhylogenyFactory()
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 fromcreator
- a means to create a Phylogeny
- Returns:
- a Phylogeny[] based on argument source
- Throws:
IOException