Trait

squants

Dimension

Related Doc: package squants

Permalink

trait Dimension[A <: Quantity[A]] extends AnyRef

Represents a Dimension or Quantity Type

This trait should be mixed into the Companion Objects of specific Quantity Types.

A

Quantity Type

Source
Dimension.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Dimension
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def name: String

    Permalink

    The name

  2. abstract def primaryUnit: UnitOfMeasure[A] with PrimaryUnit

    Permalink

    The unit with a conversions factor of 1.

    The unit with a conversions factor of 1. The conversionFactor for other units should be set relative to this unit.

  3. abstract def siUnit: UnitOfMeasure[A] with SiUnit

    Permalink

    The International System of Units (SI) Base Unit

  4. abstract def units: Set[UnitOfMeasure[A]]

    Permalink

    Set of available units

Concrete Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

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

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

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

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  15. def parse(value: Any): Try[A]

    Permalink

    Tries to map a string or tuple value to Quantity of this Dimension

    Tries to map a string or tuple value to Quantity of this Dimension

    value

    the source string (ie, "10 kW") or tuple (ie, (10, "kW"))

    returns

    Try[A]

    Attributes
    protected
  16. def parseString(s: String): Try[A]

    Permalink
  17. def parseTuple[N](t: (N, String))(implicit num: Numeric[N]): Try[A]

    Permalink
  18. def symbolToUnit(symbol: String): Option[UnitOfMeasure[A]]

    Permalink

    Maps a string representation of a unit symbol into the matching UnitOfMeasure object

    Maps a string representation of a unit symbol into the matching UnitOfMeasure object

    symbol

    String

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

    Permalink
    Definition Classes
    AnyRef
  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped