Trait

squants

UnitOfMeasure

Related Doc: package squants

Permalink

trait UnitOfMeasure[A <: Quantity[A]] extends Serializable

A Unit of Measure is used to define the scale of a quantity measurement

Each Quantity Dimension must include at least one Unit of Measure, and one and only Primary. Other units of measure are defined with conversionFactors relative to the Primary.

A

The type of Quantity being measured

Source
UnitOfMeasure.scala
Since

0.1

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Known Subclasses
ARS, AUD, Abcoulombs, AccelerationUnit, AcreFeet, Acres, AmpereHours, Amperes, AngleUnit, Angstroms, AngularVelocityUnit, Arcminutes, Arcseconds, AreaDensityUnit, AreaUnit, AstronomicalUnits, BRL, BTC, Barnes, Bars, BarsPerSecond, BritishThermalUnits, BtusPerHour, Bytes, BytesPerSecond, CAD, CHF, CLP, CNY, CZK, Candelas, CandelasPerSquareMeter, CapacitanceUnit, Carats, Celsius, Centilitres, Centimeters, ChemicalAmountUnit, ConductivityUnit, Coulombs, CubicFeet, CubicFeetPerHour, CubicInches, CubicMeters, CubicMetersPerSecond, CubicUsMiles, CubicYards, Currency, DKK, DataRateUnit, Days, Decameters, Decilitres, Decimeters, Degrees, DegreesPerSecond, DensityUnit, DimensionlessUnit, Dozen, EUR, Each, EarthGravities, ElectricChargeUnit, ElectricCurrentUnit, ElectricPotentialUnit, ElectricalConductanceUnit, ElectricalResistanceUnit, EnergyDensityUnit, EnergyUnit, Ergs, ErgsPerSecond, ErgsPerSecondPerSquareCentimeter, ErgsPerSecondPerSquareCentimeterPerAngstrom, Exabytes, ExabytesPerSecond, Exbibytes, ExbibytesPerSecond, Fahrenheit, Farads, Feet, FeetPerSecond, FeetPerSecondCubed, FeetPerSecondSquared, FluidOunces, ForceUnit, FrequencyUnit, GBP, GallonsPerDay, GallonsPerHour, GallonsPerMinute, GallonsPerSecond, Gauss, Gibibytes, GibibytesPerSecond, Gigabytes, GigabytesPerSecond, Gigahertz, Gigajoules, GigawattHours, Gigawatts, GigawattsPerHour, Gigohms, Gradians, GradsPerSecond, Grams, GramsPerSquareCentimeter, Grays, Gross, HKD, Hectares, Hectolitres, Hectometers, Henry, Hertz, Hours, INR, IlluminanceUnit, ImperialCups, ImperialGallons, ImperialPints, ImperialQuarts, Inches, InductanceUnit, InformationUnit, InternationalMiles, InternationalMilesPerHour, IrradianceUnit, JPY, JerkUnit, Joules, JoulesPerCubicMeter, JoulesPerKelvin, KRW, Kelvin, Kibibytes, KibibytesPerSecond, Kilobytes, KilobytesPerSecond, Kilofarads, KilogramForce, Kilograms, KilogramsPerCubicMeter, KilogramsPerHectare, KilogramsPerSecond, KilogramsPerSquareMeter, Kilohertz, Kilohms, Kilojoules, Kilometers, KilometersPerHour, KilometersPerSecond, Kilopounds, KilopoundsPerHour, Kilovolts, KilowattHours, Kilowatts, KilowattsPerHour, KilowattsPerMinute, Knots, LengthUnit, LightYears, Litres, LumenSeconds, Lumens, LuminanceUnit, LuminousEnergyUnit, LuminousExposureUnit, LuminousFluxUnit, LuminousIntensityUnit, Lux, LuxSeconds, MBtus, MMBtus, MXN, MYR, MagneticFluxDensityUnit, MagneticFluxUnit, MassFlowUnit, MassUnit, Mebibytes, MebibytesPerSecond, Megabytes, MegabytesPerSecond, Megahertz, Megajoules, Megapounds, MegapoundsPerHour, Megavolts, MegawattHours, Megawatts, MegawattsPerHour, Megohms, Meters, MetersPerSecond, MetersPerSecondCubed, MetersPerSecondSquared, Microcoulombs, Microfarads, Micrograms, Microjoules, Microlitres, Microns, Microohms, Microseconds, Microvolts, MilliampereHours, MilliampereSeconds, Milliamperes, Millicoulombs, Millifarads, Milligrams, Millijoules, Millilitres, Millimeters, Milliohms, Milliseconds, Millivolts, Milliwatts, Minutes, Moles, MomentumUnit, NOK, NZD, Nanocoulombs, Nanofarads, Nanohms, Nanojoules, Nanolitres, Nanometers, Nanoseconds, NauticalMiles, NewtonSeconds, Newtons, NewtonsPerSecond, Octets, OhmMeters, Ohms, Ounces, Pascals, PascalsPerSecond, Pebibytes, PebibytesPerSecond, Pennyweights, Percent, Petabytes, PetabytesPerSecond, Picocoulombs, Picofarads, Picojoules, PoundForce, PoundMoles, Pounds, PoundsPerHour, PoundsPerSecond, PoundsPerSquareInch, PoundsPerSquareInchPerSecond, PowerRampUnit, PowerUnit, PressureChangeUnit, PressureUnit, RUB, RadianceUnit, Radians, RadiansPerSecond, RadiantIntensityUnit, Rankine, ResistivityUnit, RevolutionsPerMinute, SEK, Score, Seconds, Siemens, SiemensPerMeter, SolidAngleUnit, SpecificEnergyUnit, SpectralIntensityUnit, SpectralIrradianceUnit, SpectralPowerUnit, SquareCentimeters, SquareFeet, SquareInches, SquareKilometers, SquareMeters, SquareUsMiles, SquareYards, SquaredRadians, StandardAtmospheres, StandardAtmospheresPerSecond, Stone, Tablespoons, Teaspoons, Tebibytes, TebibytesPerSecond, TemperatureScale, Terabytes, TerabytesPerSecond, Terahertz, Terajoules, Teslas, ThermalCapacityUnit, TimeUnit, Tolas, Tonnes, TroyGrains, TroyOunces, TroyPounds, Turns, TurnsPerSecond, USD, UsCups, UsDryCups, UsDryGallons, UsDryPints, UsDryQuarts, UsGallons, UsMiles, UsMilesPerHour, UsMilesPerHourSquared, UsPints, UsQuarts, VelocityUnit, Volts, VolumeFlowRateUnit, VolumeUnit, WattHours, Watts, WattsPerCubicMeter, WattsPerHour, WattsPerMeter, WattsPerMinute, WattsPerSquareMeter, WattsPerSquareMeterPerMicron, WattsPerSquareMeterPerNanometer, WattsPerSteradian, WattsPerSteradianPerMeter, WattsPerSteradianPerSquareMeter, Webers, XAG, XAU, YankUnit, Yards, Yobibytes, YobibytesPerSecond, Yottabytes, YottabytesPerSecond, Zebibytes, ZebibytesPerSecond, Zettabytes, ZettabytesPerSecond
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UnitOfMeasure
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def apply[N](n: N)(implicit num: Numeric[N]): A

    Permalink

    Factory method for creating instances of a Quantity in this UnitOfMeasure

    Factory method for creating instances of a Quantity in this UnitOfMeasure

    n

    N - the Quantity's value in terms of this UnitOfMeasure

  2. abstract def converterFrom: (Double) ⇒ Double

    Permalink

    Defines a signature for converting a quantity from this UOM to the Value UOM

    Defines a signature for converting a quantity from this UOM to the Value UOM

    Attributes
    protected
  3. abstract def converterTo: (Double) ⇒ Double

    Permalink

    Defines a signature for converting a quantity to this UOM from the Value UOM

    Defines a signature for converting a quantity to this UOM from the Value UOM

    Attributes
    protected
  4. abstract def symbol: String

    Permalink

    Symbol used when representing Quantities in this UnitOfMeasure

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def convertFrom[N](n: N)(implicit num: Numeric[N]): Double

    Permalink

    Applies the converterFrom method to a value

    Applies the converterFrom method to a value

    N

    Type

    n

    N value in terms of this Unit

    num

    Numeric[N]

  7. final def convertTo[N](n: N)(implicit num: Numeric[N]): Double

    Permalink

    Applies the converterTo method to a value

    Applies the converterTo method to a value

    N

    Type

    n

    N value in terms of teh ValueUnit

    num

    Numeric[N]

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  19. def unapply(q: A): Some[Double]

    Permalink

    Extractor method for getting the Numeric value of a Quantity in this UnitOfMeasure

    Extractor method for getting the Numeric value of a Quantity in this UnitOfMeasure

    q

    A - The Quantity being matched

  20. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped