Package adams.data.baseline
Class AbstractBaselineCorrection.BaselineCorrectionJob<T extends DataContainer>
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.multiprocess.AbstractJob
-
- adams.data.baseline.AbstractBaselineCorrection.BaselineCorrectionJob<T>
-
- All Implemented Interfaces:
CleanUpHandler,LoggingLevelHandler,LoggingSupporter,SizeOfHandler,Stoppable,StoppableWithFeedback,Job,Serializable
- Enclosing class:
- AbstractBaselineCorrection<T extends DataContainer>
public static class AbstractBaselineCorrection.BaselineCorrectionJob<T extends DataContainer> extends AbstractJob
A job class specific to baseline correction schemes.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractBaselineCorrectionm_BaselineCorrectionthe baseline correction scheme to use.protected Tm_CorrectedDatathe corrected data.protected Tm_Datathe data to push through the baseline correction scheme.-
Fields inherited from class adams.multiprocess.AbstractJob
m_Complete, m_ExecutionError, m_JobCompleteListener, m_JobInfo, m_ProgressInfo, m_Stopped
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description BaselineCorrectionJob(AbstractBaselineCorrection baseline, T data)Initializes the job.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanUp()Cleans up data structures, frees up memory.protected StringgetAdditionalErrorInformation()Returns additional information to be added to the error message.AbstractBaselineCorrectiongetBaselineCorretion()Returns the baseline correction scheme being used.TgetCorrectedData()The output data, if any.TgetData()The input data.protected StringpostProcessCheck()Checks whether all post-conditions have been met.protected StringpreProcessCheck()Checks whether all pre-conditions have been met.protected voidprocess()Does the actual execution of the job.StringtoString()Returns a string representation of the job.-
Methods inherited from class adams.multiprocess.AbstractJob
execute, getExecutionError, getJobCompleteListener, getJobInfo, getProgressInfo, hasExecutionError, isComplete, isStopped, jobCompleted, setJobCompleteListener, setJobInfo, setProgressInfo, stopExecution
-
Methods inherited from class adams.core.logging.CustomLoggingLevelObject
setLoggingLevel
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
Methods inherited from interface adams.core.logging.LoggingSupporter
getLogger, isLoggingEnabled
-
-
-
-
Field Detail
-
m_BaselineCorrection
protected AbstractBaselineCorrection m_BaselineCorrection
the baseline correction scheme to use.
-
m_Data
protected T extends DataContainer m_Data
the data to push through the baseline correction scheme.
-
m_CorrectedData
protected T extends DataContainer m_CorrectedData
the corrected data.
-
-
Constructor Detail
-
BaselineCorrectionJob
public BaselineCorrectionJob(AbstractBaselineCorrection baseline, T data)
Initializes the job.- Parameters:
baseline- the baseline correction scheme to use for correctingdata- the data to pass through the baseline correction scheme
-
-
Method Detail
-
getBaselineCorretion
public AbstractBaselineCorrection getBaselineCorretion()
Returns the baseline correction scheme being used.- Returns:
- the baseline correction scheme in use
-
getData
public T getData()
The input data.- Returns:
- the input data
-
getCorrectedData
public T getCorrectedData()
The output data, if any.- Returns:
- the output data, or null in case of an error
-
preProcessCheck
protected String preProcessCheck()
Checks whether all pre-conditions have been met.- Specified by:
preProcessCheckin classAbstractJob- Returns:
- null if everything is OK, otherwise an error message
-
process
protected void process() throws ExceptionDoes the actual execution of the job.- Specified by:
processin classAbstractJob- Throws:
Exception- if fails to execute job
-
postProcessCheck
protected String postProcessCheck()
Checks whether all post-conditions have been met.- Specified by:
postProcessCheckin classAbstractJob- Returns:
- null if everything is OK, otherwise an error message
-
cleanUp
public void cleanUp()
Cleans up data structures, frees up memory. Sets the input data to null.- Specified by:
cleanUpin interfaceCleanUpHandler- Specified by:
cleanUpin interfaceJob- Overrides:
cleanUpin classAbstractJob
-
getAdditionalErrorInformation
protected String getAdditionalErrorInformation()
Returns additional information to be added to the error message.- Overrides:
getAdditionalErrorInformationin classAbstractJob- Returns:
- the additional information
-
toString
public String toString()
Returns a string representation of the job.- Specified by:
toStringin classAbstractJob- Returns:
- a string representation
-
-