Class SaveMultiSpectrumFileOutput

  • All Implemented Interfaces:
    adams.core.AdditionalInformationHandler, adams.core.CleanUpHandler, adams.core.Destroyable, adams.core.GlobalInfoSupporter, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.QuickInfoSupporter, adams.core.ShallowCopySupporter<adams.flow.standalone.rats.output.AbstractRatOutput>, adams.core.SizeOfHandler, adams.core.Stoppable, adams.core.StoppableWithFeedback, adams.event.VariableChangeListener, adams.flow.standalone.rats.output.RatOutput, Serializable

    public class SaveMultiSpectrumFileOutput
    extends adams.flow.standalone.rats.output.AbstractRatOutput
    Writes the input spectrum to the file that the filename generator produces.

    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected adams.core.io.AbstractFilenameGenerator m_FilenameGenerator
      the filename generator to use.
      protected AbstractSpectrumWriter m_Writer
      the sprectrum writer to use.
      • Fields inherited from class adams.flow.standalone.rats.output.AbstractRatOutput

        m_BackupState, m_DetectedObjectVariables, m_DetectedVariables, m_Input, m_LoggingPrefix, m_Owner, m_Stopped, m_VariablesUpdated
      • Fields inherited from class adams.core.option.AbstractOptionHandler

        m_OptionManager
      • Fields inherited from class adams.core.logging.LoggingObject

        m_Logger, m_LoggingIsEnabled, m_LoggingLevel
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Class[] accepts()
      Returns the type of data that gets accepted.
      void defineOptions()
      Adds options to the internal list of options.
      protected String doTransmit()
      Performs the actual transmission.
      String filenameGeneratorTipText()
      Returns the tip text for this property.
      protected adams.core.io.AbstractFilenameGenerator getDefaultFilenameGenerator()
      Returns the default filename generator to use.
      protected AbstractSpectrumWriter getDefaultWriter()
      Returns the default writer to use.
      adams.core.io.AbstractFilenameGenerator getFilenameGenerator()
      Returns the filename generator in use.
      String getQuickInfo()
      Returns a quick info about the actor, which will be displayed in the GUI.
      AbstractSpectrumWriter getWriter()
      Returns the writer in use.
      String globalInfo()
      Returns a string describing the object.
      void setFilenameGenerator​(adams.core.io.AbstractFilenameGenerator value)
      Sets the filename generator to use.
      void setWriter​(AbstractSpectrumWriter value)
      Sets the writer to use.
      String writerTipText()
      Returns the tip text for this property.
      • Methods inherited from class adams.flow.standalone.rats.output.AbstractRatOutput

        backupState, canInput, check, cleanUp, configureLogger, doWait, findVariables, getAdditionalInformation, getFullName, getOwner, getQueue, getVariables, handleException, initialize, initTransmission, input, isBackedUp, isStopped, pruneBackup, pruneBackup, restoreState, setOwner, setUp, shallowCopy, shallowCopy, stopExecution, transmit, updateDetectedVariables, updatePrefix, updateVariables, variableChanged
      • Methods inherited from class adams.core.option.AbstractOptionHandler

        cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
      • Methods inherited from class adams.core.logging.LoggingObject

        getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
      • Methods inherited from interface adams.core.Destroyable

        destroy
      • Methods inherited from interface adams.core.logging.LoggingLevelHandler

        getLoggingLevel
      • Methods inherited from interface adams.core.option.OptionHandler

        cleanUpOptions, getOptionManager, toCommandLine
    • Field Detail

      • m_FilenameGenerator

        protected adams.core.io.AbstractFilenameGenerator m_FilenameGenerator
        the filename generator to use.
    • Constructor Detail

      • SaveMultiSpectrumFileOutput

        public SaveMultiSpectrumFileOutput()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the object.
        Specified by:
        globalInfo in interface adams.core.GlobalInfoSupporter
        Specified by:
        globalInfo in class adams.core.option.AbstractOptionHandler
        Returns:
        a description suitable for displaying in the gui
      • defineOptions

        public void defineOptions()
        Adds options to the internal list of options.
        Specified by:
        defineOptions in interface adams.core.option.OptionHandler
        Overrides:
        defineOptions in class adams.core.option.AbstractOptionHandler
      • getDefaultFilenameGenerator

        protected adams.core.io.AbstractFilenameGenerator getDefaultFilenameGenerator()
        Returns the default filename generator to use.
        Returns:
        the default generator
      • setFilenameGenerator

        public void setFilenameGenerator​(adams.core.io.AbstractFilenameGenerator value)
        Sets the filename generator to use.
        Parameters:
        value - the generator
      • getFilenameGenerator

        public adams.core.io.AbstractFilenameGenerator getFilenameGenerator()
        Returns the filename generator in use.
        Returns:
        the generator
      • filenameGeneratorTipText

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

        protected AbstractSpectrumWriter getDefaultWriter()
        Returns the default writer to use.
        Returns:
        the default writer
      • setWriter

        public void setWriter​(AbstractSpectrumWriter value)
        Sets the writer to use.
        Parameters:
        value - the filter
      • writerTipText

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

        public String getQuickInfo()
        Returns a quick info about the actor, which will be displayed in the GUI.
        Specified by:
        getQuickInfo in interface adams.core.QuickInfoSupporter
        Overrides:
        getQuickInfo in class adams.flow.standalone.rats.output.AbstractRatOutput
        Returns:
        null if no info available, otherwise short string
      • accepts

        public Class[] accepts()
        Returns the type of data that gets accepted.
        Specified by:
        accepts in interface adams.flow.standalone.rats.output.RatOutput
        Specified by:
        accepts in class adams.flow.standalone.rats.output.AbstractRatOutput
        Returns:
        the type of data
      • doTransmit

        protected String doTransmit()
        Performs the actual transmission.
        Specified by:
        doTransmit in class adams.flow.standalone.rats.output.AbstractRatOutput
        Returns:
        null if successful, otherwise error message