All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gw.util.science.MagneticFluxDensityUnit.gs Maven / Gradle / Ivy

There is a newer version: 1.18.2
Show newest version
package gw.util.science
uses gw.util.Rational

final class MagneticFluxDensityUnit extends AbstractQuotientUnit {
  final static var CACHE: UnitCache = new UnitCache()

  public static var T: MagneticFluxDensityUnit = get( MagneticFluxUnit.BASE, AreaUnit.BASE, 1, "Tesla", "T" )

  public static var BASE: MagneticFluxDensityUnit = T

  static function get( magneticfluxUnit: MagneticFluxUnit, areaUnit: AreaUnit, factor: Rational = null, name: String = null, symbol: String = null ) : MagneticFluxDensityUnit {
    var unit = new MagneticFluxDensityUnit( magneticfluxUnit, areaUnit, factor, name, symbol )
    return CACHE.get( unit )
  }

  private construct( magneticfluxUnit: MagneticFluxUnit, areaUnit: AreaUnit, factor: Rational = null, name: String = null, symbol: String = null ) {
    super( magneticfluxUnit, areaUnit, factor, name, symbol )
  }

  property get MagneticFluxUnit() : MagneticFluxUnit {
    return LeftUnit 
  }
  property get AreaUnit() : AreaUnit {
    return RightUnit 
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy