gw.util.science.MagneticFluxUnit.gs Maven / Gradle / Ivy
package gw.util.science
uses gw.util.Rational
final class MagneticFluxUnit extends AbstractQuotientUnit {
final static var CACHE: UnitCache = new UnitCache()
public static var Wb: MagneticFluxUnit = get( EnergyUnit.BASE, CurrentUnit.BASE, 1, "Weber", "Wb" )
public static var BASE: MagneticFluxUnit = Wb
static function get( energyUnit: EnergyUnit, currentUnit: CurrentUnit, factor: Rational = null, name: String = null, symbol: String = null ) : MagneticFluxUnit {
var unit = new MagneticFluxUnit( energyUnit, currentUnit, factor, name, symbol )
return CACHE.get( unit )
}
private construct( energyUnit: EnergyUnit, currentUnit: CurrentUnit, factor: Rational = null, name: String = null, symbol: String = null ) {
super( energyUnit, currentUnit, factor, name, symbol )
}
property get EnergyUnit() : EnergyUnit {
return LeftUnit
}
property get CurrentUnit() : CurrentUnit {
return RightUnit
}
function divide( area: AreaUnit ) : MagneticFluxDensityUnit {
return MagneticFluxDensityUnit.get( this, area )
}
function divide( mf: MagneticFluxDensityUnit ) : AreaUnit {
return mf.AreaUnit
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy