C# Class CSMSL.Chemistry.PeriodicTable

The Periodic Table of Elements.
Afficher le fichier Open project: dbaileychess/CSMSL Class Usage Examples

Méthodes publiques

Свойство Type Description
UserPerodicTablePath string

Méthodes publiques

Méthode Description
AddElement ( Element element ) : bool

Adds an element to this periodic table if the element atomic symbol is not already present. Overrides an element if the symbol is already present.

GetElement ( string element ) : Element
GetIsotope ( string element, int atomicNumber ) : Isotope
Load ( ) : void
Load ( string filePath ) : void

Load a xml file containing elemental and isotopic data into the periodic table

RestoreDefaults ( ) : void
Save ( ) : void
SaveTo ( string filePath ) : void
TryGetElement ( string elementSymbol, Element &element ) : bool

Private Methods

Méthode Description
GetIsotope ( int uniqueId ) : Isotope

Get an isotope based on its unique isotope id

PeriodicTable ( ) : System

Method Details

AddElement() public static méthode

Adds an element to this periodic table if the element atomic symbol is not already present. Overrides an element if the symbol is already present.
public static AddElement ( Element element ) : bool
element Element The element to add to the periodic table
Résultat bool

GetElement() public static méthode

public static GetElement ( string element ) : Element
element string
Résultat Element

GetIsotope() public static méthode

public static GetIsotope ( string element, int atomicNumber ) : Isotope
element string
atomicNumber int
Résultat Isotope

Load() public static méthode

public static Load ( ) : void
Résultat void

Load() public static méthode

Load a xml file containing elemental and isotopic data into the periodic table
public static Load ( string filePath ) : void
filePath string
Résultat void

RestoreDefaults() public static méthode

public static RestoreDefaults ( ) : void
Résultat void

Save() public static méthode

public static Save ( ) : void
Résultat void

SaveTo() public static méthode

public static SaveTo ( string filePath ) : void
filePath string
Résultat void

TryGetElement() public static méthode

public static TryGetElement ( string elementSymbol, Element &element ) : bool
elementSymbol string
element Element
Résultat bool

Property Details

UserPerodicTablePath public_oe static_oe property

public static string UserPerodicTablePath
Résultat string