View Javadoc
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    * The units of illuminance.
10   * <p>
11   * Copyright (c) 2015-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
12   * BSD-style license. See <a href="https://djunits.org/docs/license.html">DJUNITS License</a>.
13   * <p>
14   * version May 15, 2014 <br>
15   * @author <a href="https://www.tudelft.nl/p.knoppers">Peter Knoppers</a>
16   */
17  public class IlluminanceUnit extends Unit<IlluminanceUnit>
18  {
19      /** */
20      private static final long serialVersionUID = 20190830;
21  
22      /** The base, with "lux" as the SI signature. */
23      public static final Quantity<IlluminanceUnit> BASE = new Quantity<>("Illuminance", "srcd/m2");
24  
25      /** The SI unit for amount of illuminance is lux. */
26      public static final IlluminanceUnit SI =
27              new IlluminanceUnit().build(new Unit.Builder<IlluminanceUnit>().setQuantity(BASE).setId("lx").setName("lux")
28                      .setUnitSystem(UnitSystem.SI_DERIVED).setSiPrefixes(SIPrefixes.UNIT, 1.0).setScale(IdentityScale.SCALE));
29  
30      /** Lux. */
31      public static final IlluminanceUnit LUX = SI;
32  
33      /** mlux. */
34      public static final IlluminanceUnit MILLILUX = LUX.deriveLinear(1.0E-3, "mlx", "millilux");
35  
36      /** mulux. */
37      public static final IlluminanceUnit MICROLUX =
38              LUX.deriveLinear(1.0E-6, "mulx", "microlux", UnitSystem.SI_DERIVED, "mulx", "mulx", "\u03BClx");
39  
40      /** klux. */
41      public static final IlluminanceUnit KILOLUX = LUX.deriveLinear(1.0E3, "klx", "kilolux");
42  
43      /** phot. */
44      public static final IlluminanceUnit PHOT = KILOLUX.deriveLinear(10.0, "ph", "phot");
45  
46      /** nox. */
47      public static final IlluminanceUnit NOX = MILLILUX.deriveLinear(1.0, "nx", "nox");
48  
49  }