public class ElectricalPotentialUnit extends LinearUnit<ElectricalPotentialUnit>
Copyright (c) 2015-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2019-01-18 00:35:01 +0100 (Fri, 18 Jan 2019) $, @version $Revision: 324 $, by $Author: averbraeck $,
initial version May 15, 2014
Modifier and Type | Field and Description |
---|---|
static ElectricalPotentialUnit |
ABVOLT
abvolt.
|
static ElectricalPotentialUnit |
GIGAVOLT
gigavolt.
|
static ElectricalPotentialUnit |
KILOVOLT
kilovolt.
|
static ElectricalPotentialUnit |
MEGAVOLT
megavolt.
|
static ElectricalPotentialUnit |
MICROVOLT
microvolt.
|
static ElectricalPotentialUnit |
MILLIVOLT
millivolt.
|
static ElectricalPotentialUnit |
NANOVOLT
nanovolt.
|
static ElectricalPotentialUnit |
SI
The SI unit for electrical potential is Volt.
|
static ElectricalPotentialUnit |
STATVOLT
statvolt.
|
static ElectricalPotentialUnit |
VOLT
Volt.
|
STANDARD_UNITS
Constructor and Description |
---|
ElectricalPotentialUnit(MassUnit massUnit,
LengthUnit lengthUnit,
ElectricalCurrentUnit electricalCurrentUnit,
DurationUnit durationUnit,
String name,
String abbreviation,
UnitSystem unitSystem)
Define a user-defined ElectricalPotentialUnit based on its constituent base units, e.g.
|
ElectricalPotentialUnit(PowerUnit powerUnit,
ElectricalCurrentUnit electricalCurrentUnit,
String name,
String abbreviation,
UnitSystem unitSystem)
Build a user-defined ElectricalPotentialUnit based on power divided by current (V=W/A).
|
ElectricalPotentialUnit(String name,
String abbreviation,
UnitSystem unitSystem,
ElectricalPotentialUnit referenceUnit,
double scaleFactorToReferenceUnit)
Build a user-defined ElectricalPotentialUnit with a conversion factor to another ElectricalPotentialUnit.
|
Modifier and Type | Method and Description |
---|---|
DurationUnit |
getDurationUnit() |
ElectricalCurrentUnit |
getElectricalCurrentUnit() |
LengthUnit |
getLengthUnit() |
MassUnit |
getMassUnit() |
String |
getSICoefficientsString() |
ElectricalPotentialUnit |
getStandardUnit() |
equals, equalsIgnoreNaming, getScale, getScaleFactor, hashCode
generateHashCode, getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getName, getNameKey, getSICoefficients, getUnits, getUnitSystem, isBaseSIUnit, isLocalizable, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toString
public static final ElectricalPotentialUnit SI
public static final ElectricalPotentialUnit VOLT
public static final ElectricalPotentialUnit NANOVOLT
public static final ElectricalPotentialUnit MICROVOLT
public static final ElectricalPotentialUnit MILLIVOLT
public static final ElectricalPotentialUnit KILOVOLT
public static final ElectricalPotentialUnit MEGAVOLT
public static final ElectricalPotentialUnit GIGAVOLT
public static final ElectricalPotentialUnit STATVOLT
public static final ElectricalPotentialUnit ABVOLT
public ElectricalPotentialUnit(MassUnit massUnit, LengthUnit lengthUnit, ElectricalCurrentUnit electricalCurrentUnit, DurationUnit durationUnit, String name, String abbreviation, UnitSystem unitSystem)
massUnit
- MassUnit; the unit of mass for the electrical potential difference (voltage) unit, e.g., kilogramlengthUnit
- LengthUnit; the unit of length for the electrical potential difference (voltage) unit, e.g., meterelectricalCurrentUnit
- ElectricalCurrentUnit; the unit of electrical current for the electrical potential
difference (voltage) unit, e.g., AmperedurationUnit
- DurationUnit; the unit of time for the electrical potential difference (voltage) unit, e.g., secondname
- String; the long name of the unitabbreviation
- String; the abbreviation of the unitunitSystem
- UnitSystem; the unit system, e.g. SI or Imperialpublic ElectricalPotentialUnit(PowerUnit powerUnit, ElectricalCurrentUnit electricalCurrentUnit, String name, String abbreviation, UnitSystem unitSystem)
powerUnit
- PowerUnit; the unit of power for the electrical potential difference (voltage) unit, e.g., WattelectricalCurrentUnit
- ElectricalCurrentUnit; the unit of electrical current for the electrical potential
difference (voltage) unit, e.g., Amperename
- String; the long name of the unitabbreviation
- String; the abbreviation of the unitunitSystem
- UnitSystem; the unit system, e.g. SI or Imperialpublic ElectricalPotentialUnit(String name, String abbreviation, UnitSystem unitSystem, ElectricalPotentialUnit referenceUnit, double scaleFactorToReferenceUnit)
name
- String; the long name of the unitabbreviation
- String; the abbreviation of the unitunitSystem
- UnitSystem; the unit system, e.g. SI or ImperialreferenceUnit
- ElectricalPotentialUnit; the unit to convert toscaleFactorToReferenceUnit
- double; multiply a value in this unit by the factor to convert to the given reference
unitpublic final MassUnit getMassUnit()
public final LengthUnit getLengthUnit()
public final ElectricalCurrentUnit getElectricalCurrentUnit()
public final DurationUnit getDurationUnit()
public final ElectricalPotentialUnit getStandardUnit()
getStandardUnit
in class Unit<ElectricalPotentialUnit>
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<ElectricalPotentialUnit>
Copyright © 2015–2019 Delft University of Technology. All rights reserved.