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 one 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
- Alphabetic
- By Inheritance
- UnitOfMeasure
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
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
-
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
-
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
-
abstract
def
symbol: String
Symbol used when representing Quantities in this UnitOfMeasure
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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]
-
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 the ValueUnit
- num
Numeric[N]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()