Package org.forester.phylogeny.data
Class DomainArchitecture
java.lang.Object
org.forester.phylogeny.data.DomainArchitecture
- All Implemented Interfaces:
 PhylogenyData
- Direct Known Subclasses:
 RenderableDomainArchitecture
- 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionDomainArchitecture(String da_str) DomainArchitecture(List<PhylogenyData> domains, int total_length)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidasText()copy()Creates a new PhylogenyData object with identical values as this PhylogenyData.getDomain(int i) intintbooleanisEqual(PhylogenyData domain_architecture) Returns true if the names and the order of the domains match (domain and linker lengths are ignored).voidsetTotalLength(int total_length) toNHX()voidtoPhyloXML(Writer writer, int level, String indentation) Writes a phyloXML representation of this phylogeny data.toString() 
- 
Field Details
- 
NHX_SEPARATOR
- See Also:
 
 
 - 
 - 
Constructor Details
- 
DomainArchitecture
public DomainArchitecture() - 
DomainArchitecture
 - 
DomainArchitecture
 
 - 
 - 
Method Details
- 
addDomain
 - 
asSimpleText
- Specified by:
 asSimpleTextin interfacePhylogenyData
 - 
asText
- Specified by:
 asTextin interfacePhylogenyData
 - 
copy
Description copied from interface:PhylogenyDataCreates a new PhylogenyData object with identical values as this PhylogenyData. This ~should~ return a deep copy, but not there yet.- Specified by:
 copyin interfacePhylogenyData- Returns:
 - a ~deep~ copy of this PhylogenyData
 
 - 
getDomain
 - 
getDomains
 - 
getNumberOfDomains
public int getNumberOfDomains() - 
getTotalLength
public int getTotalLength() - 
isEqual
Returns true if the names and the order of the domains match (domain and linker lengths are ignored).- Specified by:
 isEqualin interfacePhylogenyData- Returns:
 - in general, true if and only if all fiels are exactly identical, false otherwise
 
 - 
setTotalLength
public void setTotalLength(int total_length)  - 
toNHX
- Specified by:
 toNHXin interfacePhylogenyData
 - 
toPhyloXML
Description copied from interface:PhylogenyDataWrites a phyloXML representation of this phylogeny data.- Specified by:
 toPhyloXMLin interfacePhylogenyData- Throws:
 IOException
 - 
toString
 
 -