Package org.forester.phylogeny.data
Class Date
java.lang.Object
org.forester.phylogeny.data.Date
- All Implemented Interfaces:
PhylogenyData
-
Constructor Summary
ConstructorDescriptionDate()
Date
(String desc, BigDecimal value, BigDecimal min, BigDecimal max, String unit) -
Method Summary
Modifier and TypeMethodDescriptionasText()
copy()
Creates a new PhylogenyData object with identical values as this PhylogenyData.getDesc()
getMax()
getMin()
getUnit()
getValue()
boolean
isEqual
(PhylogenyData data) Compares this PhylogenyData to PhylogenyData data.void
void
setMax
(BigDecimal max) void
setMin
(BigDecimal min) void
void
setValue
(BigDecimal value) toNHX()
void
toPhyloXML
(Writer writer, int level, String indentation) Writes a phyloXML representation of this phylogeny data.toString()
-
Constructor Details
-
Date
public Date() -
Date
-
Date
-
-
Method Details
-
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
-
getDesc
-
getMax
-
getMin
-
getUnit
-
getValue
-
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
-
setDesc
-
setMax
-
setMin
-
setUnit
-
setValue
-
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
-
toString
-