Package org.forester.phylogeny.data
Class NodeData
java.lang.Object
org.forester.phylogeny.data.NodeData
- All Implemented Interfaces:
 PhylogenyData
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddDistribution(Distribution distribution) voidaddReference(Reference reference) voidaddSequence(Sequence sequence) voidaddTaxonomy(Taxonomy taxonomy) asText()copy()Creates a new PhylogenyData object with identical values as this PhylogenyData.getDate()Convenience method -- always returns the first Distribution.getDistribution(int index) getEvent()Convenience method -- always returns the first Reference.getReference(int index) Convenience method -- always returns the first Sequence.getSequence(int index) Convenience method -- always returns the first Taxonomy.getTaxonomy(int index) booleanisEmpty()booleanisEqual(PhylogenyData data) Compares this PhylogenyData to PhylogenyData data.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetBinaryCharacters(BinaryCharacters binary_characters) voidvoidsetDistribution(int index, Distribution distribution) voidsetDistribution(Distribution distribution) Convenience method -- always sets the first Distribution.voidvoidsetNodeName(String node_name) voidsetNodeVisualData(NodeVisualData node_visual_data) voidsetProperties(PropertiesMap custom_data) voidsetReference(int index, Reference reference) voidsetReference(Reference reference) Convenience method -- always sets the first Reference.voidsetSequence(int index, Sequence sequence) voidsetSequence(Sequence sequence) Convenience method -- always sets the first Sequence.voidsetTaxonomy(int index, Taxonomy taxonomy) voidsetTaxonomy(Taxonomy taxonomy) Convenience method -- always sets the first Taxonomy.voidtoNHX()voidtoPhyloXML(Writer writer, int level, String indentation) Writes a phyloXML representation of this phylogeny data. 
- 
Constructor Details
- 
NodeData
public NodeData() 
 - 
 - 
Method Details
- 
addDistribution
 - 
addReference
 - 
addSequence
 - 
addTaxonomy
 - 
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
 
 - 
getBinaryCharacters
 - 
getDate
 - 
getDistribution
Convenience method -- always returns the first Distribution.- Returns:
 - Distribution
 
 - 
getDistribution
 - 
getDistributions
 - 
getEvent
 - 
getProperties
 - 
getReference
Convenience method -- always returns the first Reference.- Returns:
 - Reference
 
 - 
getReference
 - 
getReferences
 - 
getSequence
Convenience method -- always returns the first Sequence.- Returns:
 - Sequence
 
 - 
getSequence
 - 
getSequences
 - 
getTaxonomies
 - 
getTaxonomy
Convenience method -- always returns the first Taxonomy.- Returns:
 - Taxonomy
 
 - 
getTaxonomy
 - 
isEqual
Description copied from interface:PhylogenyDataCompares this PhylogenyData to PhylogenyData data. In general, this should return true if and only if all fiels are exactly identical.- Specified by:
 isEqualin interfacePhylogenyData- Returns:
 - in general, true if and only if all fiels are exactly identical, false otherwise
 
 - 
isHasBinaryCharacters
public boolean isHasBinaryCharacters() - 
isEmpty
public boolean isEmpty() - 
isHasDate
public boolean isHasDate() - 
isHasDistribution
public boolean isHasDistribution() - 
isHasEvent
public boolean isHasEvent() - 
isHasProperties
public boolean isHasProperties() - 
isHasReference
public boolean isHasReference() - 
isHasSequence
public boolean isHasSequence() - 
isHasTaxonomy
public boolean isHasTaxonomy() - 
setBinaryCharacters
 - 
setDate
 - 
setDistribution
Convenience method -- always sets the first Distribution. - 
setDistribution
 - 
setEvent
 - 
setProperties
 - 
setReference
 - 
setReference
Convenience method -- always sets the first Reference. - 
setSequence
 - 
setSequence
Convenience method -- always sets the first Sequence. - 
setTaxonomy
 - 
setTaxonomy
Convenience method -- always sets the first Taxonomy. - 
toNHX
- Specified by:
 toNHXin interfacePhylogenyData
 - 
toPhyloXML
Description copied from interface:PhylogenyDataWrites a phyloXML representation of this phylogeny data.- Specified by:
 toPhyloXMLin interfacePhylogenyData- Throws:
 IOException
 - 
setVector
 - 
getVector
 - 
getNodeName
 - 
setNodeName
 - 
setNodeVisualData
 - 
getNodeVisualData
 
 -