public class ElectricalPotentialUnit extends LinearUnit<ElectricalPotentialUnit>
Copyright (c) 2015-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2018-01-28 03:17:44 +0100 (Sun, 28 Jan 2018) $, @version $Revision: 256 $, 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
- the unit of mass for the electrical potential difference (voltage) unit, e.g., kilogramlengthUnit
- the unit of length for the electrical potential difference (voltage) unit, e.g., meterelectricalCurrentUnit
- the unit of electrical current for the electrical potential difference (voltage) unit, e.g.,
AmperedurationUnit
- the unit of time for the electrical potential difference (voltage) unit, e.g., secondname
- the long name of the unitabbreviation
- the abbreviation of the unitunitSystem
- the unit system, e.g. SI or Imperialpublic ElectricalPotentialUnit(PowerUnit powerUnit, ElectricalCurrentUnit electricalCurrentUnit, String name, String abbreviation, UnitSystem unitSystem)
powerUnit
- the unit of power for the electrical potential difference (voltage) unit, e.g., WattelectricalCurrentUnit
- the unit of electrical current for the electrical potential difference (voltage) unit, e.g.,
Amperename
- the long name of the unitabbreviation
- the abbreviation of the unitunitSystem
- the unit system, e.g. SI or Imperialpublic ElectricalPotentialUnit(String name, String abbreviation, UnitSystem unitSystem, ElectricalPotentialUnit referenceUnit, double scaleFactorToReferenceUnit)
name
- the long name of the unitabbreviation
- the abbreviation of the unitunitSystem
- the unit system, e.g. SI or ImperialreferenceUnit
- the unit to convert toscaleFactorToReferenceUnit
- 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–2018 Delft University of Technology. All rights reserved.