Repast / repast.simphony

Git repository for Repast Simphony development
repast.github.io
90 stars 21 forks source link

Update Units API to 2.0 (JSR 385) #56

Closed etatara closed 1 year ago

etatara commented 2 years ago

See https://schneide.blog/tag/unit-api-2-0/

Repast uses the JScience Units API in multiple projects, and the GeoTools library also depends on it. The latest version of GeoTools uses the new Units 2.0 API, which is the official Java spec JSR-385. We should remove dependencies on JScience and update to Units 2.0. However, we need to carefully check how the Units API is used, for example we have an 'Amount' class that appears to have been customized to work with Groovy. It seems that the Amount class was mostly used for unit conversions and quantities in the old visual agent behavior editor, and so we may be able to remove it completely.

etatara commented 1 year ago

Update to Units API 2.0 Complete!