private int getAromaticNitrogensCount ( IAtomContainer ac , IAtom atom ) { List < IAtom > neighbours = ac . getConnectedAtomsList ( atom ) ; int narocounter = 0 ; for ( IAtom neighbour : neighbours ) { if ( neighbour . getSymbol ( ) . equals ( "N" ) && ( Boolean ) neighbour . getProperty ( "IS_IN_AROMATIC_RING" ) ) { narocounter += 1 ; } } return narocounter ; }
Gets the aromaticNitrogensCount attribute of the XLogPDescriptor object .