Package adams.data.conversion
Class ArrayToSpectrum
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.conversion.AbstractConversion
-
- adams.data.conversion.ArrayToSpectrum
-
- 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.data.conversion.AbstractConversion>,adams.core.SizeOfHandler,adams.core.Stoppable,adams.data.conversion.Conversion,Serializable
public class ArrayToSpectrum extends adams.data.conversion.AbstractConversionConverts a float array representing amplitudes into a spectrum.
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-id <java.lang.String> (property: ID) The sample ID to use. default:
-format <java.lang.String> (property: format) The format to use. default: NIR
-waveno-start <float> (property: waveNoStart) The first wave number to use. default: 1550.0
-waveno-inc <float> (property: waveNoInc) The increment to use between wave numbers. default: 2.0 minimum: 0.0
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringm_Formatthe format.protected Stringm_IDthe sample id.protected floatm_WaveNoIncthe wave number increment.protected floatm_WaveNoStartthe starting wave number.
-
Constructor Summary
Constructors Constructor Description ArrayToSpectrum()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Classaccepts()Returns the class that is accepted as input.voiddefineOptions()Adds options to the internal list of options.protected ObjectdoConvert()Performs the actual conversion.StringformatTipText()Returns the tip text for this property.Classgenerates()Returns the class that is generated as output.StringgetFormat()Returns the format.StringgetID()Returns the sample ID.floatgetWaveNoInc()Returns the increment to use between wave numbers.floatgetWaveNoStart()Returns the first wave number to use.StringglobalInfo()Returns a string describing the object.StringIDTipText()Returns the tip text for this property.voidsetFormat(String value)Sets the format.voidsetID(String value)Sets the sample ID.voidsetWaveNoInc(float value)Sets the increment to use between wave numbers.voidsetWaveNoStart(float value)Sets the first wave number to use.StringwaveNoIncTipText()Returns the tip text for this property.StringwaveNoStartTipText()Returns the tip text for this property.-
Methods inherited from class adams.data.conversion.AbstractConversion
checkData, cleanUp, convert, getAdditionalInformation, getInput, getInput, getOutput, getOutput, getOwner, getQuickInfo, reset, setInput, setOwner, shallowCopy, shallowCopy, stopExecution
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceadams.core.GlobalInfoSupporter- Specified by:
globalInfoin classadams.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:
defineOptionsin interfaceadams.core.option.OptionHandler- Overrides:
defineOptionsin classadams.core.option.AbstractOptionHandler
-
setID
public void setID(String value)
Sets the sample ID.- Parameters:
value- the sample ID
-
getID
public String getID()
Returns the sample ID.- Returns:
- the sample ID
-
IDTipText
public String IDTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setFormat
public void setFormat(String value)
Sets the format.- Parameters:
value- the format
-
getFormat
public String getFormat()
Returns the format.- Returns:
- the format
-
formatTipText
public String formatTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setWaveNoStart
public void setWaveNoStart(float value)
Sets the first wave number to use.- Parameters:
value- the wave no
-
getWaveNoStart
public float getWaveNoStart()
Returns the first wave number to use.- Returns:
- the wave no
-
waveNoStartTipText
public String waveNoStartTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setWaveNoInc
public void setWaveNoInc(float value)
Sets the increment to use between wave numbers.- Parameters:
value- the increment
-
getWaveNoInc
public float getWaveNoInc()
Returns the increment to use between wave numbers.- Returns:
- the increment
-
waveNoIncTipText
public String waveNoIncTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
accepts
public Class accepts()
Returns the class that is accepted as input.- Specified by:
acceptsin interfaceadams.data.conversion.Conversion- Specified by:
acceptsin classadams.data.conversion.AbstractConversion- Returns:
- the class
-
generates
public Class generates()
Returns the class that is generated as output.- Specified by:
generatesin interfaceadams.data.conversion.Conversion- Specified by:
generatesin classadams.data.conversion.AbstractConversion- Returns:
- the class
-
-