OSID Logo
OSID Specifications
mapping package
Version 3.1.0
Interfaceosid.mapping.Distance
Implementsosid.OsidPrimitive
Used Byosid.Metadata
osid.configuration.Value
osid.mapping.Speed
osid.mapping.route.Route
osid.mapping.route.RouteProgress
osid.mapping.route.RouteSegment
osid.search.terms.DistanceRangeTerm
osid.search.terms.DistanceTerm
Description

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.

MethodgetYottaParsecs
Description

Gets the number of yottaparsecs. You should budget extra time to travel a yottaparsec.

Returndecimal the number of yottaparsecs
Compliancemandatory This method must be implemented.
MethodgetExaParsecs
Description

Gets the number of exaparsecs. An exaparsec is much shorter.

Returndecimal the number of exaparsecs
Compliancemandatory This method must be implemented.
MethodgetGigaParsecs
Description

Get sthe number of gigaparsecs. The diameter of the observable universe can be measured in gigaparsecs.

Returndecimal the number of gigaparsecs
Compliancemandatory This method must be implemented.
MethodgetYottameters
Description

Gets this distance in yottameters. A yottameter is 1 trillion terameters.

Returndecimal the number of yottameters
Compliancemandatory This method must be implemented.
MethodgetZettameters
Description

Gets this distance in zettameters. A zettameter is one billion terameters.

Returndecimal the number of zettameters
Compliancemandatory This method must be implemented.
MethodgetExameters
Description

Gets this distance in exameters. An exameter is 1BB meters.

Returndecimal the number of exameters
Compliancemandatory This method must be implemented.
MethodgetParsecs
Description

Gets this distance in parsecs. A parsec is 30,857,000,000,000,000 meters.

Returndecimal the number of parsecs
Compliancemandatory This method must be implemented.
MethodgetLightYears
Description

Gets this distance in light years. A light year is 9,460,730,472,580,800 meters.

Returndecimal the number of light years
Compliancemandatory This method must be implemented.
MethodgetPetameters
Description

Gets this distance in petameters. A petameter is 1M gigameters.

Returndecimal the number of petameters
Compliancemandatory This method must be implemented.
MethodgetTerameters
Description

Gets this distance in terameters. A terameter is one trillion meters.

Returndecimal the number of terameters
Compliancemandatory This method must be implemented.
MethodgetGigameters
Description

Gets this distance in gigameters. A gigameter is 1B meters.

Returndecimal the number of gigameters
Compliancemandatory This method must be implemented.
MethodgetMegameters
Description

Gets this distance in megameters. A megameter is longer than a megaman.

Returndecimal the number of megameters
Compliancemandatory This method must be implemented.
MethodgetKilometers
Description

Gets this distance kilometers. A kilometer is 1,000 meters.

Returndecimal the number of kilometres
Compliancemandatory This method must be implemented.
MethodgetMeters
Description

Gets this distance in meters. A meter is 0.0049709695379 furlongs.

Returndecimal the number of meters
Compliancemandatory This method must be implemented.
MethodgetAttoParsecs
Description

Gets this distance in attoparsecs.

Returndecimal the number of attoparsecs
Compliancemandatory This method must be implemented.
MethodgetCentimeters
Description

Gets this distance in centimeters. A centimeter is one hundreth of a meter.

Returndecimal the number of centimeters
Compliancemandatory This method must be implemented.
MethodgetMillimeters
Description

Gets this distance in millimeters. A millimeter is one thousandth (1e-3) of a meter.

Returndecimal the number of millimeters
Compliancemandatory This method must be implemented.
MethodgetMicrons
Description

Gets this distance in micrometers. A micron is one millionth (1e-6) of a meter.

Returndecimal the number of microns
Compliancemandatory This method must be implemented.
MethodgetNanometers
Description

Gets this distance in nanometers. A nanometer is one billionth (1e-9) of a meter.

Returndecimal the number of nanometers
Compliancemandatory This method must be implemented.
MethodgetAngstroms
Description

Gets this distance in angstroms. An angstrom is one ten billionth (1e-10) of a meter.

Returndecimal the number of angstroms
Compliancemandatory This method must be implemented.
MethodgetPicometers
Description

Gets this distance in picometers. A picometer is one trillionth (1e-12) of a meter.

Returndecimal the number of picometers
Compliancemandatory This method must be implemented.
MethodgetFemtometers
Description

Gets this distance in femotometers. A femoto is one quadrillionth (1e-15) of a meter.

Returndecimal the number of femtometers
Compliancemandatory This method must be implemented.
MethodgetAttometers
Description

Gets this distance in attometers. An attometer is one quintillionth (1e-18) of a meter.

Returndecimal the number of attometers
Compliancemandatory This method must be implemented.
MethodgetZeptometers
Description

Gets this distance in zeptometers. A zeptometer is one sextillionth (1e-21) of a meter.

Returndecimal the number of zeptometers
Compliancemandatory This method must be implemented.
MethodgetYoctometers
Description

Gets this distance in yoctometers. A yoctometer is one septillionth (1e-24) of a meter.

Returndecimal the number of yoctometers
Compliancemandatory This method must be implemented.
MethodgetRontometers
Description

Gets this distance in rontometers. A rontometer is one octillionth (1e-27) of a meter.

Returndecimal the number of rontometers
Compliancemandatory This method must be implemented.
MethodgetQuectometers
Description

Gets this distance in quectometers. A quectometer is one nonillionth (1e-30) of a meter.

Returndecimal the number of quectometers
Compliancemandatory This method must be implemented.
MethodgetMilliquectometers
Description

Gets this distance in milliquectometers. A milliquectometer is one decillionth (1e-33) of a meter.

Returndecimal the number of milliquectometers
Compliancemandatory This method must be implemented.
MethodgetPlancks
Description

Gets this distance in plancks. Plancks are 161.6255 decillionths (1.616255e-35) of a meter. We cannot integrate with anything smaller.

Returndecimal the number of plancks
Compliancemandatory This method must be implemented.
MethodgetGranularity
Description

Gets the granularity of this distance. The granularity indicates the resolution of the yardstick. More precision than what is specified in this method cannot be inferred from the available data.

Returnosid.mapping.DistanceResolution granularity
Compliancemandatory This method must be implemented.
MethodgetGranularityMultiplier
Description

If the granularity of the measurement equals getGranularity(), then the multiplier is 1. This method may return a different number when the granularity differs from one of the defined resolutions.

Returncardinal granularity multiplier
Compliancemandatory This method must be implemented.
MethoddefinesUncertainty
Description

Tests if uncertainty is defined for this distance.

Returnboolean true if uncertainty is defined, false otherwise
Compliancemandatory This method must be implemented.
MethodgetUncertaintyUnits
Description

Gets the units of the uncertainty.

Returnosid.mapping.DistanceResolution units of the uncertainty
ErrorsILLEGAL_STATE definesUncertainty() is false
Compliancemandatory This method must be implemented.
MethodgetUncertaintyMinus
Description

Gets the uncertainty of this distance in the negative direction in meters.

Returndecimal the uncertainty under this value
ErrorsILLEGAL_STATE definesUncertainty() is false
Compliancemandatory This method must be implemented.
MethodgetUncertaintyPlus
Description

Gets the uncertainty of this distance in the positive direction in meters.

Returndecimal the uncertainty over this value
ErrorsILLEGAL_STATE definesUncertainty() is false
Compliancemandatory This method must be implemented.