Class

com.quantarray.skylark.measure

Quantity

Related Doc: package measure

Permalink

case class Quantity[N, M <: Measure[M]](value: N, measure: M)(implicit qn: QuasiNumeric[N]) extends measure.untyped.Quantity[N] with Product with Serializable

Quantity.

Linear Supertypes
untyped.Quantity[N], Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Quantity
  2. Quantity
  3. Serializable
  4. Serializable
  5. Product
  6. Equals
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Quantity(value: N, measure: M)(implicit qn: QuasiNumeric[N])

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def *[M2 <: Measure[M2], R <: Measure[R]](quantity: Quantity[N, M2])(implicit cm: CanMultiply[M, M2, R]): Quantity[N, R]

    Permalink
  4. def *(constant: Double): Quantity[N, M]

    Permalink
    Definition Classes
    QuantityQuantity
  5. def *(quantity: untyped.Quantity[N])(implicit cm: CanMultiply[untyped.Measure, untyped.Measure, untyped.Measure]): untyped.Quantity[N]

    Permalink
    Definition Classes
    Quantity
  6. def +[M2 <: Measure[M2], QR](quantity: Quantity[N, M2])(implicit caq: Aux[N, M, Quantity[N, M], M2, Quantity[N, M2], M, QR], cc1: CanConvert[M, M], cc2: CanConvert[M2, M]): (caq)#QR

    Permalink

    Adds another quantity.

    Adds another quantity. CanAdd instance allows addition of apples and oranges to obtain bananas.

  7. def +(constant: N): Quantity[N, M]

    Permalink
    Definition Classes
    QuantityQuantity
  8. def +[QR](quantity: untyped.Quantity[N])(implicit caq: untyped.CanAddQuantity[N, untyped.Quantity[N], untyped.Quantity[N]], cc: untyped.CanConvert[untyped.Measure, untyped.Measure]): QR

    Permalink
    Definition Classes
    Quantity
  9. def -[M2 <: Measure[M2], QR](quantity: Quantity[N, M2])(implicit caq: Aux[N, M, Quantity[N, M], M2, Quantity[N, M2], M, QR], cc1: CanConvert[M, M], cc2: CanConvert[M2, M]): (caq)#QR

    Permalink

    Subtracts another quantity.

    Subtracts another quantity. CanAdd instance allows addition of apples and oranges to obtain bananas.

  10. def -(constant: N): Quantity[N, M]

    Permalink
    Definition Classes
    QuantityQuantity
  11. def -[QR](quantity: untyped.Quantity[N])(implicit caq: untyped.CanAddQuantity[N, untyped.Quantity[N], untyped.Quantity[N]], cc: untyped.CanConvert[untyped.Measure, untyped.Measure]): QR

    Permalink
    Definition Classes
    Quantity
  12. def /[M2 <: Measure[M2], R <: Measure[R]](quantity: Quantity[N, M2])(implicit cd: CanDivide[M, M2, R]): Quantity[N, R]

    Permalink
  13. def /(constant: Double): Quantity[N, M]

    Permalink
    Definition Classes
    QuantityQuantity
  14. def /(quantity: untyped.Quantity[N])(implicit cd: CanDivide[untyped.Measure, untyped.Measure, untyped.Measure]): untyped.Quantity[N]

    Permalink
    Definition Classes
    Quantity
  15. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def ^[R <: Measure[R]](exponent: Double)(implicit ce: CanExponentiate[M, R]): Quantity[N, R]

    Permalink
  17. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    Any
  23. val measure: M

    Permalink
    Definition Classes
    QuantityQuantity
  24. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  27. implicit val qn: QuasiNumeric[N]

    Permalink
    Definition Classes
    QuantityQuantity
  28. def simplify[R <: Measure[R]](implicit cs: CanSimplify[M, Option[R]]): Option[Quantity[N, R]]

    Permalink
  29. def simplify(implicit cs: CanSimplify[untyped.Measure, untyped.Measure]): untyped.Quantity[N]

    Permalink
    Definition Classes
    Quantity
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def to[M2 <: Measure[M2]](target: M2)(implicit cc: CanConvert[M, M2]): Option[Quantity[N, M2]]

    Permalink
  32. def to(target: untyped.Measure)(implicit cc: untyped.CanConvert[untyped.Measure, untyped.Measure]): Option[untyped.Quantity[N]]

    Permalink
    Definition Classes
    Quantity
  33. def toOrElse[M2 <: Measure[M2], B >: Quantity[N, M2]](target: M2, default: B)(implicit cc: CanConvert[M, M2]): B

    Permalink
  34. def toOrElse[B >: untyped.Quantity[N]](target: untyped.Measure, default: B)(implicit cc: untyped.CanConvert[untyped.Measure, untyped.Measure]): B

    Permalink
    Definition Classes
    Quantity
  35. def toString(): String

    Permalink
    Definition Classes
    Quantity → AnyRef → Any
  36. def unary_-(): Quantity[N, M]

    Permalink
    Definition Classes
    QuantityQuantity
  37. val value: N

    Permalink
    Definition Classes
    QuantityQuantity
  38. final def wait(): Unit

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

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

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

Inherited from untyped.Quantity[N]

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped