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 AnyQuantity[N] with Product with Serializable

Quantity.

Linear Supertypes
AnyQuantity[N], Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Quantity
  2. AnyQuantity
  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
    QuantityAnyQuantity
  5. def *(quantity: AnyQuantity[N])(implicit cm: CanMultiply[AnyMeasure, AnyMeasure, AnyMeasure]): AnyQuantity[N]

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

    Permalink

    Adds another quantity.

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

  7. def +(quantity: AnyQuantity[N])(implicit caq: CanAddAnyQuantity[N, AnyQuantity[N], AnyQuantity[N]], cc: CanConvert[AnyMeasure, AnyMeasure]): QR

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

    Permalink

    Subtracts another quantity.

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

  9. def -(quantity: AnyQuantity[N])(implicit caq: CanAddAnyQuantity[N, AnyQuantity[N], AnyQuantity[N]], cc: CanConvert[AnyMeasure, AnyMeasure]): QR

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

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

    Permalink
    Definition Classes
    QuantityAnyQuantity
  12. def /(quantity: AnyQuantity[N])(implicit cd: CanDivide[AnyMeasure, AnyMeasure, AnyMeasure]): AnyQuantity[N]

    Permalink
    Definition Classes
    AnyQuantity
  13. final def ==(arg0: Any): Boolean

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

    Permalink
  15. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  16. def canEqual(that: Any): Boolean

    Permalink
    Definition Classes
    AnyQuantity → Equals
  17. def clone(): AnyRef

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

    Permalink
    Definition Classes
    AnyRef
  19. def equals(obj: Any): Boolean

    Permalink
    Definition Classes
    AnyQuantity → Equals → AnyRef → Any
  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. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  24. val measure: M

    Permalink
    Definition Classes
    QuantityAnyQuantity
  25. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  28. val productArity: Int

    Permalink
    Definition Classes
    AnyQuantity → Product
  29. def productElement(n: Int): Any

    Permalink
    Definition Classes
    AnyQuantity → Product
  30. def simplify[R <: Measure[R]](implicit cs: CanSimplify[M, Option[R]]): Option[Quantity[N, R]]

    Permalink
  31. def simplify(implicit cs: CanSimplify[AnyMeasure, AnyMeasure]): AnyQuantity[N]

    Permalink
    Definition Classes
    AnyQuantity
  32. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
  34. def to(target: AnyMeasure)(implicit cc: CanConvert[AnyMeasure, AnyMeasure]): Option[AnyQuantity[N]]

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

    Permalink
  36. def toOrElse[B >: AnyQuantity[N]](target: AnyMeasure, default: B)(implicit cc: CanConvert[AnyMeasure, AnyMeasure]): B

    Permalink
    Definition Classes
    AnyQuantity
  37. def toString(): String

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

    Permalink
    Definition Classes
    QuantityAnyQuantity
  39. val value: N

    Permalink
    Definition Classes
    QuantityAnyQuantity
  40. final def wait(): Unit

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

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

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

Inherited from AnyQuantity[N]

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped