-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UNITSOFMEASUREMENT-100: Define our criterion for inclusion / exclusion
of quantity types Factor out SI Units Task-Url: https://java.net/jira/browse/UNITSOFMEASUREMENT-100
- Loading branch information
Showing
55 changed files
with
1,313 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ pom.xml.next | |
release.properties | ||
dependency-reduced-pom.xml | ||
buildNumber.properties | ||
/.settings/ | ||
/.project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>tec.uom</groupId> | ||
<artifactId>uom-parent</artifactId> | ||
<version>0.8-SNAPSHOT</version> | ||
</parent> | ||
<groupId>si.uom</groupId> | ||
<artifactId>si-parent</artifactId> | ||
<version>0.3-SNAPSHOT</version> | ||
<packaging>pom</packaging> | ||
<name>Units of Measurement SI </name> | ||
|
||
<!-- ======================================================= --> | ||
<!-- Build Settings --> | ||
<!-- ======================================================= --> | ||
<properties> | ||
<jdkVersion>1.6</jdkVersion> | ||
<si.version>${project.version}</si.version> | ||
<project.build.javaVersion>${jdkVersion}</project.build.javaVersion> | ||
<maven.compile.targetLevel>1.6</maven.compile.targetLevel> | ||
<maven.compile.sourceLevel>${jdkVersion}</maven.compile.sourceLevel> | ||
</properties> | ||
<modules> | ||
<module>quantity</module> | ||
</modules> | ||
<description>Units of Measurement SI (Système International d'Unités)</description> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/.settings/ | ||
/.classpath | ||
/.project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>si.uom</groupId> | ||
<artifactId>si-parent</artifactId> | ||
<version>0.3-SNAPSHOT</version> | ||
</parent> | ||
<artifactId>si-quantity</artifactId> | ||
<name>Units of Measurement SI Quantities</name> | ||
<dependencies> | ||
<dependency> | ||
<groupId>javax.measure</groupId> | ||
<artifactId>unit-api</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* Unit-API - Units of Measurement API for Java | ||
* Copyright (c) 2014 Jean-Marie Dautelle, Werner Keil, V2COM | ||
* All rights reserved. | ||
* | ||
* See LICENSE.txt for details. | ||
*/ | ||
package si.uom.quantity; | ||
|
||
import javax.measure.Quantity; | ||
|
||
|
||
/** | ||
* Rate of change of velocity with respect to time. | ||
* The metric system unit for this quantity is "m/s²" (metre per square second). | ||
* | ||
* @author <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a> | ||
* @version 1.0 | ||
* | ||
* @see Length | ||
* @see Speed | ||
* @see Time | ||
* @see AngularAcceleration | ||
*/ | ||
public interface Acceleration extends Quantity<Acceleration> { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* Unit-API - Units of Measurement API for Java | ||
* Copyright (c) 2014 Jean-Marie Dautelle, Werner Keil, V2COM | ||
* All rights reserved. | ||
* | ||
* See LICENSE.txt for details. | ||
*/ | ||
package si.uom.quantity; | ||
|
||
import javax.measure.Quantity; | ||
|
||
|
||
/** | ||
* Energy multiplied by a duration (quantity associated to the | ||
* <a href="http://en.wikipedia.org/wiki/Planck%27s_constant">Planck Constant</a>). | ||
* The system unit for this quantity is "J.s" (joules second). | ||
* | ||
* @author <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a> | ||
* @version 1.1 | ||
* | ||
* @see <a href="http://en.wikipedia.org/wiki/Action_(physics)">Wikipedia: Action</a> | ||
*/ | ||
public interface Action extends Quantity<Action> { | ||
} |
23 changes: 23 additions & 0 deletions
23
quantity/src/main/java/si/uom/quantity/AmountOfSubstance.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* Unit-API - Units of Measurement API for Java | ||
* Copyright (c) 2014 Jean-Marie Dautelle, Werner Keil, V2COM | ||
* All rights reserved. | ||
* | ||
* See LICENSE.txt for details. | ||
*/ | ||
package si.uom.quantity; | ||
|
||
import javax.measure.Quantity; | ||
|
||
/** | ||
* Number of elementary entities (molecules, for example) of a substance. | ||
* The metric system unit for this quantity is "mol" (mole). | ||
* | ||
* @author <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a> | ||
* @author <a href="mailto:units@catmedia.us">Werner Keil</a> | ||
* @version 1.1 | ||
* | ||
* @see <a href=" http://en.wikipedia.org/wiki/Amount_of_substance">Wikipedia: Amount of Substance</a> | ||
*/ | ||
public interface AmountOfSubstance extends Quantity<AmountOfSubstance> { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* Unit-API - Units of Measurement API for Java | ||
* Copyright (c) 2014 Jean-Marie Dautelle, Werner Keil, V2COM | ||
* All rights reserved. | ||
* | ||
* See LICENSE.txt for details. | ||
*/ | ||
package si.uom.quantity; | ||
|
||
import javax.measure.Quantity; | ||
|
||
|
||
/** | ||
* Figure formed by two lines diverging from a common point. | ||
* The metric system unit for this quantity is "rad" (radian). | ||
* | ||
* @author <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a> | ||
* @version 1.0 | ||
* | ||
* @see SolidAngle | ||
* @see Length | ||
* @see AngularSpeed | ||
*/ | ||
public interface Angle extends Quantity<Angle> { | ||
} |
26 changes: 26 additions & 0 deletions
26
quantity/src/main/java/si/uom/quantity/AngularAcceleration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* Unit-API - Units of Measurement API for Java | ||
* Copyright (c) 2014 Jean-Marie Dautelle, Werner Keil, V2COM | ||
* All rights reserved. | ||
* | ||
* See LICENSE.txt for details. | ||
*/ | ||
package si.uom.quantity; | ||
|
||
import javax.measure.Quantity; | ||
|
||
|
||
/** | ||
* Rate of change of angular velocity with respect to time. | ||
* The system unit for this quantity is "rad/s²" (radian per square second). | ||
* | ||
* @author <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a> | ||
* @version 1.1 | ||
* | ||
* @see Angle | ||
* @see AngularSpeed | ||
* @see Time | ||
* @see Acceleration | ||
*/ | ||
public interface AngularAcceleration extends Quantity<AngularAcceleration> { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* Unit-API - Units of Measurement API for Java | ||
* Copyright (c) 2014 Jean-Marie Dautelle, Werner Keil, V2COM | ||
* All rights reserved. | ||
* | ||
* See LICENSE.txt for details. | ||
*/ | ||
package si.uom.quantity; | ||
|
||
import javax.measure.Quantity; | ||
|
||
/** | ||
* Rate of change of angular displacement with respect to time. | ||
* The system unit for this quantity is "rad/s" (radian per second). | ||
* | ||
* <p><cite>Angular speed</cite> is a scalar value, while <cite>angular velocity</cite> is a | ||
* pseudo-vector. The angular speed is the magnitude of the angular velocity pseudo-vector, | ||
* or the components of the angular velocity pseudo-vector.</p> | ||
* | ||
* @author <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a> | ||
* @author <a href="mailto:units@catmedia.us">Werner Keil</a> | ||
* @version 1.2 | ||
* | ||
* @see Angle | ||
* @see Time | ||
* @see AngularAcceleration | ||
* @see Speed | ||
* @see <a href="http://en.wikipedia.org/wiki/Angular_speed">Wikipedia: Angular Speed</a> | ||
*/ | ||
public interface AngularSpeed extends Quantity<AngularSpeed> { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* Unit-API - Units of Measurement API for Java | ||
* Copyright (c) 2014 Jean-Marie Dautelle, Werner Keil, V2COM | ||
* All rights reserved. | ||
* | ||
* See LICENSE.txt for details. | ||
*/ | ||
package si.uom.quantity; | ||
|
||
import javax.measure.Quantity; | ||
|
||
|
||
/** | ||
* Extent of a planar region or of the surface of a solid measured in square units. | ||
* The metric system unit for this quantity is "m²" (square metre). | ||
* | ||
* @author <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a> | ||
* @version 1.1 | ||
* | ||
* @see Length | ||
* @see Volume | ||
* @see Pressure | ||
*/ | ||
public interface Area extends Quantity<Area> { | ||
} |
21 changes: 21 additions & 0 deletions
21
quantity/src/main/java/si/uom/quantity/CatalyticActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* Unit-API - Units of Measurement API for Java | ||
* Copyright (c) 2014 Jean-Marie Dautelle, Werner Keil, V2COM | ||
* All rights reserved. | ||
* | ||
* See LICENSE.txt for details. | ||
*/ | ||
package si.uom.quantity; | ||
|
||
import javax.measure.Quantity; | ||
|
||
|
||
/** | ||
* Catalytic activity. | ||
* The metric system unit for this quantity is "kat" (katal). | ||
* | ||
* @author <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a> | ||
* @version 1.0 | ||
*/ | ||
public interface CatalyticActivity extends Quantity<CatalyticActivity> { | ||
} |
24 changes: 24 additions & 0 deletions
24
quantity/src/main/java/si/uom/quantity/DynamicViscosity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* Unit-API - Units of Measurement API for Java | ||
* Copyright (c) 2014 Jean-Marie Dautelle, Werner Keil, V2COM | ||
* All rights reserved. | ||
* | ||
* See LICENSE.txt for details. | ||
*/ | ||
package si.uom.quantity; | ||
|
||
import javax.measure.Quantity; | ||
|
||
|
||
/** | ||
* Dynamic viscosity. | ||
* The system unit for this quantity is "Pa.s" (Pascal-Second). | ||
* | ||
* @author <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a> | ||
* @version 3.1 | ||
* | ||
* @see KinematicViscosity | ||
* @see <a href="http://en.wikipedia.org/wiki/Viscosity">Wikipedia: Viscosity</a> | ||
*/ | ||
public interface DynamicViscosity extends Quantity<DynamicViscosity> { | ||
} |
21 changes: 21 additions & 0 deletions
21
quantity/src/main/java/si/uom/quantity/ElectricCapacitance.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* Unit-API - Units of Measurement API for Java | ||
* Copyright (c) 2014 Jean-Marie Dautelle, Werner Keil, V2COM | ||
* All rights reserved. | ||
* | ||
* See LICENSE.txt for details. | ||
*/ | ||
package si.uom.quantity; | ||
|
||
import javax.measure.Quantity; | ||
|
||
|
||
/** | ||
* Electric capacitance. | ||
* The metric system unit for this quantity is "F" (Farad). | ||
* | ||
* @author <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a> | ||
* @version 1.0 | ||
*/ | ||
public interface ElectricCapacitance extends Quantity<ElectricCapacitance> { | ||
} |
23 changes: 23 additions & 0 deletions
23
quantity/src/main/java/si/uom/quantity/ElectricCharge.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* Unit-API - Units of Measurement API for Java | ||
* Copyright (c) 2014 Jean-Marie Dautelle, Werner Keil, V2COM | ||
* All rights reserved. | ||
* | ||
* See LICENSE.txt for details. | ||
*/ | ||
package si.uom.quantity; | ||
|
||
import javax.measure.Quantity; | ||
|
||
|
||
/** | ||
* Electric charge. | ||
* The metric system unit for this quantity is "C" (Coulomb). | ||
* | ||
* @author <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a> | ||
* @version 1.0 | ||
* | ||
* @see ElectricCurrent | ||
*/ | ||
public interface ElectricCharge extends Quantity<ElectricCharge> { | ||
} |
21 changes: 21 additions & 0 deletions
21
quantity/src/main/java/si/uom/quantity/ElectricConductance.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* Unit-API - Units of Measurement API for Java | ||
* Copyright (c) 2014 Jean-Marie Dautelle, Werner Keil, V2COM | ||
* All rights reserved. | ||
* | ||
* See LICENSE.txt for details. | ||
*/ | ||
package si.uom.quantity; | ||
|
||
import javax.measure.Quantity; | ||
|
||
|
||
/** | ||
* Electric conductance. | ||
* The metric system unit for this quantity "S" (Siemens). | ||
* | ||
* @author <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a> | ||
* @version 1.0 | ||
*/ | ||
public interface ElectricConductance extends Quantity<ElectricConductance> { | ||
} |
24 changes: 24 additions & 0 deletions
24
quantity/src/main/java/si/uom/quantity/ElectricCurrent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* Unit-API - Units of Measurement API for Java | ||
* Copyright (c) 2014 Jean-Marie Dautelle, Werner Keil, V2COM | ||
* All rights reserved. | ||
* | ||
* See LICENSE.txt for details. | ||
*/ | ||
package si.uom.quantity; | ||
|
||
import javax.measure.Quantity; | ||
|
||
|
||
/** | ||
* Amount of electric charge flowing past a specified circuit point per unit time. | ||
* The metric system unit for this quantity is "A" (Ampere). | ||
* | ||
* @author <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a> | ||
* @version 1.0 | ||
* | ||
* @see ElectricCharge | ||
* @see Time | ||
*/ | ||
public interface ElectricCurrent extends Quantity<ElectricCurrent> { | ||
} |
Oops, something went wrong.