unitsofmeasurement / uom-domain Goto Github PK
View Code? Open in Web Editor NEWUnits of Measurement Domain Specific Modules
License: Other
Units of Measurement Domain Specific Modules
License: Other
According to England Climate and Weather Weather is caused by the movement or transfer of energy. So should we keep weather in its own separate module or merge it into energy before the first non-snapshot release?
Using the 2.1 dependencies of MR1 this library should also upgrade to 2.1
Health
shows how to extend AbstractSystemOfUnits
, but the system currently is not registered with the SPI via ServiceLoader
.
CI_DEPLOY_PASSWORD
for Sonatype/OSSHWhile it could also be part of Retail, it seems more reasonable to add a specialized Music domain.
Hi,
I want to add VO2Max unit to the health module. It is expressed in mL/min/kg.
VO2MAX_UNIT = LITRE.divide(1000).divide(MINUTE).divide(KILOGRAM);
Do I just need to define this constant in this file (Health.java) ?
I will also declare the Quantity
in the health-api :
public interface VO2Max extends Quantity<VO2Max> {}
Create a new imaging module for Digital Imaging
The Github page for https://github.com/Masterminds/stability seems down and badges no longer work. https://github.com/orangemug/stability-badges is an alternative based on shields.io, so it looks more reliable because many projects would be affected if that went away.
Based on parts of the energy demo reusable elements should result in an "Energy API" module.
Needs #3
The improved CO2CarDemo now includes a SpecificCarbonEmission type, let's include that here.
Please specify in the README instructions to build this project.
I tried with:
Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117; 2019-08-27T18:06:16+03:00)
Maven home: /usr/share/maven/apache-maven-3.6.2
Java version: 11, vendor: Oracle Corporation, runtime: /dev/shm/jdk-11
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.4.0-58-generic", arch: "amd64", family: "unix"
but I got
[INFO] Units of Measurement Health Module ................. FAILURE [ 0.025 s]
[INFO] Units of Measurement for Imaging ................... SKIPPED
[INFO] Units of Measurement Retail Quantities ............. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.750 s
[INFO] Finished at: 2020-12-29T14:07:04+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project uom-health: Execution default-compile of goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile failed: Unsupported major.minor version 56.0 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project uom-health: Execution default-compile of goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile failed: Unsupported major.minor version 56.0
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
Then I found out this one:
codehaus-plexus/plexus-languages#32
and it seems a bug in plexus-languages. So I upgraded the java version to 12, but now I get this:
[INFO] Units of Measurement Health Module ................. FAILURE [ 0.261 s]
[INFO] Units of Measurement for Imaging ................... SKIPPED
[INFO] Units of Measurement Retail Quantities ............. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.509 s
[INFO] Finished at: 2020-12-29T14:15:26+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project uom-health: Compilation failure: Compilation failure:
[ERROR] /home/petar/workspace/uom-domain-master/health/health/src/main/java/tech/uom/domain/health/types/BMIRange.java:[39,27] package tech.uom.lib.common.function is not visible
[ERROR] (package tech.uom.lib.common.function is declared in module tech.uom.lib.common, but module tech.uom.health does not read it)
[ERROR] /home/petar/workspace/uom-domain-master/health/health/src/main/java/tech/uom/domain/health/types/BMIRange.java:[47,8] cannot access tech.uom.lib.common.function.MinimumSupplier
[ERROR] class file for tech.uom.lib.common.function.MinimumSupplier not found
[ERROR] /home/petar/workspace/uom-domain-master/health/health/src/main/java/tech/uom/domain/health/types/BMIRange.java:[52,23] cannot access tech.uom.lib.common.function.MaximumSupplier
[ERROR] class file for tech.uom.lib.common.function.MaximumSupplier not found
[ERROR] /home/petar/workspace/uom-domain-master/health/health/src/main/java/tech/uom/domain/health/types/BMIRange.java:[33,1] cannot access tech.uom.lib.common.function.QuantityConverter
[ERROR] class file for tech.uom.lib.common.function.QuantityConverter not found
[ERROR] /home/petar/workspace/uom-domain-master/health/health/src/main/java/tech/uom/domain/health/types/BMIRange.java:[31,1] cannot access tech.uom.lib.common.function.UnitSupplier
[ERROR] class file for tech.uom.lib.common.function.UnitSupplier not found
[ERROR] /home/petar/workspace/uom-domain-master/health/health/src/main/java/tech/uom/domain/health/types/HeartRateAmount.java:[44,14] cannot access tech.uom.lib.common.function.ValueSupplier
[ERROR] class file for tech.uom.lib.common.function.ValueSupplier not found
[ERROR] /home/petar/workspace/uom-domain-master/health/health/src/main/java/tech/uom/domain/health/unit/Health.java:[62,8] cannot access tech.uom.lib.common.function.Nameable
[ERROR] class file for tech.uom.lib.common.function.Nameable not found
[ERROR] /home/petar/workspace/uom-domain-master/health/health/src/main/java/tech/uom/domain/health/types/BMIRange.java:[138,9] method does not override or implement a method from a supertype
[ERROR] /home/petar/workspace/uom-domain-master/health/health/src/main/java/tech/uom/domain/health/unit/Health.java:[75,49] cannot access tech.uom.lib.common.function.PrefixOperator
[ERROR] class file for tech.uom.lib.common.function.PrefixOperator not found
[ERROR] -> [Help 1]
Although the Indriya based MP-Metrics module is going to use Indriya 1.0 for now, the package makes no sense under the old TLD, so it might as well start using the Java package name tech.uom right from the start.
Needs #3
Add EACH unit (can also be named PIECE). Also add BOX and a CRATE:
Quantity<Product> numberOfProducts = Quantities.getQuantity(20, EACH);
Quantity<Product> numberOfProducts = Quantities.getQuantity(20, BOX);
Quantity<Product> numberOfProducts = Quantities.getQuantity(20, CRATE);
Explore support for UMLS (Unified Medical Language System) together with UCUM, a possible environment could be Apache cTAKES.
Given the National Association of Music Merchants (NAM) has defined a couple of standards their UOM Code table https://www.namm.org/standards/implementation-guide-/codes-tables/unit-measurement-uom-codes (also see https://github.com/namm-standards) could be supported.
Following https://bugs.eclipse.org/bugs/show_bug.cgi?id=559204
Needs #19
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.