Class PerMass.Unit

java.lang.Object
org.djunits.unit.AbstractUnit<PerMass.Unit,PerMass>
org.djunits.quantity.def.PerMass.Unit
All Implemented Interfaces:
Unit<PerMass.Unit,PerMass>
Enclosing class:
PerMass

public static class PerMass.Unit extends AbstractUnit<PerMass.Unit,PerMass>
PerMass.Unit encodes the unit of the PerMass quantity.

Copyright (c) 2025-2026 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djunits.org. The DJUNITS project is distributed under a three-clause BSD-style license.

Author:
Alexander Verbraeck
  • Field Details

    • SI_UNIT

      public static final SIUnit SI_UNIT
      The dimensions of mass: /kg.
    • per_kg

      public static final PerMass.Unit per_kg
      per kilogram.
    • SI

      public static final PerMass.Unit SI
      The SI or BASE unit.
    • per_g

      public static final PerMass.Unit per_g
      gram.
    • per_mug

      public static final PerMass.Unit per_mug
      microgram.
    • per_mg

      public static final PerMass.Unit per_mg
      milligram.
  • Constructor Details

    • Unit

      public Unit(String id, String name, double scaleFactorToBaseUnit, UnitSystem unitSystem)
      Create a new Mass unit.
      Parameters:
      id - the id or main abbreviation of the unit
      name - the full name of the unit
      scaleFactorToBaseUnit - the scale factor of the unit to convert it TO the base (SI) unit
      unitSystem - the unit system such as SI or IMPERIAL
    • Unit

      public Unit(String textualAbbreviation, String displayAbbreviation, String name, Scale scale, UnitSystem unitSystem)
      Return a derived unit for this unit, with textual abbreviation(s) and a display abbreviation.
      Parameters:
      textualAbbreviation - the textual abbreviation of the unit, which doubles as the id
      displayAbbreviation - the display abbreviation of the unit
      name - the full name of the unit
      scale - the scale to use to convert between this unit and the standard (e.g., SI, BASE) unit
      unitSystem - unit system, e.g. SI or Imperial
  • Method Details