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
-
Constructor Summary
ConstructorDescriptionDomainArchitecture
(String da_str) DomainArchitecture
(List<PhylogenyData> domains, int total_length) -
Method Summary
Modifier and TypeMethodDescriptionvoid
asText()
copy()
Creates a new PhylogenyData object with identical values as this PhylogenyData.getDomain
(int i) int
int
boolean
isEqual
(PhylogenyData domain_architecture) Returns true if the names and the order of the domains match (domain and linker lengths are ignored).void
setTotalLength
(int total_length) toNHX()
void
toPhyloXML
(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:
asSimpleText
in interfacePhylogenyData
-
asText
- Specified by:
asText
in interfacePhylogenyData
-
copy
Description copied from interface:PhylogenyData
Creates a new PhylogenyData object with identical values as this PhylogenyData. This ~should~ return a deep copy, but not there yet.- Specified by:
copy
in 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:
isEqual
in 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:
toNHX
in interfacePhylogenyData
-
toPhyloXML
Description copied from interface:PhylogenyData
Writes a phyloXML representation of this phylogeny data.- Specified by:
toPhyloXML
in interfacePhylogenyData
- Throws:
IOException
-
toString
-