@Deprecated public class BasicCheckerRunner extends Object implements CheckerRunner
CheckerRunner interface/| Modifier and Type | Field and Description |
|---|---|
protected Thread |
backgroundThread
Deprecated.
|
protected Molecule |
molecule
Deprecated.
The
Molecule instance to check |
| Constructor and Description |
|---|
BasicCheckerRunner(ConfigurationReader configurationReader)
Deprecated.
Initiate a
BasicCheckerRunner instance which will can execute
StructureChecker instances read from configurationReader |
BasicCheckerRunner(ConfigurationReader configurationReader,
chemaxon.structurechecker.factory.CheckerFixerFactory checkerFixerFactory)
Deprecated.
Initiate a
BasicCheckerRunner instance which will can execute
StructureChecker instances read from configurationReader |
BasicCheckerRunner(ConfigurationReader configurationReader,
StructureFixerFactory fixerFactory)
Deprecated.
|
BasicCheckerRunner(List<StructureChecker> checkerList)
Deprecated.
Initiate a
BasicCheckerRunner instance with specified
StructureChecker list. |
BasicCheckerRunner(List<StructureChecker> checkerList,
boolean addFixers)
Deprecated.
Initiate a
BasicCheckerRunner instance with specified
StructureChecker list. |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener changeListener)
Deprecated.
Adds a
PropertyChangeListener that will receive all the PropertyChangeEvent fired by this class |
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Deprecated.
Adds a
PropertyChangeListener that will receive the PropertyChangeEvent fired when the property with
the given name is changed |
void |
cancel()
Deprecated.
Stops the background thread
|
void |
check()
Deprecated.
Invoke a background thread which will run all checkers on the given molecule
|
List<StructureCheckerResult> |
checkAndWait()
Deprecated.
Execute all the checker instances on the given molecule and return a
List of StructureCheckerResult
which contains all the identified problems |
protected void |
convertResult(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.
|
boolean |
fix()
Deprecated.
Runs all
StructureChecker on the given molecule and after that fixes all
identified problems with the first StructureFixer which is associated with the current problem. |
boolean |
fix(StructureCheckerResult result)
Deprecated.
Fixes the problem identified by result with the first
StructureFixer which
is associated with the StructureCheckerErrorType of the result. |
protected PropertyChangeSupport |
getChangeSupport()
Deprecated.
Returns the changeSupport
|
List<StructureChecker> |
getCheckerConfiguration()
Deprecated.
Gets the list of available checkers
|
protected List<StructureChecker> |
getCheckerList()
Deprecated.
Returns the checkerList
|
int |
getCurrent()
Deprecated.
|
String |
getCurrentCheckerName()
Deprecated.
|
List<StructureFixer> |
getFixers(StructureCheckerResult result)
Deprecated.
Returns all the
StructureFixer instances which associated with the
StructureCheckerErrorType of the result |
protected int |
getIndex()
Deprecated.
Returns the index
|
protected Molecule |
getMolecule()
Deprecated.
Returns the molecule
|
int |
getProgessLength()
Deprecated.
|
List<StructureCheckerResult> |
getResultList()
Deprecated.
|
protected Runnable |
getStrategy()
Deprecated.
Returns the strategy to use.
|
protected boolean |
isCanceled()
Deprecated.
Returns the canceled
|
boolean |
isChecking()
Deprecated.
This function identifies the state of the checker thread
|
protected boolean |
isDoodle()
Deprecated.
Returns the isDoodle
|
protected void |
setCanceled(boolean canceled)
Deprecated.
Sets the canceled
|
protected void |
setChangeSupport(PropertyChangeSupport changeSupport)
Deprecated.
Sets the changeSupport
|
protected void |
setCheckerList(List<StructureChecker> checkerList)
Deprecated.
Sets the checkerList
|
void |
setConfigurationReader(ConfigurationReader configurationReader)
Deprecated.
Sets a new configuration for the Runner.
|
protected void |
setDoodle(boolean isDoodle)
Deprecated.
Sets the isDoodle
|
void |
setIgnoreConfigurationErrors(boolean ignore)
Deprecated.
Sets whether configuration errors should be ignored on execution.
|
protected void |
setIndex(int index)
Deprecated.
Sets the index
|
void |
setMolecule(Molecule molecule)
Deprecated.
Sets the molecule to be checked by the checkers
|
protected void |
setResultList(List<StructureCheckerResult> resultList)
Deprecated.
Sets the resultList
|
protected Thread backgroundThread
public BasicCheckerRunner(ConfigurationReader configurationReader)
BasicCheckerRunner instance which will can execute
StructureChecker instances read from configurationReaderconfigurationReader - a ConfigurationReader instance@Deprecated public BasicCheckerRunner(ConfigurationReader configurationReader, StructureFixerFactory fixerFactory)
BasicCheckerRunner(ConfigurationReader, CheckerFixerFactory)
insteadBasicCheckerRunner instance which will can execute
StructureChecker instances read from configurationReaderconfigurationReader - a ConfigurationReader instancefixerFactory - the fixer factorypublic BasicCheckerRunner(ConfigurationReader configurationReader, chemaxon.structurechecker.factory.CheckerFixerFactory checkerFixerFactory)
BasicCheckerRunner instance which will can execute
StructureChecker instances read from configurationReaderconfigurationReader - a ConfigurationReader instancecheckerFixerFactory - the factory for fixerspublic BasicCheckerRunner(List<StructureChecker> checkerList)
BasicCheckerRunner instance with specified
StructureChecker list.checkerList - the checker listpublic BasicCheckerRunner(List<StructureChecker> checkerList, boolean addFixers)
BasicCheckerRunner instance with specified
StructureChecker list.checkerList - the checker listaddFixers - whether the default set of fixers should be associated to the
provided checkerspublic void setConfigurationReader(ConfigurationReader configurationReader)
CheckerRunnersetConfigurationReader in interface CheckerRunnerconfigurationReader - is the ConfigurationReader instance which provides the current configuraitonpublic boolean fix()
CheckerRunnerStructureChecker on the given molecule and after that fixes all
identified problems with the first StructureFixer which is associated with the current problem.fix in interface CheckerRunnerpublic boolean fix(StructureCheckerResult result)
CheckerRunnerStructureFixer which
is associated with the StructureCheckerErrorType of the result.fix in interface CheckerRunnerresult - a StructureCheckerResult instance which identifies the problempublic List<StructureFixer> getFixers(StructureCheckerResult result)
CheckerRunnerStructureFixer instances which associated with the
StructureCheckerErrorType of the resultgetFixers in interface CheckerRunnerresult - a StructureCheckerResult instance which identifies the current problemList of StructureFixerpublic void setMolecule(Molecule molecule)
CheckerRunnersetMolecule in interface CheckerRunnermolecule - a Molecule instance to be checkedpublic void check()
CheckerRunnercheck in interface CheckerRunnerpublic void cancel()
CheckerRunnercancel in interface CheckerRunnerpublic int getCurrent()
getCurrent in interface CheckerRunnerpublic String getCurrentCheckerName()
getCurrentCheckerName in interface CheckerRunnerStructureChecker instance run currentlypublic int getProgessLength()
getProgessLength in interface CheckerRunnerpublic List<StructureCheckerResult> getResultList()
getResultList in interface CheckerRunnerList of StructureCheckerResult which contains all the
dentified problem about the given moleculepublic boolean isChecking()
CheckerRunnerisChecking in interface CheckerRunnerpublic void addPropertyChangeListener(PropertyChangeListener changeListener)
CheckerRunnerPropertyChangeListener that will receive all the PropertyChangeEvent fired by this classaddPropertyChangeListener in interface CheckerRunnerchangeListener - a PropertyChangeListener instancepublic void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
CheckerRunnerPropertyChangeListener that will receive the PropertyChangeEvent fired when the property with
the given name is changedaddPropertyChangeListener in interface CheckerRunnerpropertyName - the name of the property to be listenedlistener - a PropertyChangeListener instancepublic List<StructureCheckerResult> checkAndWait()
CheckerRunnerList of StructureCheckerResult
which contains all the identified problemscheckAndWait in interface CheckerRunnerList of StructureCheckerResult which contains all the
identified problem about the given moleculeprotected void convertResult(StructureCheckerResult result)
result - the StructureCheckerResult instanceprotected Runnable getStrategy()
protected void setCanceled(boolean canceled)
canceled - the canceled to setprotected boolean isCanceled()
protected void setDoodle(boolean isDoodle)
isDoodle - the isDoodle to setprotected boolean isDoodle()
protected void setIndex(int index)
index - the index to setprotected int getIndex()
protected void setResultList(List<StructureCheckerResult> resultList)
resultList - the resultList to setprotected void setCheckerList(List<StructureChecker> checkerList)
checkerList - the checkerList to setprotected List<StructureChecker> getCheckerList()
protected Molecule getMolecule()
protected void setChangeSupport(PropertyChangeSupport changeSupport)
changeSupport - the changeSupport to setprotected PropertyChangeSupport getChangeSupport()
public List<StructureChecker> getCheckerConfiguration()
CheckerRunnergetCheckerConfiguration in interface CheckerRunnerpublic void setIgnoreConfigurationErrors(boolean ignore)
CheckerRunnersetIgnoreConfigurationErrors in interface CheckerRunnerignore - true if configuration errors should be ignored on execution