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
17 public class AbsorbedDoseUnit extends Unit<AbsorbedDoseUnit>
18 {
19
20 private static final long serialVersionUID = 20190830;
21
22
23 public static final Quantity<AbsorbedDoseUnit> BASE = new Quantity<>("AbsorbedDose", "m2/s2");
24
25
26 public static final AbsorbedDoseUnit SI =
27 new AbsorbedDoseUnit().build(new Unit.Builder<AbsorbedDoseUnit>().setQuantity(BASE).setId("Gy").setName("gray")
28 .setUnitSystem(UnitSystem.SI_DERIVED).setSiPrefixes(SIPrefixes.UNIT, 1.0).setScale(IdentityScale.SCALE));
29
30
31 public static final AbsorbedDoseUnit GRAY = SI;
32
33
34 public static final AbsorbedDoseUnit MILLIGRAY = GRAY.deriveSI(SIPrefixes.getUnit("m"), 1.0);
35
36
37 public static final AbsorbedDoseUnit MICROGRAY = GRAY.deriveSI(SIPrefixes.getUnit("mu"), 1.0);
38
39
40 public static final AbsorbedDoseUnit ERG_PER_GRAM = GRAY.deriveLinear(1.0E-4, "erg/g", "erg per gram", UnitSystem.CGS);
41
42
43 public static final AbsorbedDoseUnit RAD = GRAY.deriveLinear(0.01, "rad", "rad", UnitSystem.CGS);
44 }