JScience 5.0 示例
我正在尝试尝试 JScience-physicals 5.0-SNAPSHOT。不幸的是我似乎找不到代码的入口。 JScience网站上的例子都是针对4.3.1的;使用 Amount 类。从那里开始,如何转换、如何做数学等就很清楚了。
但是 JScience-physicals 中没有这样的课程。首先,我认为这是从单元实例开始的构建器模式,但也没有运气。
这里有人已经用过这个了吗?如果是这样,您有关于如何定义金额的示例吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
5.0 API 似乎还没有完成:还没有金额。
http://java.net/projects/jscience/lists /users/archive/2011-07/message/5
因此无法对数量进行实际数学计算。遗憾...
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...