Extends BaseQuantity by including the default and override units and conversion methods between units
More...
|
| Quantity (XmlNode node) |
|
| Quantity (string name, string displayName, string format, string defaultUnit, string overrideUnit) |
|
override double | ConvertFromDefaultToOverride (double valueToConvert) |
| Conversion from default unit of the group (not necessarily SI) to override unit of the group More...
|
|
override double | ConvertFromDefaultToSpecific (double valueToConvert, string unit) |
| Conversion from default unit of the group (not necesseraly SI) to a different unit of the same group More...
|
|
override double | ConvertFromOverrideToDefault (double valueToConvert) |
| Conversion from override to default unit of the group (not necesseraly SI) More...
|
|
bool | DefaultOnlyEquals (BaseQuantity obj) |
|
override bool | Equals (object obj) |
|
override int | GetHashCode () |
|
virtual void | OnEvent () |
|
override string | ToString () |
|
delegate void | UnitChangedDelegate () |
|
|
List< string > | MemberUnits = new List<string>() |
|
string | format = "" |
| Used to visualize parameters of this group with the number of significant digits specified. This attribute is used with ToString methods. Possible value=0.000 More...
|
|
UnitChangedDelegate | UnitChanged |
| Occurs when the overrideUnit changes. More...
|
|
|
override string | Abbrev [get] |
|
Unit | DefaultUnit [get, set] |
|
override string | DefaultUnitAbbrev [get] |
|
override string | DisplayUnitStr [get] |
|
Unit | OverrideUnit [get, set] |
|
override string | SIUnitStr [get] |
|
abstract string | Abbrev [get] |
|
abstract string | DefaultUnitAbbrev [get] |
|
string | DisplayName [get, set] |
|
abstract string | DisplayUnitStr [get] |
|
string | Name [get, set] |
|
abstract string | SIUnitStr [get] |
|
UnitChangedDelegate | UnitChangedEvent |
|
string | DisplayUnitStr [get] |
| The prefered unit used for this group in order to represent a value on the user interface More...
|
|
string | Name [get] |
| Unique name of the unit group More...
|
|
string | SIUnitStr [get] |
| The default unit used for this group in SI unit. This is the unit that is used across the calculations More...
|
|
|
| BaseQuantity (XmlNode node) |
|
Extends BaseQuantity by including the default and override units and conversion methods between units
override double Greet.UnitLib.Quantity.ConvertFromDefaultToOverride |
( |
double |
valueToConvert | ) |
|
|
virtual |
Conversion from default unit of the group (not necessarily SI) to override unit of the group
- Parameters
-
valueToConvert | quantity assumed to be in default units |
- Returns
- Value in the override unit of the group
Implements Greet.UnitLib.BaseQuantity.
override double Greet.UnitLib.Quantity.ConvertFromDefaultToSpecific |
( |
double |
valueToConvert, |
|
|
string |
unit |
|
) |
| |
|
virtual |
Conversion from default unit of the group (not necesseraly SI) to a different unit of the same group
- Parameters
-
valueToConvert | quantity assumed to be in default units |
unit | name of the unit to convert to |
- Returns
- Value in the unit specified
Implements Greet.UnitLib.BaseQuantity.
override double Greet.UnitLib.Quantity.ConvertFromOverrideToDefault |
( |
double |
valueToConvert | ) |
|
|
virtual |
Conversion from override to default unit of the group (not necesseraly SI)
- Parameters
-
valueToConvert | quantity assumed to be in override units |
- Returns
- Value in the default unit of the group
Implements Greet.UnitLib.BaseQuantity.
The documentation for this class was generated from the following file:
- C:/Users/ddieffenthaler/Desktop/SVN/source/greet-dev/main/Lib/UnitLib/Quantity.cs