Interface UNITS


@Generated(value="org.djunits.generator.GenerateStaticUNITS", date="2021-02-01T10:50:00.000+0100") public interface UNITS
Easy access methods for many units. Can be used to create DoubleScalar, DoubleVector, DoubleMatrix classes and their Float equivalents. Instead of
DoubleScalar.Rel<LengthUnit> margin = new DoubleScalar.Rel<LengthUnit>(0.2, LengthUnit.METER);
we can now write
Length margin = new Length(0.2, METER);
The compiler will automatically recognize which units belong to which quantity, and whether the quantity type and the unit used are compatible.

To use these easy access methods, put a implements UNITS at the end of your class line.

Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.

Author:
Alexander Verbraeck, Peter Knoppers