C# Class CSMSL.Chemistry.PeriodicTable

The Periodic Table of Elements.
Show file Open project: dbaileychess/CSMSL Class Usage Examples

Public Properties

Property Type Description
UserPerodicTablePath string

Public Methods

Method 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

Method Description
GetIsotope ( int uniqueId ) : Isotope

Get an isotope based on its unique isotope id

PeriodicTable ( ) : System

Method Details

AddElement() public static method

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
return bool

GetElement() public static method

public static GetElement ( string element ) : Element
element string
return Element

GetIsotope() public static method

public static GetIsotope ( string element, int atomicNumber ) : Isotope
element string
atomicNumber int
return Isotope

Load() public static method

public static Load ( ) : void
return void

Load() public static method

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

RestoreDefaults() public static method

public static RestoreDefaults ( ) : void
return void

Save() public static method

public static Save ( ) : void
return void

SaveTo() public static method

public static SaveTo ( string filePath ) : void
filePath string
return void

TryGetElement() public static method

public static TryGetElement ( string elementSymbol, Element &element ) : bool
elementSymbol string
element Element
return bool

Property Details

UserPerodicTablePath public static property

public static string UserPerodicTablePath
return string