Packages

t

squants

UnitOfMeasure

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

    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

    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

    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

    Symbol used when representing Quantities in this UnitOfMeasure

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def convertFrom[N](n: N)(implicit num: Numeric[N]): Double

    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

    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
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. def unapply(q: A): Some[Double]

    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
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped