Trait

com.quantarray.skylark.measure

Measure

Related Doc: package measure

Permalink

trait Measure[Self <: Measure[Self]] extends measure.untyped.Measure

Measure.

The guiding principle(s) of design is and should be:

1. Construction of a measure should be fast, without any recursion/iteration to perform simplification. 2. Compute-intensive methods, such as simplify, perform simplification and should be called only when necessary.

Self Type
Self
Linear Supertypes
untyped.Measure, Dynamic, Serializable, Serializable, Product, Equals, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Measure
  2. Measure
  3. Dynamic
  4. Serializable
  5. Serializable
  6. Product
  7. Equals
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract type D <: Dimension[Self.D]

    Permalink

Abstract Value Members

  1. abstract def base: Option[(Self, Double)]

    Permalink
  2. abstract def canEqual(that: Any): Boolean

    Permalink
    Definition Classes
    Equals
  3. abstract def composes(name: String, system: SystemOfUnits, multiple: Double): Self

    Permalink
  4. abstract def dimension: Self.D

    Permalink

    Gets dimension of this measure.

    Gets dimension of this measure.

    Definition Classes
    MeasureMeasure
  5. abstract def name: String

    Permalink

    Measure name.

    Measure name.

    Definition Classes
    Measure
  6. abstract def productArity: Int

    Permalink
    Definition Classes
    Product
  7. abstract def productElement(n: Int): Any

    Permalink
    Definition Classes
    Product
  8. abstract def system: SystemOfUnits

    Permalink

    Gets system of units.

    Gets system of units.

    Definition Classes
    Measure

Concrete 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](multiplier: M2)(implicit cm: CanMultiply[Self, M2, R]): R

    Permalink

    Turns this measure into a general ProductMeasure.

  4. def *(measure: untyped.Measure)(implicit cm: CanMultiply[untyped.Measure, untyped.Measure, untyped.Measure]): untyped.Measure

    Permalink
    Definition Classes
    Measure
  5. def /[M2 <: Measure[M2], R](denominator: M2)(implicit cd: CanDivide[Self, M2, R]): R

    Permalink

    Turns this measure into a general RatioMeasure.

  6. def /(measure: untyped.Measure)(implicit cm: CanDivide[untyped.Measure, untyped.Measure, untyped.Measure]): untyped.Measure

    Permalink
    Definition Classes
    Measure
  7. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def ^[R <: Measure[R]](exponent: Double)(implicit ce: CanExponentiate[Self, R]): R

    Permalink

    Turns this measure into a general ExponentialMeasure.

  9. def ^(exponent: Double)(implicit ce: CanExponentiate[untyped.Measure, untyped.Measure]): untyped.Measure

    Permalink
    Definition Classes
    Measure
  10. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def collect[B](pf: PartialFunction[untyped.Measure, B]): B

    Permalink
    Definition Classes
    Measure
    Annotations
    @inline()
  13. def composes(name: String, multiple: Double): Self

    Permalink
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def exponent: Double

    Permalink

    Gets exponent of this measure.

    Gets exponent of this measure.

    Definition Classes
    Measure
  17. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. lazy val immediateBase: Double

    Permalink
  21. def inverse[R <: Measure[R]](implicit ce: CanExponentiate[Self, R]): R

    Permalink

    Gets an inverse of this measure.

  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def isStructuralAtom: Boolean

    Permalink

    Determines if this measure can be decomposed into constituent measures.

    Determines if this measure can be decomposed into constituent measures.

    Definition Classes
    Measure
  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. def productIterator: Iterator[Any]

    Permalink
    Definition Classes
    Product
  28. def productPrefix: String

    Permalink
    Definition Classes
    Product
  29. def simplify[R <: Measure[R]](implicit cs: CanSimplify[Self, Option[R]]): Option[R]

    Permalink

    Attempts to simplify to target type.

  30. def simplify(implicit cs: CanSimplify[untyped.Measure, untyped.Measure]): untyped.Measure

    Permalink
    Definition Classes
    Measure
  31. final def structuralName: String

    Permalink

    Gets structural name of this measure.

    Gets structural name of this measure.

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

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

    Permalink

    Converts to target measure.

  34. def to(target: untyped.Measure)(implicit cc: CanConvert[untyped.Measure, untyped.Measure]): Option[Double]

    Permalink
    Definition Classes
    Measure
  35. def toOrElse[M2 <: Measure[M2]](target: M2, default: Double)(implicit cc: CanConvert[Self, M2]): Double

    Permalink

    Converts to target measure with default value.

  36. def toOrElse(target: untyped.Measure, default: Double)(implicit cc: CanConvert[untyped.Measure, untyped.Measure]): Double

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

    Permalink
    Definition Classes
    AnyRef → Any
  38. lazy val ultimateBase: Option[(Self, Double)]

    Permalink

    Gets ultimate base.

    Gets ultimate base.

    Definition Classes
    MeasureMeasure
  39. final def wait(): Unit

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

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

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

Inherited from untyped.Measure

Inherited from Dynamic

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped