chemaxon.checkers.runner
Class CheckerRunnerImpl

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

Deprecated. This class is deprecated and not used anymore. Please use BasicCheckerRunner instead. This class will be removed in version 6.0

@Deprecated
public class CheckerRunnerImpl
extends java.lang.Object
implements CheckerRunner

The default implementation of CheckerRunner interface.

Since:
Marvin 5.3
Version:
5.7
Author:
Attila Szabo

Constructor Summary
CheckerRunnerImpl(ConfigurationReader configurationReader)
          Deprecated. Initiate a CheckerRunnerImpl instance which will can execute StructureChecker instances read from configurationReader
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener changeListener)
          Deprecated. Adds a PropertyChangeListener that will receive all the PropertyChangeEvent fired by this class
 void addPropertyChangeListener(java.lang.String propertyName, java.beans.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
 java.util.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
 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.
 java.util.List<StructureChecker> getCheckerConfiguration()
          Deprecated. Gets the list of available checkers
 int getCurrent()
          Deprecated.  
 java.lang.String getCurrentCheckerName()
          Deprecated.  
 java.util.List<StructureFixer> getFixers(StructureCheckerResult result)
          Deprecated. Returns all the StructureFixer instances which associated with the StructureCheckerErrorType of the result
 int getProgessLength()
          Deprecated.  
 java.util.List<StructureCheckerResult> getResultList()
          Deprecated.  
 boolean isChecking()
          Deprecated. This function identifies the state of the checker thread
 void setConfigurationReader(ConfigurationReader reader)
          Deprecated. Sets a new configuration for the Runner.
 void setIgnoreConfigurationErrors(boolean ignore)
          Deprecated. Sets whether configuration errors should be ignored on execution.
 void setMolecule(Molecule molecule)
          Deprecated. Sets the molecule to be checked by the checkers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckerRunnerImpl

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

Parameters:
configurationReader - a ConfigurationReader instance
Method Detail

setConfigurationReader

public void setConfigurationReader(ConfigurationReader reader)
Deprecated. 
Description copied from interface: CheckerRunner
Sets a new configuration for the Runner.

Specified by:
setConfigurationReader in interface CheckerRunner
Parameters:
reader - is the ConfigurationReader instance which provides the current configuraiton

check

public void check()
Deprecated. 
Description copied from interface: CheckerRunner
Invoke a background thread which will run all checkers on the given molecule

Specified by:
check in interface CheckerRunner

checkAndWait

public java.util.List<StructureCheckerResult> checkAndWait()
Deprecated. 
Description copied from interface: CheckerRunner
Execute all the checker instances on the given molecule and return a List of StructureCheckerResult which contains all the identified problems

Specified by:
checkAndWait in interface CheckerRunner
Returns:
a List of StructureCheckerResult which contains all the identified problem about the given molecule

cancel

public void cancel()
Deprecated. 
Description copied from interface: CheckerRunner
Stops the background thread

Specified by:
cancel in interface CheckerRunner

isChecking

public boolean isChecking()
Deprecated. 
Description copied from interface: CheckerRunner
This function identifies the state of the checker thread

Specified by:
isChecking in interface CheckerRunner
Returns:
true if the background thread runs false otherwise

getCurrent

public int getCurrent()
Deprecated. 
Specified by:
getCurrent in interface CheckerRunner
Returns:
the current progress percent

getCurrentCheckerName

public java.lang.String getCurrentCheckerName()
Deprecated. 
Specified by:
getCurrentCheckerName in interface CheckerRunner
Returns:
which StructureChecker instance run currently

getProgessLength

public int getProgessLength()
Deprecated. 
Specified by:
getProgessLength in interface CheckerRunner
Returns:
the length of the checking process

getResultList

public java.util.List<StructureCheckerResult> getResultList()
Deprecated. 
Specified by:
getResultList in interface CheckerRunner
Returns:
a List of StructureCheckerResult which contains all the dentified problem about the given molecule

getFixers

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

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

fix

public boolean fix()
Deprecated. 
Description copied from interface: CheckerRunner
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.

Specified by:
fix in interface CheckerRunner
Returns:
true if the fix ended correctly false otherwise

fix

public boolean fix(StructureCheckerResult result)
Deprecated. 
Description copied from interface: CheckerRunner
Fixes the problem identified by result with the first StructureFixer which is associated with the StructureCheckerErrorType of the result.

Specified by:
fix in interface CheckerRunner
Parameters:
result - a StructureCheckerResult instance which identifies the problem
Returns:
true if the fix ended correctly false otherwise

setMolecule

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

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

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener changeListener)
Deprecated. 
Description copied from interface: CheckerRunner
Adds a PropertyChangeListener that will receive all the PropertyChangeEvent fired by this class

Specified by:
addPropertyChangeListener in interface CheckerRunner
Parameters:
changeListener - a PropertyChangeListener instance

addPropertyChangeListener

public void addPropertyChangeListener(java.lang.String propertyName,
                                      java.beans.PropertyChangeListener listener)
Deprecated. 
Description copied from interface: CheckerRunner
Adds a PropertyChangeListener that will receive the PropertyChangeEvent fired when the property with the given name is changed

Specified by:
addPropertyChangeListener in interface CheckerRunner
Parameters:
propertyName - the name of the property to be listened
listener - a PropertyChangeListener instance

getCheckerConfiguration

public java.util.List<StructureChecker> getCheckerConfiguration()
Deprecated. 
Description copied from interface: CheckerRunner
Gets the list of available checkers

Specified by:
getCheckerConfiguration in interface CheckerRunner
Returns:
the list of available checkers

setIgnoreConfigurationErrors

public void setIgnoreConfigurationErrors(boolean ignore)
Deprecated. 
Description copied from interface: CheckerRunner
Sets whether configuration errors should be ignored on execution.

Specified by:
setIgnoreConfigurationErrors in interface CheckerRunner
Parameters:
ignore - true if configuration errors should be ignored on execution