private int getHydrogenCount ( IAtomContainer ac , IAtom atom ) { List < IAtom > neighbours = ac . getConnectedAtomsList ( atom ) ; int hcounter = 0 ; for ( IAtom neighbour : neighbours ) { if ( neighbour . getSymbol ( ) . equals ( "H" ) ) { hcounter += 1 ; } } return hcounter ; }
Gets the hydrogenCount attribute of the XLogPDescriptor object .