Package org.forester.phylogeny.data
Class NodeData
java.lang.Object
org.forester.phylogeny.data.NodeData
- All Implemented Interfaces:
PhylogenyData
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDistribution
(Distribution distribution) void
addReference
(Reference reference) void
addSequence
(Sequence sequence) void
addTaxonomy
(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) boolean
isEmpty()
boolean
isEqual
(PhylogenyData data) Compares this PhylogenyData to PhylogenyData data.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setBinaryCharacters
(BinaryCharacters binary_characters) void
void
setDistribution
(int index, Distribution distribution) void
setDistribution
(Distribution distribution) Convenience method -- always sets the first Distribution.void
void
setNodeName
(String node_name) void
setNodeVisualData
(NodeVisualData node_visual_data) void
setProperties
(PropertiesMap custom_data) void
setReference
(int index, Reference reference) void
setReference
(Reference reference) Convenience method -- always sets the first Reference.void
setSequence
(int index, Sequence sequence) void
setSequence
(Sequence sequence) Convenience method -- always sets the first Sequence.void
setTaxonomy
(int index, Taxonomy taxonomy) void
setTaxonomy
(Taxonomy taxonomy) Convenience method -- always sets the first Taxonomy.void
toNHX()
void
toPhyloXML
(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:
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
-
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:PhylogenyData
Compares this PhylogenyData to PhylogenyData data. In general, this should return true if and only if all fiels are exactly identical.- Specified by:
isEqual
in 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:
toNHX
in interfacePhylogenyData
-
toPhyloXML
Description copied from interface:PhylogenyData
Writes a phyloXML representation of this phylogeny data.- Specified by:
toPhyloXML
in interfacePhylogenyData
- Throws:
IOException
-
setVector
-
getVector
-
getNodeName
-
setNodeName
-
setNodeVisualData
-
getNodeVisualData
-