Logo Search packages:      
Sourcecode: cdk version File versions  Download package

Initiate the MolecularFormulaExpand with the maximum and minimum occurrence of the Elements. In this case all elements of the periodic table are loaded.

Definition at line 143 of file ElementRule.java.

References org.openscience.cdk.formula.MolecularFormulaRange.addIsotope(), and org.openscience.cdk.interfaces.IChemObjectBuilder.newIsotope().

Referenced by org.openscience.cdk.formula.rules.ElementRule.validate().

      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.newIsotope(elements[i]), 0, 50);

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index