Package chemaxon.structurechecker
Class BasicCheckerRunner
java.lang.Object
chemaxon.structurechecker.BasicCheckerRunner
- All Implemented Interfaces:
CheckerRunner
- Direct Known Subclasses:
AdvancedCheckerRunner
Deprecated.
The default basic implementation of
CheckerRunner interface.- Since:
- Marvin 5.7
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBasicCheckerRunner(StructureCheckerConfigurationReader configurationReader) Deprecated.Initiate aBasicCheckerRunnerinstance which can executeStructureCheckerinstances read from configurationReaderprotectedBasicCheckerRunner(StructureCheckerConfigurationReader configurationReader, CheckerFixerFactory checkerFixerFactory) Deprecated.Initiate aBasicCheckerRunnerinstance which can executeStructureCheckerinstances read from configurationReaderprotectedBasicCheckerRunner(List<StructureChecker> checkerList) Deprecated.Initiate aBasicCheckerRunnerinstance with specifiedStructureCheckerlist.protectedBasicCheckerRunner(List<StructureChecker> checkerList, boolean addFixers) Deprecated.Initiate aBasicCheckerRunnerinstance with specifiedStructureCheckerlist. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPropertyChangeListener(PropertyChangeListener changeListener) Deprecated.Adds aPropertyChangeListenerthat will receive all thePropertyChangeEventfired by this classvoidaddPropertyChangeListener(String propertyName, PropertyChangeListener listener) Deprecated.Adds aPropertyChangeListenerthat will receive thePropertyChangeEventfired when the property with the given name is changedvoidcancel()Deprecated.Stops the background threadvoidcheck()Deprecated.Invokes a background thread which will run all checkers on the given moleculeDeprecated.Executes all the checker instances on the given molecule and returns aListofStructureCheckerResultcontaining all the identified problemsprotected voidconvertResult(StructureCheckerResult result) Deprecated.This method provides the possibility to convert back the affected properties of the result if there was any convert in the molecule structure before check.booleanfix()Deprecated.Runs allStructureCheckeron the given molecule and after that fixes all identified problems with the firstStructureFixerwhich is associated with the current problem.booleanfix(StructureCheckerResult result) Deprecated.Fixes the problem identified by result with the firstStructureFixerwhich is associated with theStructureCheckerErrorTypeof the result.Deprecated.Gets the list of available checkersprotected List<StructureChecker> Deprecated.Returns the checkerListintDeprecated.Deprecated.getFixers(StructureCheckerResult result) Deprecated.Returns all theStructureFixerinstances which associated with theStructureCheckerErrorTypeof the resultprotected MoleculeDeprecated.Returns the moleculeintDeprecated.Deprecated.booleanDeprecated.This function identifies the state of the checker threadvoidsetConfigurationReader(StructureCheckerConfigurationReader configurationReader) Deprecated.Sets a new configuration for the Runner.voidsetIgnoreConfigurationErrors(boolean ignore) Deprecated.Sets whether configuration errors should be ignored on execution.voidsetMolecule(Molecule molecule) Deprecated.Sets the molecule to be checked by the checkers
-
Field Details
-
molecule
Deprecated.TheMoleculeinstance to check. -
backgroundThread
Deprecated.Background thread.
-
-
Constructor Details
-
BasicCheckerRunner
Deprecated.Initiate aBasicCheckerRunnerinstance which can executeStructureCheckerinstances read from configurationReader- Parameters:
configurationReader- aStructureCheckerConfigurationReaderinstance
-
BasicCheckerRunner
protected BasicCheckerRunner(StructureCheckerConfigurationReader configurationReader, CheckerFixerFactory checkerFixerFactory) Deprecated.Initiate aBasicCheckerRunnerinstance which can executeStructureCheckerinstances read from configurationReader- Parameters:
configurationReader- aStructureCheckerConfigurationReaderinstancecheckerFixerFactory- the factory for fixers
-
BasicCheckerRunner
Deprecated.Initiate aBasicCheckerRunnerinstance with specifiedStructureCheckerlist.- Parameters:
checkerList- the checker list- Since:
- 5.9
-
BasicCheckerRunner
Deprecated.Initiate aBasicCheckerRunnerinstance with specifiedStructureCheckerlist.- Parameters:
checkerList- the checker listaddFixers- whether the default set of fixers should be associated to the provided checkers- Since:
- 6.1
-
-
Method Details
-
setConfigurationReader
Deprecated.Description copied from interface:CheckerRunnerSets a new configuration for the Runner.- Specified by:
setConfigurationReaderin interfaceCheckerRunner- Parameters:
configurationReader- is theStructureCheckerConfigurationReaderinstance which provides the current configuraiton
-
fix
public boolean fix()Deprecated.Description copied from interface:CheckerRunnerRuns allStructureCheckeron the given molecule and after that fixes all identified problems with the firstStructureFixerwhich is associated with the current problem.- Specified by:
fixin interfaceCheckerRunner- Returns:
- true if the fix ended correctly false otherwise
-
fix
Deprecated.Description copied from interface:CheckerRunnerFixes the problem identified by result with the firstStructureFixerwhich is associated with theStructureCheckerErrorTypeof the result.- Specified by:
fixin interfaceCheckerRunner- Parameters:
result- aStructureCheckerResultinstance which identifies the problem- Returns:
- true if the fix ended correctly false otherwise
-
getFixers
Deprecated.Description copied from interface:CheckerRunnerReturns all theStructureFixerinstances which associated with theStructureCheckerErrorTypeof the result- Specified by:
getFixersin interfaceCheckerRunner- Parameters:
result- aStructureCheckerResultinstance which identifies the current problem- Returns:
- a
ListofStructureFixer
-
setMolecule
Deprecated.Description copied from interface:CheckerRunnerSets the molecule to be checked by the checkers- Specified by:
setMoleculein interfaceCheckerRunner- Parameters:
molecule- aMoleculeinstance to be checked
-
check
public void check()Deprecated.Description copied from interface:CheckerRunnerInvokes a background thread which will run all checkers on the given molecule- Specified by:
checkin interfaceCheckerRunner
-
cancel
public void cancel()Deprecated.Description copied from interface:CheckerRunnerStops the background thread- Specified by:
cancelin interfaceCheckerRunner
-
getCurrent
public int getCurrent()Deprecated.- Specified by:
getCurrentin interfaceCheckerRunner- Returns:
- the current progress percent
-
getCurrentCheckerName
Deprecated.- Specified by:
getCurrentCheckerNamein interfaceCheckerRunner- Returns:
- which
StructureCheckerinstance run currently
-
getProgessLength
public int getProgessLength()Deprecated.- Specified by:
getProgessLengthin interfaceCheckerRunner- Returns:
- the length of the checking process
-
getResultList
Deprecated.- Specified by:
getResultListin interfaceCheckerRunner- Returns:
- a
ListofStructureCheckerResultwhich contains all the dentified problem about the given molecule
-
isChecking
public boolean isChecking()Deprecated.Description copied from interface:CheckerRunnerThis function identifies the state of the checker thread- Specified by:
isCheckingin interfaceCheckerRunner- Returns:
- true if the background thread runs false otherwise
-
addPropertyChangeListener
Deprecated.Description copied from interface:CheckerRunnerAdds aPropertyChangeListenerthat will receive all thePropertyChangeEventfired by this class- Specified by:
addPropertyChangeListenerin interfaceCheckerRunner- Parameters:
changeListener- aPropertyChangeListenerinstance
-
addPropertyChangeListener
Deprecated.Description copied from interface:CheckerRunnerAdds aPropertyChangeListenerthat will receive thePropertyChangeEventfired when the property with the given name is changed- Specified by:
addPropertyChangeListenerin interfaceCheckerRunner- Parameters:
propertyName- the name of the property to be listenedlistener- aPropertyChangeListenerinstance
-
checkAndWait
Deprecated.Description copied from interface:CheckerRunnerExecutes all the checker instances on the given molecule and returns aListofStructureCheckerResultcontaining all the identified problems- Specified by:
checkAndWaitin interfaceCheckerRunner- Returns:
- a
ListofStructureCheckerResultcontaining all the identified problem about the given molecule
-
convertResult
Deprecated.This method provides the possibility to convert back the affected properties of the result if there was any convert in the molecule structure before check. By default this implementation is empty and isn't needed to override!- Parameters:
result- theStructureCheckerResultinstance
-
getCheckerList
Deprecated.Returns the checkerList- Returns:
- the checkerList
-
getMolecule
Deprecated.Returns the molecule- Returns:
- the molecule
-
getCheckerConfiguration
Deprecated.Description copied from interface:CheckerRunnerGets the list of available checkers- Specified by:
getCheckerConfigurationin interfaceCheckerRunner- Returns:
- the list of available checkers
-
setIgnoreConfigurationErrors
public void setIgnoreConfigurationErrors(boolean ignore) Deprecated.Description copied from interface:CheckerRunnerSets whether configuration errors should be ignored on execution.- Specified by:
setIgnoreConfigurationErrorsin interfaceCheckerRunner- Parameters:
ignore- true if configuration errors should be ignored on execution
-
AdvancedCheckerRunnerinstead.