test_class.declarator: builder
test_class.modifier: private static
test_class.original_string: private static IChemObjectBuilder builder;
test_class.type: IChemObjectBuilder
test_class.var_name: builder
test_class.declarator: ifac
test_class.modifier: private static
test_class.original_string: private static IsotopeFactory     ifac;
test_class.type: IsotopeFactory
test_class.var_name: ifac
test_class.file: tool/formula/src/test/java/org/openscience/cdk/formula/rules/IsotopePatternRuleTest.java
test_class.identifier: IsotopePatternRuleTest
test_class.superclass: extends FormulaRuleTest
test_case.body: @Test
      public void testSetParameters() throws Exception {
  
          IRule rule = new IsotopePatternRule();
  
          Object[] params = new Object[2];
  
          params[0] = new ArrayList<Double[]>();
          params[1] = 0.0001;
          rule.setParameters(params);
  
          Object[] objects = rule.getParameters();
  
          Assert.assertNotNull(objects[0]);
          Assert.assertEquals(2, objects.length);
      }
test_case.class_method_signature: IsotopePatternRuleTest.testSetParameters()
test_case.full_signature: @Test public void testSetParameters()
test_case.identifier: testSetParameters
test_case.invocations: setParameters getParameters assertNotNull assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSetParameters()
focal_class.declarator: logger        = LoggingToolFactory.createLoggingTool(IsotopePatternRule.class)
focal_class.modifier: private static
focal_class.original_string: private static ILoggingTool      logger        = LoggingToolFactory.createLoggingTool(IsotopePatternRule.class);
focal_class.type: ILoggingTool
focal_class.var_name: logger
focal_class.declarator: toleranceMass = 0.001
focal_class.modifier: private
focal_class.original_string: private double                   toleranceMass = 0.001;
focal_class.type: double
focal_class.var_name: toleranceMass
focal_class.declarator: pattern
focal_class.modifier: private
focal_class.original_string: private IsotopePattern           pattern;
focal_class.type: IsotopePattern
focal_class.var_name: pattern
focal_class.declarator: isotopeGe
focal_class.original_string: IsotopePatternGenerator          isotopeGe;
focal_class.type: IsotopePatternGenerator
focal_class.var_name: isotopeGe
focal_class.declarator: is
focal_class.modifier: private
focal_class.original_string: private IsotopePatternSimilarity is;
focal_class.type: IsotopePatternSimilarity
focal_class.var_name: is
focal_class.file: tool/formula/src/main/java/org/openscience/cdk/formula/rules/IsotopePatternRule.java
focal_class.identifier: IsotopePatternRule
focal_class.interfaces: implements IRule
focal_class.class_method_signature: IsotopePatternRule.IsotopePatternRule()
focal_class.full_signature: public  IsotopePatternRule()
focal_class.identifier: IsotopePatternRule
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  IsotopePatternRule()
focal_class.class_method_signature: IsotopePatternRule.setParameters(Object[] params)
focal_class.full_signature: @Override public void setParameters(Object[] params)
focal_class.identifier: setParameters
focal_class.modifiers: @Override public
focal_class.parameters: (Object[] params)
focal_class.return: void
focal_class.signature: void setParameters(Object[] params)
focal_class.class_method_signature: IsotopePatternRule.getParameters()
focal_class.full_signature: @Override public Object[] getParameters()
focal_class.identifier: getParameters
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Object[]
focal_class.signature: Object[] getParameters()
focal_class.class_method_signature: IsotopePatternRule.validate(IMolecularFormula formula)
focal_class.full_signature: @Override public double validate(IMolecularFormula formula)
focal_class.identifier: validate
focal_class.modifiers: @Override public
focal_class.parameters: (IMolecularFormula formula)
focal_class.return: double
focal_class.signature: double validate(IMolecularFormula formula)
focal_method.body: @Override
      public void setParameters(Object[] params) throws CDKException {
          if (params.length != 2) throw new CDKException("IsotopePatternRule expects two parameter");
  
          if (!(params[0] instanceof List)) throw new CDKException("The parameter one must be of type List<Double[]>");
  
          if (!(params[1] instanceof Double)) throw new CDKException("The parameter two must be of type Double");
  
          pattern = new IsotopePattern();
          for (double[] listISO : (List<double[]>) params[0]) {
              pattern.addIsotope(new IsotopeContainer(listISO[0], listISO[1]));
          }
  
          is.seTolerance((Double) params[1]);
      }
focal_method.class_method_signature: IsotopePatternRule.setParameters(Object[] params)
focal_method.full_signature: @Override public void setParameters(Object[] params)
focal_method.identifier: setParameters
focal_method.invocations: addIsotope seTolerance
focal_method.modifiers: @Override public
focal_method.parameters: (Object[] params)
focal_method.return: void
focal_method.signature: void setParameters(Object[] params)