Packages

  • package root
    Definition Classes
    root
  • package lucuma
    Definition Classes
    root
  • package core
    Definition Classes
    lucuma
  • package math

    Mathematical data types for general use, not specific to the Gem model.

    Mathematical data types for general use, not specific to the Gem model.

    Definition Classes
    core
  • package dimensional
    Definition Classes
    math
  • BaseUnitDef
  • DerivedUnitDef
  • Measure
  • QuantityOps
  • TaggedUnit
  • UnitOfMeasure
  • UnitStringDef
  • Units
  • package parser

    Package of atto parsers, for parsing things in the science model.

    Package of atto parsers, for parsing things in the science model. The idea here is that parsers compose, so for internal use it's nice to have them together and so we can share implementations. In end-user code we normally want to expose something weaker like String => Option[A] that delegates to a parser, rather than exposing Parser[A] directly. Each set of parsers is provided as a trait that can be extended and as a module whose members can be imported (preferred).

    Definition Classes
    math
  • package skycalc
    Definition Classes
    math
  • package syntax
    Definition Classes
    math
p

lucuma.core.math

dimensional

package dimensional

Source
package.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. dimensional
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final case class Measure[N](value: N, units: Units, error: Option[N] = none) extends Product with Serializable

    A magnitude of type N and a runtime representation of a physical unit.

  2. type Of[+T, U] = T with Tagged[U]
  3. implicit class QuantityOps[N, U] extends AnyRef
  4. class TaggedUnit[U, T] extends Tag[UnitOfMeasure[U], T]

    Typeclass placing a Tag on a unit of measure.

  5. final case class UnitOfMeasure[U](name: String, abbv: String, serialized: String) extends Units with Product with Serializable

    Type-parametrized runtime representation of physical unit U.

    Type-parametrized runtime representation of physical unit U.

    Can be automatically derived if there's an implicit BaseUnit[U] or DerivedUnit[U, _] in scope.

  6. final case class UnitStringDef[U](full: String, abbv: String, serialized: String) extends UnitString[U] with TypeString[U] with Product with Serializable

    Convenience class to create a coulomb UnitString and TypeString in one go.

  7. trait Units extends AnyRef

    Runtime representation of a physical unit.

    Runtime representation of a physical unit. Wraps:

    • A type (usually phantom), meant to be coulomb's type for the unit; and
    • A UnitDefinition, which is a common trait of coulomb's BaseUnit and DerivedUnit.

    In coulomb units are types. However in some cases we want to have runtime representations of units.

Value Members

  1. implicit def typeStringFromUnitString[U](implicit ev: UnitString[U]): TypeString[U]
  2. object BaseUnitDef
  3. object DerivedUnitDef
  4. object Measure extends Serializable
  5. object UnitOfMeasure extends Serializable
  6. object UnitStringDef extends Serializable
  7. object Units

Inherited from AnyRef

Inherited from Any

Ungrouped