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

gw.util.science.ConductanceUnit.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 ConductanceUnit extends AbstractQuotientUnit {
  final static var CACHE: UnitCache = new UnitCache()

  public static var S: ConductanceUnit = get( CurrentUnit.BASE, PotentialUnit.BASE, 1, "Siemens", "S" )

  public static var BASE: ConductanceUnit = S

  static function get( currentUnit: CurrentUnit, potentialUnit: PotentialUnit, factor: Rational = null, name: String = null, symbol: String = null ) : ConductanceUnit {
    var unit = new ConductanceUnit( currentUnit, potentialUnit, factor, name, symbol )
    return CACHE.get( unit )
  }

  private construct( currentUnit: CurrentUnit, potentialUnit: PotentialUnit, factor: Rational = null, name: String = null, symbol: String = null ) {
    super( currentUnit, potentialUnit, factor, name, symbol )
  }

  property get CurrentUnit() : CurrentUnit {
    return LeftUnit 
  }
  property get PotentialUnit() : PotentialUnit {
    return RightUnit 
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy