Package chemaxon.standardizer.actions
Class RearrangeReactionAction
java.lang.Object
chemaxon.standardizer.AbstractStandardizerAction
chemaxon.standardizer.actions.RearrangeReactionAction
- All Implemented Interfaces:
chemaxon.license.Licensable
,StandardizerAction
,PropertyChangeListener
,Cloneable
,EventListener
-
Field Summary
Fields inherited from class chemaxon.standardizer.AbstractStandardizerAction
CONFIG_PATH_KEY, FORMAT_KEY, ID_KEY, support
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetComponents
(Molecule target) Every action that needs to do something on a reaction as a whole needs this, otherwise reaction components will be processed one-by-one.protected Changes
standardize1
(Molecule molecule) This method contains the current standardization mechanism.Methods inherited from class chemaxon.standardizer.AbstractStandardizerAction
addPropertyChangeListener, addPropertyChangeListener, anyBooleanPropertyTrue, clone, cloneItem, getDescriptor, getID, isActive, isAvailable, isLicensed, isValid, propertyChange, removePropertyChangeListener, removePropertyChangeListener, setActive, setID, setLicenseEnvironment, setValid, standardize, toString
-
Constructor Details
-
RearrangeReactionAction
Initializes the action- Parameters:
params
- the parameters of the action
-
-
Method Details
-
standardize1
Description copied from class:AbstractStandardizerAction
This method contains the current standardization mechanism. Descendants needs to implement this method.
Special molecules containing more components (e.g.RgMolecule
,RxnMolecule
) are decomponented by the methodAbstractStandardizerAction.getComponents(Molecule)
, andAbstractStandardizerAction.standardize1(Molecule)
method is called on each component, before applied on the original molecule. If a descendant does not want this to occur, this method must be overridden.
Logs of standardization should be generated to aLogger
, that can be collected by usingStandardizerLogger.getLogger()
method.- Specified by:
standardize1
in classAbstractStandardizerAction
- Parameters:
molecule
- theMolecule
instance to be standardized- Returns:
- the changes applied on the molecule during the standardization process
- Throws:
IllegalArgumentException
- if the provided molecule or the provided parameters of the action are invalid
-
getComponents
Every action that needs to do something on a reaction as a whole needs this, otherwise reaction components will be processed one-by-one.- Overrides:
getComponents
in classAbstractStandardizerAction
- Parameters:
target
- the target molecule- Returns:
- null if target is a reaction, otherwise calls super
-