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    * Standard units for electrical current.
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   * @author <a href="https://www.tudelft.nl/averbraeck">Alexander Verbraeck</a>
15   */
16  public class ElectricalCurrentUnit extends Unit<ElectricalCurrentUnit>
17  {
18      /** */
19      private static final long serialVersionUID = 20140607L;
20  
21      /** The base, with "A" as the SI signature. */
22      public static final Quantity<ElectricalCurrentUnit> BASE = new Quantity<>("ElectricalCurrent", "A");
23  
24      /** The SI unit for electrical current is Ampere. */
25      public static final ElectricalCurrentUnitl#ElectricalCurrentUnit">ElectricalCurrentUnit SI = new ElectricalCurrentUnit()
26              .build(new Unit.Builder<ElectricalCurrentUnit>().setQuantity(BASE).setId("A").setName("ampere")
27                      .setUnitSystem(UnitSystem.SI_BASE).setSiPrefixes(SIPrefixes.UNIT, 1.0).setScale(IdentityScale.SCALE));
28  
29      /** Ampere. */
30      public static final ElectricalCurrentUnit AMPERE = SI;
31  
32      /** microampere. */
33      public static final ElectricalCurrentUnit MICROAMPERE = AMPERE.deriveSI(SIPrefixes.getUnit("mu"), 1.0);
34  
35      /** milliampere. */
36      public static final ElectricalCurrentUnit MILLIAMPERE = AMPERE.deriveSI(SIPrefixes.getUnit("m"), 1.0);
37  
38      /** kiloampere. */
39      public static final ElectricalCurrentUnit KILOAMPERE = AMPERE.deriveSI(SIPrefixes.getUnit("k"), 1.0);
40  
41      /** megaampere. */
42      public static final ElectricalCurrentUnit MEGAAMPERE = AMPERE.deriveSI(SIPrefixes.getUnit("M"), 1.0);
43  
44      /** statampere (GCS ESU). */
45      public static final ElectricalCurrentUnit STATAMPERE =
46              AMPERE.deriveLinear(3.335641E-10, "statA", "statampere", UnitSystem.CGS_ESU);
47  
48      /** abampere (GCS EMU). */
49      public static final ElectricalCurrentUnit ABAMPERE = AMPERE.deriveLinear(10.0, "abA", "abampere", UnitSystem.CGS_EMU);
50  
51  }