Package adams.db
Class SpectrumConditionsMulti
- 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.SpectrumConditionsMulti
-
- 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 SpectrumConditionsMulti extends AbstractSpectrumConditions
Conditions for the retrieval of spectra.
Several fields 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> [-field ...] (property: fields) The required fields in the sample data. default:
-min <adams.core.base.BaseDouble> [-min ...] (property: minimumValues) The required minimum values for the fields in the sample data (-1 is unbounded ). default:
-max <adams.core.base.BaseDouble> [-max ...] (property: maximumValues) The required maximum values for the fields in the sample data (-1 is unbounded ). default:
-required <knir.data.sampledata.Field> [-required ...] (property: requiredFields) The fields that are required to be present in the report, regardless of values they have. default:
- 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_Fields
the reference fields.protected adams.core.base.BaseDouble[]
m_MaximumValues
the maximum value for the field(s).protected adams.core.base.BaseDouble[]
m_MinimumValues
the minimum value for the field(s).protected adams.data.report.Field[]
m_RequiredFields
the fields that are 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 SpectrumConditionsMulti()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
defineOptions()
Adds options to the internal list of options.String
fieldsTipText()
Returns the tip text for this property.adams.data.report.Field[]
getFields()
Returns the required fields.adams.core.base.BaseDouble[]
getMaximumValues()
Returns the maximum values for the fields.adams.core.base.BaseDouble[]
getMinimumValues()
Returns the minimum values for the fields.adams.data.report.Field[]
getRequiredFields()
Returns the required fields.String
globalInfo()
Returns a string describing the object.String
maximumValuesTipText()
Returns the tip text for this property.String
minimumValuesTipText()
Returns the tip text for this property.String
requiredFieldsTipText()
Returns the tip text for this property.void
setFields(adams.data.report.Field[] value)
Sets the fields to require.void
setMaximumValues(adams.core.base.BaseDouble[] value)
Sets the maximum values to the fields.void
setMinimumValues(adams.core.base.BaseDouble[] value)
Sets the minimum values to the fields.void
setRequiredFields(adams.data.report.Field[] value)
Sets the required fields.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_Fields
protected adams.data.report.Field[] m_Fields
the reference fields.
-
m_MinimumValues
protected adams.core.base.BaseDouble[] m_MinimumValues
the minimum value for the field(s).
-
m_MaximumValues
protected adams.core.base.BaseDouble[] m_MaximumValues
the maximum value for the field(s).
-
m_RequiredFields
protected adams.data.report.Field[] m_RequiredFields
the fields that are 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
-
setFields
public void setFields(adams.data.report.Field[] value)
Sets the fields to require.- Parameters:
value
- the fields
-
getFields
public adams.data.report.Field[] getFields()
Returns the required fields.- Returns:
- the fields
-
fieldsTipText
public String fieldsTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setMinimumValues
public void setMinimumValues(adams.core.base.BaseDouble[] value)
Sets the minimum values to the fields.- Parameters:
value
- the minimum values
-
getMinimumValues
public adams.core.base.BaseDouble[] getMinimumValues()
Returns the minimum values for the fields.- Returns:
- the minimum values
-
minimumValuesTipText
public String minimumValuesTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setMaximumValues
public void setMaximumValues(adams.core.base.BaseDouble[] value)
Sets the maximum values to the fields.- Parameters:
value
- the maximum values
-
getMaximumValues
public adams.core.base.BaseDouble[] getMaximumValues()
Returns the maximum values for the fields.- Returns:
- the maximum values
-
maximumValuesTipText
public String maximumValuesTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setRequiredFields
public void setRequiredFields(adams.data.report.Field[] value)
Sets the required fields.- Parameters:
value
- the fields
-
getRequiredFields
public adams.data.report.Field[] getRequiredFields()
Returns the required fields.- Returns:
- the fields
-
requiredFieldsTipText
public String requiredFieldsTipText()
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
-
-