Class

com.quantarray.skylark.measure

Quantity

Related Doc: package measure

Permalink

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

Quantity.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Quantity
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. 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, R](quantity: Quantity[N, M2])(implicit cmq: CanMultiplyQuantity[N, M, Quantity, M2, Quantity, R]): QR

    Permalink

    Multiplies by another quantity.

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

    Permalink
  5. def +[M2](quantity: Option[Quantity[N, M2]])(implicit caq: CanAddQuantity[N, M, Quantity, M2, Option[Quantity[N, M2]], M], cc1: CanConvert[M, M], cc2: CanConvert[M2, M]): QR

    Permalink

    Adds another Option[Quantity].

    Adds another Option[Quantity]. CanAddQuantity instance allows addition of apples and oranges to obtain bananas.

  6. def +[M2](quantity: Quantity[N, M2])(implicit caq: CanAddQuantity[N, M, Quantity, M2, Quantity[N, M2], M], cc1: CanConvert[M, M], cc2: CanConvert[M2, M]): QR

    Permalink

    Adds another Quantity.

    Adds another Quantity. CanAddQuantity instance allows addition of apples and oranges to obtain bananas.

  7. def -[M2](quantity: Option[Quantity[N, M2]])(implicit caq: CanAddQuantity[N, M, Quantity, M2, Option[Quantity[N, M2]], M], cc1: CanConvert[M, M], cc2: CanConvert[M2, M]): QR

    Permalink

    Subtracts another Option[Quantity].

    Subtracts another Option[Quantity]. CanAddQuantity instance allows subtraction of apples and oranges to obtain bananas.

  8. def -[M2](quantity: Quantity[N, M2])(implicit caq: CanAddQuantity[N, M, Quantity, M2, Quantity[N, M2], M], cc1: CanConvert[M, M], cc2: CanConvert[M2, M]): QR

    Permalink

    Subtracts another Quantity.

    Subtracts another Quantity. CanAddQuantity instance allows subtraction of apples and oranges to obtain bananas.

  9. def /[M2, R](quantity: Quantity[N, M2])(implicit cdq: CanDivideQuantity[N, M, Quantity, M2, Quantity, R]): QR

    Permalink

    Divides by another quantity.

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

    Permalink
  11. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def ^[R](exponent: Double)(implicit ceq: CanExponentiateQuantity[N, M, Quantity, R]): QR

    Permalink

    Raises this quantity to expoenent.

  13. final def asInstanceOf[T0]: T0

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  19. val measure: M

    Permalink
  20. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  23. def simplify[R](implicit csq: CanSimplifyQuantity[N, M, Quantity, R]): QR

    Permalink
  24. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink

    Converts this quantity to another.

  26. def toOrElse[M2, B >: Quantity[N, M2]](target: M2, default: B)(implicit cc: CanConvert[M, M2]): B

    Permalink

    Convert this quantity to another or default.

    Convert this quantity to another or default.

    Annotations
    @inline()
  27. def toString(): String

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

    Permalink
  29. val value: N

    Permalink
  30. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped