chemaxon.checkers.runner
Class SketchCheckerRunner

java.lang.Object
  extended by chemaxon.checkers.runner.BasicCheckerRunner
      extended by chemaxon.checkers.runner.SketchCheckerRunner
All Implemented Interfaces:
CheckerRunner

public final class SketchCheckerRunner
extends BasicCheckerRunner

WARNING! THIS IS AN INTERNAL CLASS. USE IT ONLY ON YOUR OWN RISK! This class is a thread safe clone based descendant of BasicCheckerRunner. Generally it is used in the MarvinSketch integration of Structure Checker API. DO NOT USE IT ANYWHERE ELSE!

Since:
Marvin 5.7
Version:
5.7
Author:
Attila Szabo

Field Summary
 
Fields inherited from class chemaxon.checkers.runner.BasicCheckerRunner
backgroundThread, molecule
 
Constructor Summary
SketchCheckerRunner(ConfigurationReader configurationReader)
          Initiate a SketchCheckerRunner instance which will can execute StructureChecker instances read from configurationReader
 
Method Summary
protected  void convertResult(StructureCheckerResult result)
          This method converts the result by changing the atoms and bonds back to the original instead of the cloned ones
 java.util.List<StructureFixer> getFixers(StructureCheckerResult result)
          Returns all the StructureFixer instances which associated with the StructureCheckerErrorType of the result
protected  Molecule getMolecule()
          Returns the molecule
 void setMolecule(Molecule molecule)
          Sets the molecule to be checked by the checkers
 
Methods inherited from class chemaxon.checkers.runner.BasicCheckerRunner
addPropertyChangeListener, addPropertyChangeListener, cancel, check, checkAndWait, fix, fix, getChangeSupport, getCheckerConfiguration, getCheckerList, getCurrent, getCurrentCheckerName, getIndex, getProgessLength, getResultList, getStrategy, isCanceled, isChecking, isDoodle, setCanceled, setChangeSupport, setCheckerList, setConfigurationReader, setDoodle, setIgnoreConfigurationErrors, setIndex, setResultList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SketchCheckerRunner

public SketchCheckerRunner(ConfigurationReader configurationReader)
Initiate a SketchCheckerRunner instance which will can execute StructureChecker instances read from configurationReader

Parameters:
configurationReader - a ConfigurationReader instance
Method Detail

setMolecule

public void setMolecule(Molecule molecule)
Description copied from interface: CheckerRunner
Sets the molecule to be checked by the checkers

Specified by:
setMolecule in interface CheckerRunner
Overrides:
setMolecule in class BasicCheckerRunner
Parameters:
molecule - a Molecule instance to be checked

getMolecule

protected Molecule getMolecule()
Description copied from class: BasicCheckerRunner
Returns the molecule

Overrides:
getMolecule in class BasicCheckerRunner
Returns:
the molecule

convertResult

protected void convertResult(StructureCheckerResult result)
This method converts the result by changing the atoms and bonds back to the original instead of the cloned ones

Overrides:
convertResult in class BasicCheckerRunner
Parameters:
result - is the StructureCheckerResult instance to convert
See Also:
BasicCheckerRunner.convertResult(StructureCheckerResult)

getFixers

public java.util.List<StructureFixer> getFixers(StructureCheckerResult result)
Description copied from interface: CheckerRunner
Returns all the StructureFixer instances which associated with the StructureCheckerErrorType of the result

Specified by:
getFixers in interface CheckerRunner
Overrides:
getFixers in class BasicCheckerRunner
Parameters:
result - a StructureCheckerResult instance which identifies the current problem
Returns:
a List of StructureFixer