private void ensureDefaultOccurElements ( IChemObjectBuilder builder ) { if ( mfRange == null ) { String [ ] elements = new String [ ] { "C" , "H" , "O" , "N" , "Si" , "P" , "S" , "F" , "Cl" , "Br" , "I" , "Sn" , "B" , "Pb" , "Tl" , "Ba" , "In" , "Pd" , "Pt" , "Os" , "Ag" , "Zr" , "Se" , "Zn" , "Cu" , "Ni" , "Co" , "Fe" , "Cr" , "Ti" , "Ca" , "K" , "Al" , "Mg" , "Na" , "Ce" , "Hg" , "Au" , "Ir" , "Re" , "W" , "Ta" , "Hf" , "Lu" , "Yb" , "Tm" , "Er" , "Ho" , "Dy" , "Tb" , "Gd" , "Eu" , "Sm" , "Pm" , "Nd" , "Pr" , "La" , "Cs" , "Xe" , "Te" , "Sb" , "Cd" , "Rh" , "Ru" , "Tc" , "Mo" , "Nb" , "Y" , "Sr" , "Rb" , "Kr" , "As" , "Ge" , "Ga" , "Mn" , "V" , "Sc" , "Ar" , "Ne" , "Be" , "Li" , "Tl" , "Pb" , "Bi" , "Po" , "At" , "Rn" , "Fr" , "Ra" , "Ac" , "Th" , "Pa" , "U" , "Np" , "Pu" } ; mfRange = new MolecularFormulaRange ( ) ; for ( int i = 0 ; i < elements . length ; i ++ ) mfRange . addIsotope ( builder . newInstance ( IIsotope . class , elements [ i ] ) , 0 , 50 ) ; } }
Initiate the MolecularFormulaExpand with the maximum and minimum occurrence of the Elements . In this case all elements of the periodic table are loaded .