Class CALSpectrumWriter

  • All Implemented Interfaces:
    adams.core.AdditionalInformationHandler, adams.core.CleanUpHandler, adams.core.Destroyable, adams.core.GlobalInfoSupporter, adams.core.io.FileFormatHandler, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.ShallowCopySupporter<adams.data.io.output.AbstractDataContainerWriter>, adams.core.SizeOfHandler, Serializable, Comparable

    public class CALSpectrumWriter
    extends NIRSpectrumWriter
    Write spectra to .CAL file. As per .NIR file, except with 'constituent values'. i.e. reference values.
    Author:
    dale
    See Also:
    Serialized Form
    • Field Detail

      • m_Constituents

        protected adams.data.report.Field[] m_Constituents
        constituents.
    • Constructor Detail

      • CALSpectrumWriter

        public CALSpectrumWriter()
    • Method Detail

      • 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 NIRSpectrumWriter
      • setConstituents

        public void setConstituents​(adams.data.report.Field[] value)
        Sets the constituents.
        Parameters:
        value - the fields
      • getConstituents

        public adams.data.report.Field[] getConstituents()
        Returns the constituents.
        Returns:
        the fields
      • constituentsFieldsTipText

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

        public String getFormatDescription()
        Returns a string describing the format (used in the file chooser).
        Specified by:
        getFormatDescription in interface adams.core.io.FileFormatHandler
        Overrides:
        getFormatDescription in class NIRSpectrumWriter
        Returns:
        a description suitable for displaying in the file chooser
      • getFormatExtensions

        public String[] getFormatExtensions()
        Returns the extension(s) of the format.
        Specified by:
        getFormatExtensions in interface adams.core.io.FileFormatHandler
        Overrides:
        getFormatExtensions in class NIRSpectrumWriter
        Returns:
        the extension(s) (without the dot!)