chemaxon.fixers
Class ValenceFixer

java.lang.Object
  extended by chemaxon.fixers.AbstractStructureFixer
      extended by chemaxon.fixers.ValenceFixer
All Implemented Interfaces:
StructureFixer

public class ValenceFixer
extends AbstractStructureFixer

A descendant of AbstractStructureFixer which fixes valence problem in the molecule if it is possible with removing explicit hydrogens or by adding charge

Since:
Marvin 5.3
Version:
5.9
Author:
Attila Szabo

Constructor Summary
ValenceFixer()
           
 
Method Summary
 boolean fix(StructureCheckerResult result)
          Fixes one molecule problem identified by the result
 
Methods inherited from class chemaxon.fixers.AbstractStructureFixer
getDescription, getDescriptor, getName, setDescription, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValenceFixer

public ValenceFixer()
Method Detail

fix

public boolean fix(StructureCheckerResult result)
Description copied from interface: StructureFixer
Fixes one molecule problem identified by the result

Parameters:
result - is an instance of StructureCheckerResult which identifies the problem
Returns:
true if the fix was successful false otherwise