Package adams.db
Class AbstractSpectrumConditions
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.db.AbstractConditions
-
- adams.db.AbstractLimitedConditions
-
- adams.db.AbstractSpectrumConditions
-
- All Implemented Interfaces:
adams.core.Destroyable,adams.core.GlobalInfoSupporter,adams.core.logging.LoggingLevelHandler,adams.core.logging.LoggingSupporter,adams.core.option.OptionHandler,adams.core.option.PreGetOptionslistHook,adams.core.SizeOfHandler,adams.db.ReportConditions,SampleTypeRegExpSupporter,Serializable
- Direct Known Subclasses:
SpectrumConditionsMulti,SpectrumConditionsSingle
public abstract class AbstractSpectrumConditions extends adams.db.AbstractLimitedConditions implements adams.db.ReportConditions, SampleTypeRegExpSupporter
Ancestor for spectrum conditions.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected adams.core.base.BaseDateTimem_EndDatethe end date of the spectra (incl.).protected booleanm_ExcludeDummieswhether to exclude spectra with dummy reports.protected adams.core.base.BaseRegExpm_Formatthe regular expression on the format type of the spectrum.protected adams.core.base.BaseRegExpm_Instrumentthe regular expression on the name of the instrument.protected booleanm_Latestwhether to get latest (= reverse order).protected booleanm_OnlyDummieswhether to only include spectra with dummy reports.protected adams.core.base.BaseRegExpm_SampleIDRegExpthe regular expression on the name of the spectrum.protected adams.core.base.BaseRegExpm_SampleTypeRegExpthe regular expression on the sample type of the spectrum.protected booleanm_SortOnInsertTimestampwhether to sort by insert timestamp.protected booleanm_SortOnSampleIDwhether to sort by sample ID.protected adams.core.base.BaseDateTimem_StartDatethe start date of the spectra (incl.).
-
Constructor Summary
Constructors Constructor Description AbstractSpectrumConditions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheck()Checks the correctness of the provided values.voiddefineOptions()Adds options to the internal list of options.StringendDateTipText()Returns the tip text for this property.StringexcludeDummiesTipText()Returns the tip text for this property.StringformatTipText()Returns the tip text for this property.adams.core.base.BaseDateTimegetEndDate()Returns the end date.booleangetExcludeDummies()Returns whether spectra with reports flagged as dummies are excluded or not.adams.core.base.BaseRegExpgetFormat()Returns the regular expression for the format.adams.core.base.BaseRegExpgetInstrument()Returns the regular expression for the instrument name.booleangetLatest()Returns whether only the latest ones are returned (= reverse order).booleangetOnlyDummies()Returns whether only spectra with reports flagged as dummies are included or not.adams.core.base.BaseRegExpgetSampleIDRegExp()Returns the regular expression for the spectrum name.adams.core.base.BaseRegExpgetSampleTypeRegExp()Returns the regular expression for the sample type.booleangetSortOnInsertTimestamp()Returns whether to sort onSampleData.INSERT_TIMESTAMPinstead of auto ID.booleangetSortOnSampleID()Returns whether to sort onSampleData.SAMPLE_IDinstead of auto ID.adams.core.base.BaseDateTimegetStartDate()Returns the start date.StringinstrumentTipText()Returns the tip text for this property.StringlatestTipText()Returns the tip text for this property.StringonlyDummiesTipText()Returns the tip text for this property.StringsampleIDRegExpTipText()Returns the tip text for this property.StringsampleTypeRegExpTipText()Returns the tip text for this property.voidsetEndDate(adams.core.base.BaseDateTime value)Sets the end date.voidsetExcludeDummies(boolean value)Sets whether to exclude spectra with reports flagged as dummies or not.voidsetFormat(adams.core.base.BaseRegExp value)Sets the regular expression for the format.voidsetInstrument(adams.core.base.BaseRegExp value)Sets the regular expression for the instrument name.voidsetLatest(boolean value)Sets whether to get only the latest ones (= reverse order).voidsetOnlyDummies(boolean value)Sets whether to include only spectra with reports flagged as dummies or not.voidsetSampleIDRegExp(adams.core.base.BaseRegExp value)Sets the regular expression for the spectrum name.voidsetSampleTypeRegExp(adams.core.base.BaseRegExp value)Sets the regular expression for the sample type.voidsetSortOnInsertTimestamp(boolean value)Sets whether to sort onSampleData.INSERT_TIMESTAMPinstead of auto ID.voidsetSortOnSampleID(boolean value)Sets whether to sort onSampleData.SAMPLE_IDinstead of auto ID.voidsetStartDate(adams.core.base.BaseDateTime value)Sets the start date.StringsortOnInsertTimestampTipText()Returns the tip text for this property.StringsortOnSampleIDTipText()Returns the tip text for this property.StringstartDateTipText()Returns the tip text for this property.voidupdate()Automatically corrects values.-
Methods inherited from class adams.db.AbstractLimitedConditions
getDefaultLimit, getLimit, limitTipText, setLimit
-
Methods inherited from class adams.db.AbstractConditions
compareTo, equals, forCommandLine, forName, getFilters, preGetOptionsList, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_Instrument
protected adams.core.base.BaseRegExp m_Instrument
the regular expression on the name of the instrument.
-
m_SampleIDRegExp
protected adams.core.base.BaseRegExp m_SampleIDRegExp
the regular expression on the name of the spectrum.
-
m_SampleTypeRegExp
protected adams.core.base.BaseRegExp m_SampleTypeRegExp
the regular expression on the sample type of the spectrum.
-
m_Format
protected adams.core.base.BaseRegExp m_Format
the regular expression on the format type of the spectrum.
-
m_StartDate
protected adams.core.base.BaseDateTime m_StartDate
the start date of the spectra (incl.).
-
m_EndDate
protected adams.core.base.BaseDateTime m_EndDate
the end date of the spectra (incl.).
-
m_ExcludeDummies
protected boolean m_ExcludeDummies
whether to exclude spectra with dummy reports.
-
m_OnlyDummies
protected boolean m_OnlyDummies
whether to only include spectra with dummy reports.
-
m_Latest
protected boolean m_Latest
whether to get latest (= reverse order).
-
m_SortOnInsertTimestamp
protected boolean m_SortOnInsertTimestamp
whether to sort by insert timestamp.
-
m_SortOnSampleID
protected boolean m_SortOnSampleID
whether to sort by sample ID.
-
-
Method Detail
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceadams.core.option.OptionHandler- Overrides:
defineOptionsin classadams.db.AbstractLimitedConditions
-
setInstrument
public void setInstrument(adams.core.base.BaseRegExp value)
Sets the regular expression for the instrument name.- Parameters:
value- the regular expression
-
getInstrument
public adams.core.base.BaseRegExp getInstrument()
Returns the regular expression for the instrument name.- Returns:
- the regular expression
-
instrumentTipText
public String instrumentTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setSampleIDRegExp
public void setSampleIDRegExp(adams.core.base.BaseRegExp value)
Sets the regular expression for the spectrum name.- Parameters:
value- the regular expression
-
getSampleIDRegExp
public adams.core.base.BaseRegExp getSampleIDRegExp()
Returns the regular expression for the spectrum name.- Returns:
- the regular expression
-
sampleIDRegExpTipText
public String sampleIDRegExpTipText()
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(adams.core.base.BaseRegExp value)
Sets the regular expression for the format.- Parameters:
value- the regular expression
-
getFormat
public adams.core.base.BaseRegExp getFormat()
Returns the regular expression for the format.- Returns:
- the regular expression
-
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.
-
setSampleTypeRegExp
public void setSampleTypeRegExp(adams.core.base.BaseRegExp value)
Sets the regular expression for the sample type.- Specified by:
setSampleTypeRegExpin interfaceSampleTypeRegExpSupporter- Parameters:
value- the regular expression
-
getSampleTypeRegExp
public adams.core.base.BaseRegExp getSampleTypeRegExp()
Returns the regular expression for the sample type.- Specified by:
getSampleTypeRegExpin interfaceSampleTypeRegExpSupporter- Returns:
- the regular expression
-
sampleTypeRegExpTipText
public String sampleTypeRegExpTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setStartDate
public void setStartDate(adams.core.base.BaseDateTime value)
Sets the start date.- Parameters:
value- the start date
-
getStartDate
public adams.core.base.BaseDateTime getStartDate()
Returns the start date.- Returns:
- the start date
-
startDateTipText
public String startDateTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setEndDate
public void setEndDate(adams.core.base.BaseDateTime value)
Sets the end date.- Parameters:
value- the end date
-
getEndDate
public adams.core.base.BaseDateTime getEndDate()
Returns the end date.- Returns:
- the end date
-
endDateTipText
public String endDateTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setExcludeDummies
public void setExcludeDummies(boolean value)
Sets whether to exclude spectra with reports flagged as dummies or not.- Specified by:
setExcludeDummiesin interfaceadams.db.ReportConditions- Parameters:
value- if true then dummies are excluded
-
getExcludeDummies
public boolean getExcludeDummies()
Returns whether spectra with reports flagged as dummies are excluded or not.- Specified by:
getExcludeDummiesin interfaceadams.db.ReportConditions- Returns:
- true if dummies are to be excluded
-
excludeDummiesTipText
public String excludeDummiesTipText()
Returns the tip text for this property.- Specified by:
excludeDummiesTipTextin interfaceadams.db.ReportConditions- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setOnlyDummies
public void setOnlyDummies(boolean value)
Sets whether to include only spectra with reports flagged as dummies or not.- Specified by:
setOnlyDummiesin interfaceadams.db.ReportConditions- Parameters:
value- if true then only dummies are included
-
getOnlyDummies
public boolean getOnlyDummies()
Returns whether only spectra with reports flagged as dummies are included or not.- Specified by:
getOnlyDummiesin interfaceadams.db.ReportConditions- Returns:
- true if only dummies are to be included
-
onlyDummiesTipText
public String onlyDummiesTipText()
Returns the tip text for this property.- Specified by:
onlyDummiesTipTextin interfaceadams.db.ReportConditions- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setLatest
public void setLatest(boolean value)
Sets whether to get only the latest ones (= reverse order).- Parameters:
value- if true then the latest ones are returned
-
getLatest
public boolean getLatest()
Returns whether only the latest ones are returned (= reverse order).- Returns:
- true if only latest ones are returned
-
latestTipText
public String latestTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setSortOnInsertTimestamp
public void setSortOnInsertTimestamp(boolean value)
Sets whether to sort onSampleData.INSERT_TIMESTAMPinstead of auto ID.- Parameters:
value- if true then to sort onSampleData.INSERT_TIMESTAMP
-
getSortOnInsertTimestamp
public boolean getSortOnInsertTimestamp()
Returns whether to sort onSampleData.INSERT_TIMESTAMPinstead of auto ID.- Returns:
- true if to sort on
SampleData.INSERT_TIMESTAMP
-
sortOnInsertTimestampTipText
public String sortOnInsertTimestampTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setSortOnSampleID
public void setSortOnSampleID(boolean value)
Sets whether to sort onSampleData.SAMPLE_IDinstead of auto ID.- Parameters:
value- if true then to sort onSampleData.SAMPLE_ID
-
getSortOnSampleID
public boolean getSortOnSampleID()
Returns whether to sort onSampleData.SAMPLE_IDinstead of auto ID.- Returns:
- true if to sort on
SampleData.SAMPLE_ID
-
sortOnSampleIDTipText
public String sortOnSampleIDTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
check
public void check()
Checks the correctness of the provided values.- Overrides:
checkin classadams.db.AbstractConditions
-
update
public void update()
Automatically corrects values.- Specified by:
updatein classadams.db.AbstractConditions
-
-