Package edu.wpi.first.units
Class Current
public class Current extends Unit<Current>
Unit of electic current dimension.
This is the base type for units of current dimension. It is also used to specify the dimension
for Measure
: Measure<Current>
.
Actual units (such as Units.Amps
and Units.Milliamps
) can be found in the
Units
class.
-
Method Summary
Methods inherited from class edu.wpi.first.units.Unit
convertFrom, equals, equivalent, fromBaseUnits, getConverterFromBase, getConverterToBase, hashCode, mult, name, of, ofBaseUnits, one, per, per, symbol, toBaseUnits, toString, zero
-
Method Details
-
times
Constructs a unit of power equivalent to this unit of electrical current multiplied by another unit of voltage. For example,Amps.times(Volts)
will return a unit of power equivalent to one Watt;Amps.times(Millivolts)
will return a unit of power equivalent to a milliwatt, and so on.- Parameters:
voltage
- the voltage unit to multiply byname
- the name of the resulting unit of powersymbol
- the symbol used to represent the unit of power- Returns:
- the power unit
-