public interface Distance extends OsidPrimitive, Distance
A distance.
While a DateTime
represents a point on a calendar and a
tick on a clock, a Distance
represents a measurement. Each
of these methods returns the total absolute measurement in the specified
units.
Modifier and Type | Method and Description |
---|---|
boolean |
definesUncertainty()
Tests if uncertainty is defined for this distance.
|
java.math.BigDecimal |
getAngstroms()
Gets this distance in angstroms.
|
java.math.BigDecimal |
getAttometers()
Gets this distance in attometers.
|
java.math.BigDecimal |
getAttoParsecs()
Gets this distance in attoparsecs.
|
java.math.BigDecimal |
getCentimeters()
Gets this distance in centimeters.
|
java.math.BigDecimal |
getExameters()
Gets this distance in exameters.
|
java.math.BigDecimal |
getExaParsecs()
Gets the number of exaparsecs.
|
java.math.BigDecimal |
getFemtometers()
Gets this distance in femotometers.
|
java.math.BigDecimal |
getGigameters()
Gets this distance in gigameters.
|
java.math.BigDecimal |
getGigaParsecs()
Get sthe number of gigaparsecs.
|
DistanceResolution |
getGranularity()
Gets the granularity of this distance.
|
long |
getGranularityMultiplier()
If the granularity of the measurement equals
getGranularity(),
then the multiplier is 1. |
java.math.BigDecimal |
getKilometers()
Gets this distance kilometers.
|
java.math.BigDecimal |
getLightYears()
Gets this distance in light years.
|
java.math.BigDecimal |
getMegameters()
Gets this distance in megameters.
|
java.math.BigDecimal |
getMeters()
Gets this distance in meters.
|
java.math.BigDecimal |
getMicrons()
Gets this distance in micrometers.
|
java.math.BigDecimal |
getMillimeters()
Gets this distance in millimeters.
|
java.math.BigDecimal |
getNanometers()
Gets this distance in nanometers.
|
java.math.BigDecimal |
getParsecs()
Gets this distance in parsecs.
|
java.math.BigDecimal |
getPetameters()
Gets this distance in petameters.
|
java.math.BigDecimal |
getPicometers()
Gets this distance in picometers.
|
java.math.BigDecimal |
getPlancks()
Gets this distance in plancks.
|
java.math.BigDecimal |
getTerameters()
Gets this distance in terameters.
|
java.math.BigDecimal |
getUncertaintyMinus()
Gets the uncertainty of this distance in the negative direction in
meters.
|
java.math.BigDecimal |
getUncertaintyPlus()
Gets the uncertainty of this distance in the positive direction in
meters.
|
DistanceResolution |
getUncertaintyUnits()
Gets the units of the uncertainty.
|
java.math.BigDecimal |
getVatometers()
Gets this distance in vatometers.
|
java.math.BigDecimal |
getWeebleometers()
Gets this distance in weeblemeters.
|
java.math.BigDecimal |
getXoxxometers()
Gets this distance in xoxxometers.
|
java.math.BigDecimal |
getYoctometers()
Gets this distance in yoctometers.
|
java.math.BigDecimal |
getYottameters()
Gets this distance in yottameters.
|
java.math.BigDecimal |
getYottaParsecs()
Gets the number of yottaparsecs.
|
java.math.BigDecimal |
getZeptometers()
Gets this distance in zeptometers.
|
java.math.BigDecimal |
getZettameters()
Gets this distance in zettameters.
|
compareTo, equals, getLowerBound, getUpperBound, hashCode, isContained, isExclusive, isExclusive, isGreater, isInclusive, isLess
toString
java.math.BigDecimal getYottaParsecs()
mandatory
- This method must be implemented. java.math.BigDecimal getExaParsecs()
mandatory
- This method must be implemented. java.math.BigDecimal getGigaParsecs()
mandatory
- This method must be implemented. java.math.BigDecimal getYottameters()
mandatory
- This method must be implemented. java.math.BigDecimal getZettameters()
mandatory
- This method must be implemented. java.math.BigDecimal getExameters()
mandatory
- This method must be implemented. java.math.BigDecimal getParsecs()
mandatory
- This method must be implemented. java.math.BigDecimal getLightYears()
mandatory
- This method must be implemented. java.math.BigDecimal getPetameters()
mandatory
- This method must be implemented. java.math.BigDecimal getTerameters()
mandatory
- This method must be implemented. java.math.BigDecimal getGigameters()
mandatory
- This method must be implemented. java.math.BigDecimal getMegameters()
mandatory
- This method must be implemented. java.math.BigDecimal getKilometers()
mandatory
- This method must be implemented. java.math.BigDecimal getMeters()
mandatory
- This method must be implemented. java.math.BigDecimal getAttoParsecs()
mandatory
- This method must be implemented. java.math.BigDecimal getCentimeters()
mandatory
- This method must be implemented. java.math.BigDecimal getMillimeters()
mandatory
- This method must be implemented. java.math.BigDecimal getMicrons()
mandatory
- This method must be implemented. java.math.BigDecimal getNanometers()
mandatory
- This method must be implemented. java.math.BigDecimal getAngstroms()
mandatory
- This method must be implemented. java.math.BigDecimal getPicometers()
mandatory
- This method must be implemented. java.math.BigDecimal getFemtometers()
mandatory
- This method must be implemented. java.math.BigDecimal getAttometers()
mandatory
- This method must be implemented. java.math.BigDecimal getZeptometers()
mandatory
- This method must be implemented. java.math.BigDecimal getYoctometers()
mandatory
- This method must be implemented. java.math.BigDecimal getXoxxometers()
mandatory
- This method must be implemented. java.math.BigDecimal getWeebleometers()
mandatory
- This method must be implemented. java.math.BigDecimal getVatometers()
mandatory
- This method must be implemented. java.math.BigDecimal getPlancks()
mandatory
- This method must be implemented. DistanceResolution getGranularity()
mandatory
- This method must be implemented. long getGranularityMultiplier()
getGranularity(),
then the multiplier is 1. This method may return a different
number when the granularity differs from one of the defined
resolutions.mandatory
- This method must be implemented. boolean definesUncertainty()
true
if uncertainty is defined, false
otherwisemandatory
- This method must be implemented. DistanceResolution getUncertaintyUnits()
IllegalStateException
- definesUncertainty()
is false
mandatory
- This method must be implemented. java.math.BigDecimal getUncertaintyMinus()
IllegalStateException
- definesUncertainty()
is false
mandatory
- This method must be implemented. java.math.BigDecimal getUncertaintyPlus()
IllegalStateException
- definesUncertainty()
is false
mandatory
- This method must be implemented.