@PublicAPI public final class RemoveFragmentAction extends AbstractStandardizerAction
Modifier and Type | Class and Description |
---|---|
static class |
RemoveFragmentAction.Measurement
Type of measurement
|
static class |
RemoveFragmentAction.Method
Type of removal methods
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MEASUREMENT_KEY
Key of measurement for parsing and property change
|
static java.lang.String |
METHOD_KEY
Key of method for parsing and property change
|
CONFIG_PATH_KEY, FORMAT_KEY, ID_KEY, support
Constructor and Description |
---|
RemoveFragmentAction(java.util.Map<java.lang.String,java.lang.String> params)
Initializes the action with parameters
|
Modifier and Type | Method and Description |
---|---|
RemoveFragmentAction |
clone() |
protected java.util.List<Molecule> |
getComponents(Molecule molecule)
A recursive algorithm getting all components (reactants, agents and
products of reaction molecules, R-group definitions of Rg-Molecules) of
the molecule.
|
RemoveFragmentAction.Measurement |
getMeasure()
Gets the measure of the action
|
RemoveFragmentAction.Method |
getMethod()
Gets the method of the action
|
void |
setMeasure(RemoveFragmentAction.Measurement measurement)
Sets the measurement of the action
|
void |
setMethod(RemoveFragmentAction.Method method)
Sets the method of the action
|
protected Changes |
standardize1(Molecule molecule)
This method contains the current standardization mechanism.
|
java.lang.String |
toString() |
addPropertyChangeListener, addPropertyChangeListener, cloneItem, getDescriptor, getID, isActive, isAvailable, isLicensed, isValid, propertyChange, removePropertyChangeListener, removePropertyChangeListener, setActive, setID, setLicenseEnvironment, setValid, standardize
public static final java.lang.String MEASUREMENT_KEY
public static final java.lang.String METHOD_KEY
public RemoveFragmentAction(java.util.Map<java.lang.String,java.lang.String> params)
params
- the parameters of the actionprotected java.util.List<Molecule> getComponents(Molecule molecule)
AbstractStandardizerAction
getComponents
in class AbstractStandardizerAction
molecule
- the target moleculepublic void setMethod(RemoveFragmentAction.Method method)
method
- the method to be setpublic void setMeasure(RemoveFragmentAction.Measurement measurement)
measurement
- the measurement of the actionpublic RemoveFragmentAction.Method getMethod()
public RemoveFragmentAction.Measurement getMeasure()
protected Changes standardize1(Molecule molecule)
AbstractStandardizerAction
RgMolecule
,
RxnMolecule
) are decomponented by the method
AbstractStandardizerAction.getComponents(Molecule)
, and AbstractStandardizerAction.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.Logger
, that can
be collected by using StandardizerLogger.getLogger()
method.standardize1
in class AbstractStandardizerAction
molecule
- the Molecule
instance to be standardizedpublic RemoveFragmentAction clone() throws java.lang.CloneNotSupportedException
clone
in class AbstractStandardizerAction
java.lang.CloneNotSupportedException
public java.lang.String toString()
toString
in class AbstractStandardizerAction