Class TransformAction

    • Field Detail

      • SEARCH_OPTIONS_KEY

        public static final String SEARCH_OPTIONS_KEY
        Key of search options for parsing and property change
        See Also:
        Constant Field Values
      • STRUCTURE_KEY

        public static final String STRUCTURE_KEY
        Key of query molecule for parsing and property change
        See Also:
        Constant Field Values
      • LINE_SEP

        protected static final String LINE_SEP
        Line separator.
    • Constructor Detail

      • TransformAction

        public TransformAction​(Map<String,​String> params)
        Initializes the action with parameters
        Parameters:
        params - the parameters of the action
    • Method Detail

      • setSearchOptions

        public void setSearchOptions​(String optionString)
        Sets the search options of the action
        Parameters:
        optionString - the search options of the action
      • getSearchOptions

        public String getSearchOptions()
        Gets the search options of the action
        Returns:
        the search options of the action
      • setEditable

        public void setEditable​(boolean editable)
        Sets if this action is editable.
        Parameters:
        editable - the new editable flag
      • isEditable

        public boolean isEditable()
        Returns if this action is editable.
        Returns:
        true if the action is editable
      • setExact

        public void setExact​(boolean exact)
        Sets the exact value of the action
        Parameters:
        exact - the exact value of the action
      • isExact

        public boolean isExact()
        Gets the exact value of the action
        Returns:
        the exact value of the action
      • setStructure

        @Deprecated
        public void setStructure​(String structure)
        Deprecated.
        use setTransform(RxnMolecule) method instead
        Sets the transformation
        Parameters:
        structure - the molecule defining the transformation
      • setTransform

        public void setTransform​(RxnMolecule structure)
        Sets the transformation
        Parameters:
        structure - the molecule defining the transformation
      • getStructure

        @Deprecated
        public String getStructure()
        Deprecated.
        Gets the transformation
        Returns:
        the string representation of the molecule defining the transformation
      • getTransform

        public RxnMolecule getTransform()
        Gets the transformation molecule of the action
        Returns:
        the transformation molecule of the action
      • getType

        public String getType()
        Gets the type of transformation
        Returns:
        the type of the transformation
      • getComponents

        protected List<Molecule> getComponents​(Molecule molecule)
        Description copied from class: AbstractStandardizerAction
        A recursive algorithm getting all components (reactants, agents and products of reaction molecules, R-group definitions of Rg-Molecules) of the molecule. Used to collect all. If components must not be standardized, this method should be overridden.
        Overrides:
        getComponents in class AbstractStandardizerAction
        Parameters:
        molecule - the target molecule
        Returns:
        the resulted list of components