Class AbstractSpectrumComparator

    • Field Detail

      • m_OptionManager

        protected adams.core.option.OptionManager m_OptionManager
        for managing the available options.
    • Constructor Detail

      • AbstractSpectrumComparator

        protected AbstractSpectrumComparator()
        The default constructor uses comparison in ascending manner.
    • Method Detail

      • globalInfo

        public abstract String globalInfo()
        Returns a string describing the object.
        Returns:
        a description suitable for displaying in the gui
      • initialize

        protected void initialize()
        Initializes the members.
      • reset

        protected void reset()
        Resets the scheme. Derived classes must call this method in set-methods of parameters to assure the invalidation of previously generated data.
      • newOptionManager

        protected adams.core.option.OptionManager newOptionManager()
        Returns a new instance of the option manager.
        Returns:
        the manager to use
      • defineOptions

        public void defineOptions()
        Adds options to the internal list of options. Derived classes must override this method to add additional options.
        Specified by:
        defineOptions in interface adams.core.option.OptionHandler
      • finishInit

        protected void finishInit()
        Finishes the initialization in the constructor.
      • getOptionManager

        public adams.core.option.OptionManager getOptionManager()
        Returns the option manager.
        Specified by:
        getOptionManager in interface adams.core.option.OptionHandler
        Returns:
        the manager
      • setAscending

        public void setAscending​(boolean value)
        Sets whether to sort in ascending manner.
        Parameters:
        value - true if ascending
      • ascendingTipText

        public String ascendingTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • cleanUpOptions

        public void cleanUpOptions()
        Cleans up the options.
        Specified by:
        cleanUpOptions in interface adams.core.option.OptionHandler
      • destroy

        public void destroy()
        Frees up memory in a "destructive" non-reversible way.

        Cleans up the options.
        Specified by:
        destroy in interface adams.core.Destroyable
        See Also:
        cleanUpOptions()
      • toString

        public String toString()
        Returns a string representation of the options.
        Overrides:
        toString in class Object
        Returns:
        a string representation
      • toCommandLine

        public String toCommandLine()
        Returns the commandline string.
        Specified by:
        toCommandLine in interface adams.core.option.OptionHandler
        Returns:
        the commandline