1 package org.djunits.unit;
2
3 import org.djunits.unit.quantity.Quantity;
4 import org.djunits.unit.scale.IdentityScale;
5 import org.djunits.unit.si.SIPrefixes;
6 import org.djunits.unit.unitsystem.UnitSystem;
7
8
9
10
11
12
13
14
15
16 public class DensityUnit extends Unit<DensityUnit>
17 {
18
19 private static final long serialVersionUID = 20140607L;
20
21
22 public static final Quantity<DensityUnit> BASE = new Quantity<>("Density", "kg/m3");
23
24
25 public static final DensityUnitl#DensityUnit">DensityUnit SI = new DensityUnit()
26 .build(new Unit.Builder<DensityUnit>().setQuantity(BASE).setId("kg/m^3").setName("kilogram per cubic meter")
27 .setUnitSystem(UnitSystem.SI_DERIVED).setSiPrefixes(SIPrefixes.NONE, 1.0).setScale(IdentityScale.SCALE));
28
29
30 public static final DensityUnit KG_PER_METER_3 = SI;
31
32
33 public static final DensityUnit GRAM_PER_CENTIMETER_3 =
34 KG_PER_METER_3.deriveLinear(1.0E3, "g/cm^3", "gram per cubic centimeter");
35
36 }