From db854ce6e5038900c4ca1ad79154a4cd13ee257e Mon Sep 17 00:00:00 2001 From: Adrien Hopkins Date: Fri, 25 Jan 2019 14:23:10 -0500 Subject: Added basic code for the units. --- src/unitConverter/unit/UnitSystem.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/unitConverter/unit/UnitSystem.java') 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. * @@ -23,6 +25,16 @@ package unitConverter.unit; * @since 2018-12-23 */ 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 -- cgit v1.2.3