public class Event extends java.lang.Object implements PhylogenyData
| Modifier and Type | Class and Description |
|---|---|
static class |
Event.EventType |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_VALUE |
| Constructor and Description |
|---|
Event() |
Event(Event.EventType type) |
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) |
| Modifier and Type | Method and 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
NHXFormatExceptionpublic java.lang.StringBuffer asSimpleText()
asSimpleText in interface PhylogenyDatapublic java.lang.StringBuffer asText()
asText in interface PhylogenyDatapublic PhylogenyData copy()
PhylogenyDatacopy in interface PhylogenyDatapublic Confidence getConfidence()
public Event.EventType getEventType()
public int getNumberOfDuplications()
public int getNumberOfGeneLosses()
public int getNumberOfSpeciations()
public boolean isDuplication()
public boolean isEqual(PhylogenyData event)
PhylogenyDataisEqual in interface PhylogenyDatapublic 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 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.Objectpublic static Event createSingleDuplicationEvent()
public static Event createSingleSpeciationEvent()
public static Event createSingleSpeciationOrDuplicationEvent()