Class ValenceFixer

All Implemented Interfaces:
StructureFixer

@PublicApi 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
  • Constructor Details

    • ValenceFixer

      public ValenceFixer()
  • Method Details

    • 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