C# Class Physics.UnitSystem

Inheritance: IUnitSystem
Datei anzeigen Open project: Tsjunne/Physics

Private Properties

Property Type Description
CreateNewBaseDimension Physics.Dimension
EnsureUnitIsNotRegistered void
IEnumerable IEnumerator
RegisterKnownUnit void
UnitSystem System

Public Methods

Method Description
AddBaseUnit ( string symbol, string name, bool inherentPrefix = false ) : Unit
AddDerivedUnit ( string symbol, string name, Unit unit ) : Unit
CreateUnit ( double factor, Physics.Dimension dimension ) : Unit
Display ( Unit unit ) : string
GetEnumerator ( ) : IEnumerator
MakeCoherent ( Quantity quantity ) : Quantity
Parse ( string unitExpression ) : Unit
UnitSystem ( string name ) : System
UnitSystem ( string name, IUnitDialect dialect ) : System
this ( string key ) : Physics.KnownUnit

Private Methods

Method Description
CreateNewBaseDimension ( int index ) : Physics.Dimension
EnsureUnitIsNotRegistered ( Physics.KnownUnit unit ) : void
IEnumerable ( ) : IEnumerator
RegisterKnownUnit ( Physics.KnownUnit unit ) : void
UnitSystem ( string name, IUnitFactory unitFactory, IUnitDialect dialect ) : System

Method Details

AddBaseUnit() public method

public AddBaseUnit ( string symbol, string name, bool inherentPrefix = false ) : Unit
symbol string
name string
inherentPrefix bool
return Unit

AddDerivedUnit() public method

public AddDerivedUnit ( string symbol, string name, Unit unit ) : Unit
symbol string
name string
unit Unit
return Unit

CreateUnit() public method

public CreateUnit ( double factor, Physics.Dimension dimension ) : Unit
factor double
dimension Physics.Dimension
return Unit

Display() public method

public Display ( Unit unit ) : string
unit Unit
return string

GetEnumerator() public method

public GetEnumerator ( ) : IEnumerator
return IEnumerator

MakeCoherent() public method

public MakeCoherent ( Quantity quantity ) : Quantity
quantity Quantity
return Quantity

Parse() public method

public Parse ( string unitExpression ) : Unit
unitExpression string
return Unit

UnitSystem() public method

public UnitSystem ( string name ) : System
name string
return System

UnitSystem() public method

public UnitSystem ( string name, IUnitDialect dialect ) : System
name string
dialect IUnitDialect
return System

this() public method

public this ( string key ) : Physics.KnownUnit
key string
return Physics.KnownUnit