@ Override public DescriptorValue calculate ( IAtom atom , IAtomContainer container ) { int atomValence = AtomValenceTool . getValence ( atom ) ; return new DescriptorValue ( getSpecification ( ) , getParameterNames ( ) , getParameters ( ) , new IntegerResult ( atomValence ) , getDescriptorNames ( ) ) ; }
This method calculates the valence of an atom .