diff options
author | Adrien Hopkins <adrien.p.hopkins@gmail.com> | 2019-01-25 14:23:10 -0500 |
---|---|---|
committer | Adrien Hopkins <adrien.p.hopkins@gmail.com> | 2019-01-25 14:23:10 -0500 |
commit | db854ce6e5038900c4ca1ad79154a4cd13ee257e (patch) | |
tree | 77be4522b8ed192cd4feec3b4b12541fe1255812 /src/unitConverter/unit/UnitSystem.java | |
parent | 1def718782e0a7c32a42b5ceb24cd6c16ce3d6e0 (diff) |
Added basic code for the units.
Diffstat (limited to 'src/unitConverter/unit/UnitSystem.java')
-rwxr-xr-x | src/unitConverter/unit/UnitSystem.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/unitConverter/unit/UnitSystem.java b/src/unitConverter/unit/UnitSystem.java index 2e3a5d8..0a50062 100755 --- a/src/unitConverter/unit/UnitSystem.java +++ b/src/unitConverter/unit/UnitSystem.java @@ -16,6 +16,8 @@ */ package unitConverter.unit; +import unitConverter.dimension.UnitDimension; + /** * A system of units. Each unit should be aware of its system. * @@ -24,6 +26,16 @@ package unitConverter.unit; */ public interface UnitSystem { /** + * Gets a base unit for this system and the provided dimension. + * + * @param dimension + * dimension used by base unit + * @return base unit + * @since 2019-01-25 + */ + BaseUnit getBaseUnit(UnitDimension dimension); + + /** * @return name of system * @since 2019-01-25 */ |