private int getAromaticCarbonsCount ( IAtomContainer ac , IAtom atom ) { List < IAtom > neighbours = ac . getConnectedAtomsList ( atom ) ; int carocounter = 0 ; for ( IAtom neighbour : neighbours ) { if ( neighbour . getSymbol ( ) . equals ( "C" ) && neighbour . getFlag ( CDKConstants . ISAROMATIC ) ) { carocounter += 1 ; } } return carocounter ; }
Gets the aromaticCarbonsCount attribute of the XLogPDescriptor object .