test_class.declarator: atomContainer
test_class.modifier: private
test_class.original_string: private IAtomContainer atomContainer;
test_class.type: IAtomContainer
test_class.var_name: atomContainer
test_class.declarator: atomSignature
test_class.modifier: private
test_class.original_string: private AtomSignature  atomSignature;
test_class.type: AtomSignature
test_class.var_name: atomSignature
test_class.file: descriptor/signature/src/test/java/org/openscience/cdk/signature/AtomSignatureTest.java
test_class.identifier: AtomSignatureTest
test_class.superclass: extends AbstractSignatureTest
test_case.body: @Test
      public void getAromaticEdgeLabelTest() {
          IAtomContainer benzeneRing = builder.newInstance(IAtomContainer.class);
          for (int i = 0; i < 6; i++) {
              benzeneRing.addAtom(builder.newInstance(IAtom.class, "C"));
          }
          for (int i = 0; i < 6; i++) {
              IAtom a = benzeneRing.getAtom(i);
              IAtom b = benzeneRing.getAtom((i + 1) % 6);
              IBond bond = builder.newInstance(IBond.class, a, b);
              benzeneRing.addBond(bond);
              bond.setFlag(CDKConstants.ISAROMATIC, true);
          }
  
          AtomSignature signature = new AtomSignature(0, benzeneRing);
          for (int i = 0; i < 6; i++) {
              Assert.assertEquals("Failed for " + i, "p", signature.getEdgeLabel(i, (i + 1) % 6));
          }
      }
test_case.class_method_signature: AtomSignatureTest.getAromaticEdgeLabelTest()
test_case.full_signature: @Test public void getAromaticEdgeLabelTest()
test_case.identifier: getAromaticEdgeLabelTest
test_case.invocations: newInstance addAtom newInstance getAtom getAtom newInstance addBond setFlag assertEquals getEdgeLabel
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getAromaticEdgeLabelTest()
focal_class.declarator: molecule
focal_class.modifier: private
focal_class.original_string: private IAtomContainer molecule;
focal_class.type: IAtomContainer
focal_class.var_name: molecule
focal_class.file: descriptor/signature/src/main/java/org/openscience/cdk/signature/AtomSignature.java
focal_class.identifier: AtomSignature
focal_class.class_method_signature: AtomSignature.AtomSignature(int atomIndex, IAtomContainer molecule)
focal_class.full_signature: public  AtomSignature(int atomIndex, IAtomContainer molecule)
focal_class.identifier: AtomSignature
focal_class.modifiers: public
focal_class.parameters: (int atomIndex, IAtomContainer molecule)
focal_class.signature:  AtomSignature(int atomIndex, IAtomContainer molecule)
focal_class.class_method_signature: AtomSignature.AtomSignature(IAtom atom, IAtomContainer molecule)
focal_class.full_signature: public  AtomSignature(IAtom atom, IAtomContainer molecule)
focal_class.identifier: AtomSignature
focal_class.modifiers: public
focal_class.parameters: (IAtom atom, IAtomContainer molecule)
focal_class.signature:  AtomSignature(IAtom atom, IAtomContainer molecule)
focal_class.class_method_signature: AtomSignature.AtomSignature(int atomIndex, int height, IAtomContainer molecule)
focal_class.full_signature: public  AtomSignature(int atomIndex, int height, IAtomContainer molecule)
focal_class.identifier: AtomSignature
focal_class.modifiers: public
focal_class.parameters: (int atomIndex, int height, IAtomContainer molecule)
focal_class.signature:  AtomSignature(int atomIndex, int height, IAtomContainer molecule)
focal_class.class_method_signature: AtomSignature.AtomSignature(IAtom atom, int height, IAtomContainer molecule)
focal_class.full_signature: public  AtomSignature(IAtom atom, int height, IAtomContainer molecule)
focal_class.identifier: AtomSignature
focal_class.modifiers: public
focal_class.parameters: (IAtom atom, int height, IAtomContainer molecule)
focal_class.signature:  AtomSignature(IAtom atom, int height, IAtomContainer molecule)
focal_class.class_method_signature: AtomSignature.AtomSignature(int atomIndex, int height, InvariantType invariantType, IAtomContainer molecule)
focal_class.full_signature: public  AtomSignature(int atomIndex, int height, InvariantType invariantType, IAtomContainer molecule)
focal_class.identifier: AtomSignature
focal_class.modifiers: public
focal_class.parameters: (int atomIndex, int height, InvariantType invariantType, IAtomContainer molecule)
focal_class.signature:  AtomSignature(int atomIndex, int height, InvariantType invariantType, IAtomContainer molecule)
focal_class.class_method_signature: AtomSignature.AtomSignature(IAtom atom, int height, InvariantType invariantType, IAtomContainer molecule)
focal_class.full_signature: public  AtomSignature(IAtom atom, int height, InvariantType invariantType, IAtomContainer molecule)
focal_class.identifier: AtomSignature
focal_class.modifiers: public
focal_class.parameters: (IAtom atom, int height, InvariantType invariantType, IAtomContainer molecule)
focal_class.signature:  AtomSignature(IAtom atom, int height, InvariantType invariantType, IAtomContainer molecule)
focal_class.class_method_signature: AtomSignature.getIntLabel(int vertexIndex)
focal_class.full_signature: @Override /** {@inheritDoc} */ protected int getIntLabel(int vertexIndex)
focal_class.identifier: getIntLabel
focal_class.modifiers: @Override /** {@inheritDoc} */ protected
focal_class.parameters: (int vertexIndex)
focal_class.return: int
focal_class.signature: int getIntLabel(int vertexIndex)
focal_class.class_method_signature: AtomSignature.getConnected(int vertexIndex)
focal_class.full_signature: @Override /** {@inheritDoc} */ protected int[] getConnected(int vertexIndex)
focal_class.identifier: getConnected
focal_class.modifiers: @Override /** {@inheritDoc} */ protected
focal_class.parameters: (int vertexIndex)
focal_class.return: int[]
focal_class.signature: int[] getConnected(int vertexIndex)
focal_class.class_method_signature: AtomSignature.getEdgeLabel(int vertexIndex, int otherVertexIndex)
focal_class.full_signature: @Override /** {@inheritDoc} */ protected String getEdgeLabel(int vertexIndex, int otherVertexIndex)
focal_class.identifier: getEdgeLabel
focal_class.modifiers: @Override /** {@inheritDoc} */ protected
focal_class.parameters: (int vertexIndex, int otherVertexIndex)
focal_class.return: String
focal_class.signature: String getEdgeLabel(int vertexIndex, int otherVertexIndex)
focal_class.class_method_signature: AtomSignature.getVertexSymbol(int vertexIndex)
focal_class.full_signature: @Override /** {@inheritDoc} */ protected String getVertexSymbol(int vertexIndex)
focal_class.identifier: getVertexSymbol
focal_class.modifiers: @Override /** {@inheritDoc} */ protected
focal_class.parameters: (int vertexIndex)
focal_class.return: String
focal_class.signature: String getVertexSymbol(int vertexIndex)
focal_class.class_method_signature: AtomSignature.convertEdgeLabelToColor(String edgeLabel)
focal_class.full_signature: @Override /** {@inheritDoc} */ protected int convertEdgeLabelToColor(String edgeLabel)
focal_class.identifier: convertEdgeLabelToColor
focal_class.modifiers: @Override /** {@inheritDoc} */ protected
focal_class.parameters: (String edgeLabel)
focal_class.return: int
focal_class.signature: int convertEdgeLabelToColor(String edgeLabel)
focal_class.superclass: extends AbstractVertexSignature
focal_method.body: @Override
      /** {@inheritDoc} */
      protected String getEdgeLabel(int vertexIndex, int otherVertexIndex) {
          IAtom atomA = this.molecule.getAtom(vertexIndex);
          IAtom atomB = this.molecule.getAtom(otherVertexIndex);
          IBond bond = this.molecule.getBond(atomA, atomB);
          if (bond != null) {
              if (bond.getFlag(CDKConstants.ISAROMATIC)) {
                  return "p";
              }
              switch (bond.getOrder()) {
              //                case SINGLE: return "-";
                  case SINGLE:
                      return "";
                  case DOUBLE:
                      return "=";
                  case TRIPLE:
                      return "#";
                  case QUADRUPLE:
                      return "$";
                  default:
                      return "";
              }
          } else {
              return "";
          }
      }
focal_method.class_method_signature: AtomSignature.getEdgeLabel(int vertexIndex, int otherVertexIndex)
focal_method.full_signature: @Override /** {@inheritDoc} */ protected String getEdgeLabel(int vertexIndex, int otherVertexIndex)
focal_method.identifier: getEdgeLabel
focal_method.invocations: getAtom getAtom getBond getFlag getOrder
focal_method.modifiers: @Override /** {@inheritDoc} */ protected
focal_method.parameters: (int vertexIndex, int otherVertexIndex)
focal_method.return: String
focal_method.signature: String getEdgeLabel(int vertexIndex, int otherVertexIndex)