Giter Site home page Giter Site logo

uom-domain's People

Contributors

daniel-dos avatar keilw avatar ptahchiev avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

uom-domain's Issues

Add a new Music domain

While it could also be part of Retail, it seems more reasonable to add a specialized Music domain.

Add VO2Max to Health units

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> {}

How do you build it?

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]

[retail] Add EACH

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);

UMLS Use Cases

Explore support for UMLS (Unified Medical Language System) together with UCUM, a possible environment could be Apache cTAKES.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.