Package org.opengis.test
Class Units
Object
Units
- All Implemented Interfaces:
Factory
Pre-defined constants for the units of measurement used by the conformance tests.
This pseudo-factory provides separated methods for all units needed by
geoapi-conformance.- Since:
- 3.0.1
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUnits(SystemOfUnits system) Creates a new factory which will use the given system of units. -
Method Summary
Modifier and TypeMethodDescriptionUnit<Time> day()Unit of measurement defined as 24×60×60 seconds.Unit<Angle> degree()Unit of measurement defined as π/180 radians.static UnitsReturns the default units factory.Not yet implemented.Unit<Length> Unit of measurement defined as 1000 metres.Unit<Length> metre()Base unit of measurement for lengths.Unit<Dimensionless> one()Dimensionless unit for scale measurements.Unit<Dimensionless> ppm()The "parts per million" unit.Unit<Angle> radian()The base unit of measurement for angle.Unit<Time> second()Base unit of measurement for durations.
-
Constructor Details
-
Units
protected Units(SystemOfUnits system) Creates a new factory which will use the given system of units.- Parameters:
system- the system of units to use for creating base units.
-
-
Method Details
-
getDefault
Returns the default units factory. This factory uses the unit service provider which is current at the time of the first invocation of this method.- Returns:
- the default units factory.
-
getVendor
Not yet implemented. -
metre
public Unit<Length> metre()Base unit of measurement for lengths. -
kilometre
public Unit<Length> kilometre()Unit of measurement defined as 1000 metres. -
radian
public Unit<Angle> radian()The base unit of measurement for angle. -
degree
public Unit<Angle> degree()Unit of measurement defined as π/180 radians. -
second
public Unit<Time> second()Base unit of measurement for durations. -
day
public Unit<Time> day()Unit of measurement defined as 24×60×60 seconds. -
one
public Unit<Dimensionless> one()Dimensionless unit for scale measurements. -
ppm
public Unit<Dimensionless> ppm()The "parts per million" unit.
-