Package org.forester.phylogeny.data
Class Point
java.lang.Object
org.forester.phylogeny.data.Point
- All Implemented Interfaces:
PhylogenyData
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPoint()
Point
(String geodetic_datum, BigDecimal lat, BigDecimal longitude) Point
(String geodetic_datum, BigDecimal lat, BigDecimal longitude, BigDecimal alt, String alt_unit) -
Method Summary
Modifier and TypeMethodDescriptionasText()
copy()
Creates a new PhylogenyData object with identical values as this PhylogenyData.boolean
isEmpty()
boolean
isEqual
(PhylogenyData point) Compares this PhylogenyData to PhylogenyData data.static final boolean
toNHX()
void
toPhyloXML
(Writer writer, int level, String indentation) Writes a phyloXML representation of this phylogeny data.toString()
-
Field Details
-
UNKNOWN_GEODETIC_DATUM
- See Also:
-
-
Constructor Details
-
Point
public Point() -
Point
-
Point
public Point(String geodetic_datum, BigDecimal lat, BigDecimal longitude, BigDecimal alt, String alt_unit)
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
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
-
getAltitude
-
getAltiudeUnit
-
getGeodeticDatum
-
getLatitude
-
getLongitude
-
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
-
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
-
isSeemsEmpty
-