Object
PseudoFactory
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
ConstructorDescriptionUnits
(javax.measure.spi.SystemOfUnits system) Creates a new factory which will use the given system of units. -
Method Summary
Modifier and TypeMethodDescriptionjavax.measure.Unit
<javax.measure.quantity.Angle> Returns the unit of measurement defined as 1/(60×60) degree.javax.measure.Unit
<javax.measure.quantity.Time> day()
Returns the unit of measurement defined as 24×60×60 seconds.javax.measure.Unit
<javax.measure.quantity.Angle> degree()
Returns the unit of measurement defined as π/180 radians.javax.measure.Unit
<javax.measure.quantity.Length> foot()
Returns the unit of measurement defined as 0.3048 metres.javax.measure.Unit
<javax.measure.quantity.Length> Returns the unit of measurement defined as 12/39.37 metres.static Units
Returns the default units factory.javax.measure.Unit
<javax.measure.quantity.Angle> grad()
Returns the unit of measurement defined as π/200 radians.javax.measure.Unit
<javax.measure.quantity.Pressure> Returns the unit of measurement defined as 100 pascals.javax.measure.Unit
<javax.measure.quantity.Length> Returns the unit of measurement defined as 1000 metres.javax.measure.Unit
<javax.measure.quantity.Length> metre()
Returns the base unit of measurement for lengths.javax.measure.Unit
<javax.measure.quantity.Angle> Returns the unit of measurement defined as 1E-6 radians.javax.measure.Unit
<javax.measure.quantity.Dimensionless> one()
Returns the dimensionless unit for scale measurements.javax.measure.Unit
<javax.measure.quantity.Pressure> pascal()
Returns the base unit of measurement for pressure.javax.measure.Unit
<javax.measure.quantity.Dimensionless> ppm()
Returns the "parts per million" unit.javax.measure.Unit
<javax.measure.quantity.Angle> radian()
Returns the base unit of measurement for angle.javax.measure.Unit
<javax.measure.quantity.Time> second()
Returns the base unit of measurement for durations.Methods inherited from class org.opengis.test.util.PseudoFactory
getVendor
-
Constructor Details
-
Units
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.
-
metre
Returns the base unit of measurement for lengths..- Returns:
- the base unit of measurement for lengths
-
kilometre
Returns the unit of measurement defined as 1000 metres..- Returns:
- the unit of measurement defined as 1000 metres
-
foot
Returns the unit of measurement defined as 0.3048 metres..- Returns:
- the unit of measurement defined as 0.3048 metres
-
footSurveyUS
Returns the unit of measurement defined as 12/39.37 metres..- Returns:
- the unit of measurement defined as 12/39.37 metres
-
radian
Returns the base unit of measurement for angle..- Returns:
- the base unit of measurement for angle
-
microradian
Returns the unit of measurement defined as 1E-6 radians..- Returns:
- the unit of measurement defined as 1E-6 radians
-
degree
Returns the unit of measurement defined as π/180 radians..- Returns:
- the unit of measurement defined as π/180 radians
-
grad
Returns the unit of measurement defined as π/200 radians..- Returns:
- the unit of measurement defined as π/200 radians
-
arcSecond
Returns the unit of measurement defined as 1/(60×60) degree..- Returns:
- the unit of measurement defined as 1/(60×60) degree
-
second
Returns the base unit of measurement for durations..- Returns:
- the base unit of measurement for durations
-
day
Returns the unit of measurement defined as 24×60×60 seconds..- Returns:
- the unit of measurement defined as 24×60×60 seconds
-
pascal
Returns the base unit of measurement for pressure..- Returns:
- the base unit of measurement for pressure
-
hectopascal
Returns the unit of measurement defined as 100 pascals..- Returns:
- the unit of measurement defined as 100 pascals
-
one
Returns the dimensionless unit for scale measurements..- Returns:
- the dimensionless unit for scale measurements
-
ppm
Returns the "parts per million" unit..- Returns:
- the "parts per million" unit
-