private int getOthers ( IMolecularFormula formula ) { int number = 0 ; String [ ] elements = { "Co" , "Hg" , "Pt" , "As" } ; for ( int i = 0 ; i < elements . length ; i ++ ) number += MolecularFormulaManipulator . getElementCount ( formula , formula . getBuilder ( ) . newInstance ( IElement . class , elements [ i ] ) ) ; return number ; }
Get the number of other elements which affect to the calculation of the nominal mass . For example Fe Co Hg Pt As .