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: Quantity[N, M2])(implicit caq: CanAddQuantity[N, M, Quantity, M2, Quantity, 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.

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

    Permalink

    Subtracts another quantity.

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

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

    Permalink

    Divides by another quantity.

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

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

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

    Permalink

    Raises this quantity to expoenent.

  11. final def asInstanceOf[T0]: T0

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  17. val measure: M

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

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

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

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

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

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

    Permalink

    Converts this quantity to another.

  24. 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()
  25. def toString(): String

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

    Permalink
  27. val value: N

    Permalink
  28. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. 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