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

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

  public static var BASE: HeatCapacityUnit = get( EnergyUnit.BASE, TemperatureUnit.BASE )

  static function get( energyUnit: EnergyUnit, temperatureUnit: TemperatureUnit, factor: Rational = null, name: String = null, symbol: String = null ) : HeatCapacityUnit {
    var unit = new HeatCapacityUnit( energyUnit, temperatureUnit, factor, name, symbol )
    return CACHE.get( unit )
  }
  
  private construct( energyUnit: EnergyUnit, temperatureUnit: TemperatureUnit, factor: Rational = null, name: String = null, symbol: String = null ) {
    super( energyUnit, temperatureUnit, factor, name, symbol )
  }
  
  property get EnergyUnit() : EnergyUnit {
    return LeftUnit 
  }
  property get TemperatureUnit() : TemperatureUnit {
    return RightUnit 
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy