PhylogenyData
public class Event extends java.lang.Object implements PhylogenyData
Modifier and Type | Class | Description |
---|---|---|
static class |
Event.EventType |
Modifier and Type | Field | Description |
---|---|---|
static int |
DEFAULT_VALUE |
Constructor | Description |
---|---|
Event() |
|
Event(int duplications,
int speciations,
int gene_losses) |
|
Event(int duplications,
int speciations,
int gene_losses,
java.lang.String type) |
|
Event(java.lang.String nhx) |
|
Event(Event.EventType type) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.StringBuffer |
asSimpleText() |
|
java.lang.StringBuffer |
asText() |
|
PhylogenyData |
copy() |
Creates a new PhylogenyData object with identical values as this
PhylogenyData.
|
static Event |
createSingleDuplicationEvent() |
|
static Event |
createSingleSpeciationEvent() |
|
static Event |
createSingleSpeciationOrDuplicationEvent() |
|
Confidence |
getConfidence() |
|
Event.EventType |
getEventType() |
|
int |
getNumberOfDuplications() |
|
int |
getNumberOfGeneLosses() |
|
int |
getNumberOfSpeciations() |
|
boolean |
isDuplication() |
Returns true if this event contains one or more duplications events only
|
boolean |
isEqual(PhylogenyData event) |
Compares this PhylogenyData to PhylogenyData data.
|
boolean |
isFusion() |
|
boolean |
isGeneLoss() |
Returns true if this event contains one or more gene loss events only
|
boolean |
isOther() |
|
boolean |
isRoot() |
|
boolean |
isSpeciation() |
Returns true if this event contains one or more speciation events only
|
boolean |
isSpeciationOrDuplication() |
|
boolean |
isTransfer() |
|
boolean |
isUnassigned() |
|
void |
setConfidence(Confidence confidence) |
|
void |
setDuplications(int duplications) |
|
void |
setGeneLosses(int gene_losses) |
|
void |
setSpeciations(int speciations) |
|
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 int DEFAULT_VALUE
public Event()
public Event(Event.EventType type)
public Event(int duplications, int speciations, int gene_losses)
public Event(int duplications, int speciations, int gene_losses, java.lang.String type)
public Event(java.lang.String nhx) throws NHXFormatException
NHXFormatException
public java.lang.StringBuffer asSimpleText()
asSimpleText
in interface PhylogenyData
public java.lang.StringBuffer asText()
asText
in interface PhylogenyData
public PhylogenyData copy()
PhylogenyData
copy
in interface PhylogenyData
public Confidence getConfidence()
public Event.EventType getEventType()
public int getNumberOfDuplications()
public int getNumberOfGeneLosses()
public int getNumberOfSpeciations()
public boolean isDuplication()
public boolean isEqual(PhylogenyData event)
PhylogenyData
isEqual
in interface PhylogenyData
public boolean isFusion()
public boolean isGeneLoss()
public boolean isOther()
public boolean isRoot()
public boolean isSpeciation()
public boolean isSpeciationOrDuplication()
public boolean isTransfer()
public boolean isUnassigned()
public void setConfidence(Confidence confidence)
public void setDuplications(int duplications)
public void setGeneLosses(int gene_losses)
public void setSpeciations(int speciations)
public java.lang.StringBuffer toNHX()
toNHX
in interface PhylogenyData
public void toPhyloXML(java.io.Writer writer, int level, java.lang.String indentation) throws java.io.IOException
PhylogenyData
toPhyloXML
in interface PhylogenyData
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public static Event createSingleDuplicationEvent()
public static Event createSingleSpeciationEvent()
public static Event createSingleSpeciationOrDuplicationEvent()