Knot Class

Represents a knot, or nautical mile per hour, a unit of Speed in the English System.

Definition

Namespace: InnerDrive.Quantitative.Units
Assembly: InnerDrive.Quantitative (in InnerDrive.Quantitative.dll) Version: 5.2.9017.0
C#
[SerializableAttribute]
[EnglishAttribute]
public class Knot : Unit
Inheritance
Object    Unit    Knot

Remarks

This class is represented separately from a DistanceOverTime instance with MileNautical and Hour constituents, because it is useful to have separate identifiers and symbols for "knot".

Therefore, this class serves as an example of how the Inner Drive Extensible Architecture can be extended easily.

Note: The conversion factors in this class are based on the International nautical mile, equal to 1,852 meters exactly, which is not the same as 6,072 survey feet. This means that conversions between DistanceOverTime measurements using MileNautical and other English Length units will return different results than conversions between this unit and any DistanceOverTime units. See the discussion on MileNautical for more information.

Defined conversions:

Target unitFactor
DistanceOverTime(1 852/3 600)
Knot1

Constructors

Knot Creates a new instance of Knot.

Properties

AppliesTo Gets the Type of measurement that this Unit applies to.
(Inherited from Unit)
BaseFormat Gets the default format for displaying quantities of the unit.
(Inherited from Unit)
Conversions Provides the list of conversion factors for this Unit to the ConversionCache.
(Inherited from Unit)
Dimensions Gets the number of dimensions this Unit represents.
(Inherited from Unit)
Name Gets the name of the Unit.
(Inherited from Unit)
NamePlural Gets the name of the Unit when it represents any quantity other than 1.
(Inherited from Unit)
Symbol Gets the symbol or abbreviation of the Unit.
(Inherited from Unit)

Methods

CreateConversionList When implemented in derived classes, causes the Unit to assemble its list of conversion factors to other units.
(Overrides UnitCreateConversionList)
Equals Determines whether the specified Object is equal to the current Unit.
(Inherited from Unit)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Unit)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToString Gets the String representation of this Unit.
(Inherited from Unit)

See Also