Skip to content

Commit

Permalink
UNITSOFMEASUREMENT-100: Define our criterion for inclusion / exclusion
Browse files Browse the repository at this point in the history
of quantity types 
Factor out SI Units
Task-Url: https://java.net/jira/browse/UNITSOFMEASUREMENT-100
  • Loading branch information
keilw committed Apr 7, 2015
1 parent 459e318 commit 0c3d3ef
Show file tree
Hide file tree
Showing 55 changed files with 1,313 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
/.settings/
/.project
28 changes: 28 additions & 0 deletions pom.xml
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>
3 changes: 3 additions & 0 deletions quantity/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.settings/
/.classpath
/.project
22 changes: 22 additions & 0 deletions quantity/pom.xml
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>
26 changes: 26 additions & 0 deletions quantity/src/main/java/si/uom/quantity/Acceleration.java
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> {
}
24 changes: 24 additions & 0 deletions quantity/src/main/java/si/uom/quantity/Action.java
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 quantity/src/main/java/si/uom/quantity/AmountOfSubstance.java
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> {
}
25 changes: 25 additions & 0 deletions quantity/src/main/java/si/uom/quantity/Angle.java
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 quantity/src/main/java/si/uom/quantity/AngularAcceleration.java
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> {
}
31 changes: 31 additions & 0 deletions quantity/src/main/java/si/uom/quantity/AngularSpeed.java
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> {
}
25 changes: 25 additions & 0 deletions quantity/src/main/java/si/uom/quantity/Area.java
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 quantity/src/main/java/si/uom/quantity/CatalyticActivity.java
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 quantity/src/main/java/si/uom/quantity/DynamicViscosity.java
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 quantity/src/main/java/si/uom/quantity/ElectricCapacitance.java
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 quantity/src/main/java/si/uom/quantity/ElectricCharge.java
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 quantity/src/main/java/si/uom/quantity/ElectricConductance.java
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 quantity/src/main/java/si/uom/quantity/ElectricCurrent.java
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> {
}
Loading

0 comments on commit 0c3d3ef

Please sign in to comment.