test_class.file: descriptor/qsaratomic/src/test/java/org/openscience/cdk/qsar/descriptors/atomic/AtomDegreeDescriptorTest.java
test_class.identifier: AtomDegreeDescriptorTest
test_class.superclass: extends AtomicDescriptorTest
test_case.body: @Test
      public void testAtomDegreeDescriptor() throws ClassNotFoundException, CDKException, java.lang.Exception {
          IAtomicDescriptor descriptor = new AtomDegreeDescriptor();
          SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance());
          IAtomContainer mol = sp.parseSmiles("CC(C)CCCC"); //
          Assert.assertEquals(3, ((IntegerResult) descriptor.calculate(mol.getAtom(1), mol).getValue()).intValue());
      }
test_case.class_method_signature: AtomDegreeDescriptorTest.testAtomDegreeDescriptor()
test_case.full_signature: @Test public void testAtomDegreeDescriptor()
test_case.identifier: testAtomDegreeDescriptor
test_case.invocations: getInstance parseSmiles assertEquals intValue getValue calculate getAtom
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAtomDegreeDescriptor()
focal_class.file: descriptor/qsaratomic/src/main/java/org/openscience/cdk/qsar/descriptors/atomic/AtomDegreeDescriptor.java
focal_class.identifier: AtomDegreeDescriptor
focal_class.interfaces: implements IAtomicDescriptor
focal_class.class_method_signature: AtomDegreeDescriptor.getSpecification()
focal_class.full_signature: @Override public DescriptorSpecification getSpecification()
focal_class.identifier: getSpecification
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: DescriptorSpecification
focal_class.signature: DescriptorSpecification getSpecification()
focal_class.class_method_signature: AtomDegreeDescriptor.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: AtomDegreeDescriptor.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: AtomDegreeDescriptor.getDescriptorNames()
focal_class.full_signature: @Override public String[] getDescriptorNames()
focal_class.identifier: getDescriptorNames
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String[]
focal_class.signature: String[] getDescriptorNames()
focal_class.class_method_signature: AtomDegreeDescriptor.calculate(IAtom atom, IAtomContainer container)
focal_class.full_signature: @Override public DescriptorValue calculate(IAtom atom, IAtomContainer container)
focal_class.identifier: calculate
focal_class.modifiers: @Override public
focal_class.parameters: (IAtom atom, IAtomContainer container)
focal_class.return: DescriptorValue
focal_class.signature: DescriptorValue calculate(IAtom atom, IAtomContainer container)
focal_class.class_method_signature: AtomDegreeDescriptor.getParameterNames()
focal_class.full_signature: @Override public String[] getParameterNames()
focal_class.identifier: getParameterNames
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String[]
focal_class.signature: String[] getParameterNames()
focal_class.class_method_signature: AtomDegreeDescriptor.getParameterType(String name)
focal_class.full_signature: @Override public Object getParameterType(String name)
focal_class.identifier: getParameterType
focal_class.modifiers: @Override public
focal_class.parameters: (String name)
focal_class.return: Object
focal_class.signature: Object getParameterType(String name)
focal_class.superclass: extends AbstractAtomicDescriptor
focal_method.body: @Override
      public DescriptorValue calculate(IAtom atom, IAtomContainer container) {
          int atomDegree = 0;
          List<IAtom> neighboors = container.getConnectedAtomsList(atom);
          for (IAtom neighboor : neighboors) {
              if (!neighboor.getSymbol().equals("H")) atomDegree += 1;
          }
          return new DescriptorValue(getSpecification(), getParameterNames(), getParameters(), new IntegerResult(
                  atomDegree), getDescriptorNames());
      }
focal_method.class_method_signature: AtomDegreeDescriptor.calculate(IAtom atom, IAtomContainer container)
focal_method.full_signature: @Override public DescriptorValue calculate(IAtom atom, IAtomContainer container)
focal_method.identifier: calculate
focal_method.invocations: getConnectedAtomsList equals getSymbol getSpecification getParameterNames getParameters getDescriptorNames
focal_method.modifiers: @Override public
focal_method.parameters: (IAtom atom, IAtomContainer container)
focal_method.return: DescriptorValue
focal_method.signature: DescriptorValue calculate(IAtom atom, IAtomContainer container)