Interface CheckerRunner

All Known Implementing Classes:
AdvancedCheckerRunner, BasicCheckerRunner

@PublicApi public interface CheckerRunner
Interface for structure checker runner implementations. They provide the functionality to run StructureChecker instances automatically on the given molecule and fix the problems with the associated StructureFixer instances.

Example: CheckerRunner can be used directly with the checkAndWait method. This method returns a List of StructureCheckerResult, which contains all the identified problems of the given molecule. CheckerRunner can return all the StructureFixer instances for a StructureCheckerResult. These fixers can be executed one by one.


CheckerRunner runner;
... (initialize/initiate the current CheckerRunner instance)
List results = runner.checkAndWait();
for (StructureChecekrResult result : results) {
List fixers = runner.getFixers(result);
... execute one of the fixers
}

CheckerRunner supports executing the default fixer of a StructureCheckerResult.

CheckerRunner runner;
... (initialize/initiate the current CheckerRunner instance)
List results = runner.checkAndWait();
for (StructureCheckerResult result : results) {
runner.fix(result);
}

CheckerRunner supports running the checkers in background thread with the check() method. After the background thread is ended (isChecking() returns false or "checking" property changed fired) the usage is the same.

CheckerRunner provides support to try to identify all the problems in the given molecule and fix these problems with the default fixer using the fix() method.

Since:
Marvin 5.3
  • Method Details