Вопрос

I'm trying to give JScience-physics 5.0-SNAPSHOT a spin. Unfortunately I can't seem to find the entry into the code. The examples on the JScience website are all for 4.3.1; using the Amount class. From there it's pretty clear how to convert, doing maths, etc.

But there's no such a class in JScience-physics. First I thought it was a builder pattern starting from the unit instance, but no luck there either.

Does somebody in here already used this? If so, do you have an example on how to define amounts?

Это было полезно?

Решение

It seems the 5.0 API is not finished yet: No amounts yet.

http://java.net/projects/jscience/lists/users/archive/2011-07/message/5

So no way to do actual math on quantities. Pity...

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top