public class DomainArchitecture extends java.lang.Object implements PhylogenyData
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NHX_SEPARATOR |
| Constructor and Description |
|---|
DomainArchitecture() |
DomainArchitecture(java.util.List<PhylogenyData> domains,
int total_length) |
DomainArchitecture(java.lang.String da_str) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDomain(ProteinDomain pd) |
java.lang.StringBuffer |
asSimpleText() |
java.lang.StringBuffer |
asText() |
PhylogenyData |
copy()
Creates a new PhylogenyData object with identical values as this
PhylogenyData.
|
ProteinDomain |
getDomain(int i) |
java.util.SortedMap<java.math.BigDecimal,ProteinDomain> |
getDomains() |
int |
getNumberOfDomains() |
int |
getTotalLength() |
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) |
java.lang.StringBuffer |
toNHX() |
void |
toPhyloXML(java.io.Writer writer,
int level,
java.lang.String indentation)
Writes a phyloXML representation of this phylogeny data.
|
java.lang.String |
toString() |
public static final java.lang.String NHX_SEPARATOR
public DomainArchitecture()
public DomainArchitecture(java.util.List<PhylogenyData> domains, int total_length)
public DomainArchitecture(java.lang.String da_str)
public void addDomain(ProteinDomain pd)
public java.lang.StringBuffer asSimpleText()
asSimpleText in interface PhylogenyDatapublic java.lang.StringBuffer asText()
asText in interface PhylogenyDatapublic PhylogenyData copy()
PhylogenyDatacopy in interface PhylogenyDatapublic ProteinDomain getDomain(int i)
public java.util.SortedMap<java.math.BigDecimal,ProteinDomain> getDomains()
public int getNumberOfDomains()
public int getTotalLength()
public boolean isEqual(PhylogenyData domain_architecture)
isEqual in interface PhylogenyDatapublic void setTotalLength(int total_length)
public java.lang.StringBuffer toNHX()
toNHX in interface PhylogenyDatapublic void toPhyloXML(java.io.Writer writer,
int level,
java.lang.String indentation)
throws java.io.IOException
PhylogenyDatatoPhyloXML in interface PhylogenyDatajava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object