Package adams.db
Class SpectrumConditionsSingle
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.db.AbstractConditions
-
- adams.db.AbstractLimitedConditions
-
- adams.db.AbstractSpectrumConditions
-
- adams.db.SpectrumConditionsSingle
-
- 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
public class SpectrumConditionsSingle extends AbstractSpectrumConditions
Conditions for the retrieval of spectra.
Only a single field can be specified.
Valid options are:
-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
-limit <int> (property: limit) The maximum number of records to retrieve. default: 10000 minimum: -1
-instrument <adams.core.base.BaseRegExp> (property: instrument) The regular expression on the instrument. default:
-sampleid <adams.core.base.BaseRegExp> (property: sampleIDRegExp) The regular expression on the spectrum ID. default:
-format <adams.core.base.BaseRegExp> (property: format) The regular expression on the data format. default:
-type <adams.core.base.BaseRegExp> (property: sampleTypeRegExp) The regular expression on the sample type. default:
-start <adams.core.base.BaseDateTime> (property: startDate) The start date for the spectra (yyyy-MM-dd HH:mm:ss). default: -INF
-end <adams.core.base.BaseDateTime> (property: endDate) The end date for the spectra (yyyy-MM-dd HH:mm:ss). default: +INF
-no-dummies (property: excludeDummies) If set to true, then spectra with sample data flagged as dummies will be excluded.
-only-dummies (property: onlyDummies) If set to true, then only spectra with sample data flagged as dummies will be included.
-latest (property: latest) If set to true, order is reversed and only latest ones are returned.
-field <knir.data.sampledata.Field> (property: field) The required field in the sample data. default: [U]
-min <adams.core.base.BaseDouble> (property: minimumValue) The required minimum value for the field in the sample data (-1 is unbounded ). default: -1.0
-max <adams.core.base.BaseDouble> (property: maximumValue) The required maximum value for the field in the sample data (-1 is unbounded ). default: -1.0
-required <knir.data.sampledata.Field> (property: requiredField) The field that is required to be present in the report, regardless of values it has. default: [U]
- Version:
- $Revision: 11831 $
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected adams.data.report.Field
m_Field
the reference fields.protected adams.core.base.BaseDouble
m_MaximumValue
the maximum value for the field.protected adams.core.base.BaseDouble
m_MinimumValue
the minimum value for the field.protected adams.data.report.Field
m_RequiredField
the field that us required to be present in report.-
Fields inherited from class adams.db.AbstractSpectrumConditions
m_EndDate, m_ExcludeDummies, m_Format, m_Instrument, m_Latest, m_OnlyDummies, m_SampleIDRegExp, m_SampleTypeRegExp, m_SortOnInsertTimestamp, m_SortOnSampleID, m_StartDate
-
-
Constructor Summary
Constructors Constructor Description SpectrumConditionsSingle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
defineOptions()
Adds options to the internal list of options.String
fieldTipText()
Returns the tip text for this property.adams.data.report.Field
getField()
Returns the required field.adams.core.base.BaseDouble
getMaximumValue()
Returns the maximum values for the fields.adams.core.base.BaseDouble
getMinimumValue()
Returns the minimum value for the field.adams.data.report.Field
getRequiredField()
Returns the required field.String
globalInfo()
Returns a string describing the object.String
maximumValueTipText()
Returns the tip text for this property.String
minimumValueTipText()
Returns the tip text for this property.String
requiredFieldTipText()
Returns the tip text for this property.void
setField(adams.data.report.Field value)
Sets the field to require.void
setMaximumValue(adams.core.base.BaseDouble value)
Sets the maximum value to the fields.void
setMinimumValue(adams.core.base.BaseDouble value)
Sets the minimum value for the field.void
setRequiredField(adams.data.report.Field value)
Sets the required field.void
update()
Automatically corrects values.-
Methods inherited from class adams.db.AbstractSpectrumConditions
check, endDateTipText, excludeDummiesTipText, formatTipText, getEndDate, getExcludeDummies, getFormat, getInstrument, getLatest, getOnlyDummies, getSampleIDRegExp, getSampleTypeRegExp, getSortOnInsertTimestamp, getSortOnSampleID, getStartDate, instrumentTipText, latestTipText, onlyDummiesTipText, sampleIDRegExpTipText, sampleTypeRegExpTipText, setEndDate, setExcludeDummies, setFormat, setInstrument, setLatest, setOnlyDummies, setSampleIDRegExp, setSampleTypeRegExp, setSortOnInsertTimestamp, setSortOnSampleID, setStartDate, sortOnInsertTimestampTipText, sortOnSampleIDTipText, startDateTipText
-
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, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_Field
protected adams.data.report.Field m_Field
the reference fields.
-
m_MinimumValue
protected adams.core.base.BaseDouble m_MinimumValue
the minimum value for the field.
-
m_MaximumValue
protected adams.core.base.BaseDouble m_MaximumValue
the maximum value for the field.
-
m_RequiredField
protected adams.data.report.Field m_RequiredField
the field that us required to be present in report.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceadams.core.GlobalInfoSupporter
- Specified by:
globalInfo
in 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:
defineOptions
in interfaceadams.core.option.OptionHandler
- Overrides:
defineOptions
in classAbstractSpectrumConditions
-
setField
public void setField(adams.data.report.Field value)
Sets the field to require.- Parameters:
value
- the field
-
getField
public adams.data.report.Field getField()
Returns the required field.- Returns:
- the field
-
fieldTipText
public String fieldTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setMinimumValue
public void setMinimumValue(adams.core.base.BaseDouble value)
Sets the minimum value for the field.- Parameters:
value
- the minimum value
-
getMinimumValue
public adams.core.base.BaseDouble getMinimumValue()
Returns the minimum value for the field.- Returns:
- the minimum value
-
minimumValueTipText
public String minimumValueTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setMaximumValue
public void setMaximumValue(adams.core.base.BaseDouble value)
Sets the maximum value to the fields.- Parameters:
value
- the maximum value
-
getMaximumValue
public adams.core.base.BaseDouble getMaximumValue()
Returns the maximum values for the fields.- Returns:
- the maximum values
-
maximumValueTipText
public String maximumValueTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setRequiredField
public void setRequiredField(adams.data.report.Field value)
Sets the required field.- Parameters:
value
- the field
-
getRequiredField
public adams.data.report.Field getRequiredField()
Returns the required field.- Returns:
- the field
-
requiredFieldTipText
public String requiredFieldTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
update
public void update()
Automatically corrects values.- Overrides:
update
in classAbstractSpectrumConditions
-
-