C# 클래스 YAMP.Physics.PhysicalUnit

Represents an (in its essence elementary) physical unit.
파일 보기 프로젝트 열기: FlorianRappl/YAMP 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
CombinedUnits CombinedUnit>.Dictionary
KnownUnits PhysicalUnit>.Dictionary

공개 메소드들

메소드 설명
Add ( String target, Double rate ) : PhysicalUnit

Adds a conversion determined by y = a * x.

Add ( String target, Double rate, Double offset ) : PhysicalUnit

Adds a conversion determined by y = a * x + b.

CanBe ( String unit ) : System.Boolean
FindCombinedUnit ( String unit ) : CombinedUnit
FindUnit ( String unit ) : PhysicalUnit
GetConversion ( String unit ) : Double>.Func
GetInverseConversion ( String unit ) : Double>.Func
HasConversion ( String target ) : System.Boolean
IsCombinedUnit ( String unit ) : System.Boolean
TransformTo ( String unit ) : PhysicalUnit

보호된 메소드들

메소드 설명
Create ( ) : PhysicalUnit
GetWeight ( String unit ) : Double
SetPrefixes ( ) : void

비공개 메소드들

메소드 설명
Identity ( Double x ) : Double
PhysicalUnit ( ) : System

메소드 상세

Add() 공개 메소드

Adds a conversion determined by y = a * x.
public Add ( String target, Double rate ) : PhysicalUnit
target String The target unit, e.g. in m to yd, yd would be the target unit.
rate Double The rate of the conversion.
리턴 PhysicalUnit

Add() 공개 메소드

Adds a conversion determined by y = a * x + b.
public Add ( String target, Double rate, Double offset ) : PhysicalUnit
target String The target unit, e.g. in K to °C, °C would be the target unit.
rate Double The rate (a) of the conversion.
offset Double The offset (b) of the conversion.
리턴 PhysicalUnit

CanBe() 공개 메소드

public CanBe ( String unit ) : System.Boolean
unit String
리턴 System.Boolean

Create() 보호된 추상적인 메소드

protected abstract Create ( ) : PhysicalUnit
리턴 PhysicalUnit

FindCombinedUnit() 공개 정적인 메소드

public static FindCombinedUnit ( String unit ) : CombinedUnit
unit String
리턴 CombinedUnit

FindUnit() 공개 정적인 메소드

public static FindUnit ( String unit ) : PhysicalUnit
unit String
리턴 PhysicalUnit

GetConversion() 공개 메소드

public GetConversion ( String unit ) : Double>.Func
unit String
리턴 Double>.Func

GetInverseConversion() 공개 메소드

public GetInverseConversion ( String unit ) : Double>.Func
unit String
리턴 Double>.Func

GetWeight() 보호된 메소드

protected GetWeight ( String unit ) : Double
unit String
리턴 Double

HasConversion() 공개 메소드

public HasConversion ( String target ) : System.Boolean
target String
리턴 System.Boolean

IsCombinedUnit() 공개 정적인 메소드

public static IsCombinedUnit ( String unit ) : System.Boolean
unit String
리턴 System.Boolean

SetPrefixes() 보호된 메소드

protected SetPrefixes ( ) : void
리턴 void

TransformTo() 공개 메소드

public TransformTo ( String unit ) : PhysicalUnit
unit String
리턴 PhysicalUnit

프로퍼티 상세

CombinedUnits 보호되어 있는 정적으로 프로퍼티

protected static Dictionary CombinedUnits
리턴 CombinedUnit>.Dictionary

KnownUnits 보호되어 있는 정적으로 프로퍼티

protected static Dictionary KnownUnits
리턴 PhysicalUnit>.Dictionary