Show / Hide Table of Contents

Class UnitMan.Atom

Atomic UOM

Inheritance
System.Object
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:AeroGIS.Common
Assembly:cs.temp.dll.dll
Syntax
protected class Atom : IComparable<UnitMan.Atom>

Constructors

Atom(String, Int32)

Declaration
public Atom(string AnAtomicUOM, int APower)
Parameters
Type Name Description
System.String AnAtomicUOM
System.Int32 APower

Fields

AtomicUOM

Text label

Declaration
public string AtomicUOM
Field Value
Type Description
System.String

Exponent

Signed exponent of UOM in range 1..9. In practice exponents larger than 4 appears rarely.

Declaration
public int Exponent
Field Value
Type Description
System.Int32

Properties

Signature

Atomic UOM signature

Declaration
public string Signature { get; }
Property Value
Type Description
System.String

Methods

Abs(Int32)

Declaration
public static int Abs(int AnExponent)
Parameters
Type Name Description
System.Int32 AnExponent
Returns
Type Description
System.Int32

Abs(String)

Declaration
public static string Abs(string ASignature)
Parameters
Type Name Description
System.String ASignature
Returns
Type Description
System.String

CompareTo(UnitMan.Atom)

Sort order for atoms is: positive powers sorted by alphabet, negative powers sorted by alphabet. That provides the unique signatures for automatically composed UOMs.

Declaration
public int CompareTo(UnitMan.Atom other)
Parameters
Type Name Description
UnitMan.Atom other
Returns
Type Description
System.Int32
Implements
System.IComparable<T>.CompareTo(T)

Neg()

Declaration
public void Neg()
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX