@Entity @Indexed(index="FullText") @ClassBridge(name="details", impl=DetailsFieldBridge.class, index=UN_TOKENIZED, store=NO) public class LogicalChannel extends java.lang.Object implements java.io.Serializable, IObject, IMutable
Modifier and Type | Class and Description |
---|---|
static class |
LogicalChannel.Details |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
_dynamicFields |
protected boolean |
_loaded |
protected java.util.Set<Channel> |
channels |
static java.lang.String |
CHANNELS |
protected ContrastMethod |
contrastMethod |
static java.lang.String |
CONTRASTMETHOD |
protected Details |
details |
static java.lang.String |
DETAILS |
protected DetectorSettings |
detectorSettings |
static java.lang.String |
DETECTORSETTINGS |
protected Length |
emissionWave |
static java.lang.String |
EMISSIONWAVE |
static java.lang.String |
EVENT_FILTER |
static java.lang.String |
EVENT_FILTER_CHANNELS |
protected Length |
excitationWave |
static java.lang.String |
EXCITATIONWAVE |
static java.util.Set<java.lang.String> |
FIELDS |
protected FilterSet |
filterSet |
static java.lang.String |
FILTERSET |
protected java.lang.String |
fluor |
static java.lang.String |
FLUOR |
static java.lang.String |
GROUP_FILTER |
static java.lang.String |
GROUP_FILTER_CHANNELS |
protected java.lang.Long |
id |
static java.lang.String |
ID |
protected Illumination |
illumination |
static java.lang.String |
ILLUMINATION |
protected LightPath |
lightPath |
static java.lang.String |
LIGHTPATH |
protected LightSettings |
lightSourceSettings |
static java.lang.String |
LIGHTSOURCESETTINGS |
protected AcquisitionMode |
mode |
static java.lang.String |
MODE |
protected java.lang.String |
name |
static java.lang.String |
NAME |
protected java.lang.Double |
ndFilter |
static java.lang.String |
NDFILTER |
protected OTF |
otf |
static java.lang.String |
OTF |
static java.lang.String |
OWNER_FILTER |
static java.lang.String |
OWNER_FILTER_CHANNELS |
static java.lang.String |
PERMS_FILTER |
static java.lang.String |
PERMS_FILTER_CHANNELS |
protected PhotometricInterpretation |
photometricInterpretation |
static java.lang.String |
PHOTOMETRICINTERPRETATION |
protected Length |
pinHoleSize |
static java.lang.String |
PINHOLESIZE |
protected java.lang.Integer |
pockelCellSetting |
static java.lang.String |
POCKELCELLSETTING |
protected java.lang.Integer |
samplesPerPixel |
static java.lang.String |
SAMPLESPERPIXEL |
protected java.lang.Integer |
version |
static java.lang.String |
VERSION |
Modifier | Constructor and Description |
---|---|
|
LogicalChannel() |
protected |
LogicalChannel(java.lang.Long id) |
|
LogicalChannel(java.lang.Long id,
boolean loaded)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter __filter) |
void |
addChannel(Channel target)
use instead of setChannels .
|
void |
addChannelSet(java.util.Collection<Channel> targets)
use like addChannel.
|
void |
clearChannels()
clears the set.
|
<E> java.util.List<E> |
collectChannels(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.core.Channel while
collecting the results.
|
protected void |
errorIfUnloaded() |
java.util.Set<java.lang.String> |
fields()
returns a Set of field names that belong to this class
|
protected java.util.Set<Channel> |
getChannels()
returns channels .
|
ContrastMethod |
getContrastMethod()
Many-to-one field ome.model.core.LogicalChannel.contrastMethod (ome.model.enums.ContrastMethod)
|
Details |
getDetails()
The details of this object correspond to low-level system
information.
|
DetectorSettings |
getDetectorSettings()
Many-to-one field ome.model.core.LogicalChannel.detectorSettings (ome.model.acquisition.DetectorSettings)
|
Length |
getEmissionWave()
Enum-mapped unit-based field ome.model.core.LogicalChannel.emissionWave (ome.model.units.Length)
|
Length |
getExcitationWave()
Enum-mapped unit-based field ome.model.core.LogicalChannel.excitationWave (ome.model.units.Length)
|
FilterSet |
getFilterSet()
Many-to-one field ome.model.core.LogicalChannel.filterSet (ome.model.acquisition.FilterSet)
|
java.lang.String |
getFluor()
Simple field ome.model.core.LogicalChannel.fluor (java.lang.String)
|
GraphHolder |
getGraphHolder()
retrieves the
GraphHolder for this entity. |
java.lang.Long |
getId()
The DB unique identifier for this object.
|
Illumination |
getIllumination()
Many-to-one field ome.model.core.LogicalChannel.illumination (ome.model.enums.Illumination)
|
LightPath |
getLightPath()
Many-to-one field ome.model.core.LogicalChannel.lightPath (ome.model.acquisition.LightPath)
|
LightSettings |
getLightSourceSettings()
Many-to-one field ome.model.core.LogicalChannel.lightSourceSettings (ome.model.acquisition.LightSettings)
|
AcquisitionMode |
getMode()
Many-to-one field ome.model.core.LogicalChannel.mode (ome.model.enums.AcquisitionMode)
|
java.lang.String |
getName()
Simple field ome.model.core.LogicalChannel.name (java.lang.String)
|
java.lang.Double |
getNdFilter()
Simple field ome.model.core.LogicalChannel.ndFilter (java.lang.Double)
|
OTF |
getOtf()
Many-to-one field ome.model.core.LogicalChannel.otf (ome.model.acquisition.OTF)
|
PhotometricInterpretation |
getPhotometricInterpretation()
Many-to-one field ome.model.core.LogicalChannel.photometricInterpretation (ome.model.enums.PhotometricInterpretation)
|
Length |
getPinHoleSize()
Enum-mapped unit-based field ome.model.core.LogicalChannel.pinHoleSize (ome.model.units.Length)
|
java.lang.Integer |
getPockelCellSetting()
Simple field ome.model.core.LogicalChannel.pockelCellSetting (java.lang.Integer)
|
java.lang.Integer |
getSamplesPerPixel()
Simple field ome.model.core.LogicalChannel.samplesPerPixel (java.lang.Integer)
|
java.lang.Integer |
getVersion()
This version number is controlled by the database for optimisitic
locking.
|
boolean |
isLoaded()
transient field (not stored in the DB) which specifies whether this
object has been loaded from the DB or is only a wrapper around the ID.
|
boolean |
isValid()
calls the class-specific validator for this instance and returns the
value from
Validation.isValid() |
java.util.Iterator<Channel> |
iterateChannels()
should be used rather than accessing the channels set directly.
|
LogicalChannel |
newInstance() |
LogicalChannel |
proxy() |
void |
putAt(java.lang.String field,
java.lang.Object value)
stores a value in this instance.
|
void |
removeChannel(Channel target)
removes a single element from this set and makes the inverse call on ome.model.core.Channel
|
void |
removeChannelSet(java.util.Collection<Channel> targets)
use like removeChannel
|
java.lang.Object |
retrieve(java.lang.String field)
retrieves a value from this instance.
|
protected void |
setChannels(java.util.Set<Channel> channels)
setter for channels should be avoided.
|
void |
setContrastMethod(ContrastMethod contrastMethod) |
protected void |
setDetails(Details details) |
void |
setDetectorSettings(DetectorSettings detectorSettings) |
void |
setEmissionWave(Length emissionWave) |
void |
setExcitationWave(Length excitationWave) |
void |
setFilterSet(FilterSet filterSet) |
void |
setFluor(java.lang.String fluor) |
void |
setId(java.lang.Long id)
usually unneeded.
|
void |
setIllumination(Illumination illumination) |
void |
setLightPath(LightPath lightPath) |
void |
setLightSourceSettings(LightSettings lightSourceSettings) |
void |
setMode(AcquisitionMode mode) |
void |
setName(java.lang.String name) |
void |
setNdFilter(java.lang.Double ndFilter) |
void |
setOtf(OTF otf) |
void |
setPhotometricInterpretation(PhotometricInterpretation photometricInterpretation) |
void |
setPinHoleSize(Length pinHoleSize) |
void |
setPockelCellSetting(java.lang.Integer pockelCellSetting) |
void |
setSamplesPerPixel(java.lang.Integer samplesPerPixel) |
void |
setVersion(java.lang.Integer version)
use with caution.
|
int |
sizeOfChannels()
returns the size of channels.
|
protected void |
throwNullCollectionException(java.lang.String propertyName) |
java.lang.String |
toString() |
void |
unload()
set the loaded field to false, and set all non-ID fields to null.
|
java.util.Collection<Channel> |
unmodifiableChannels()
Returns an unmodifiable collection-view
|
Validation |
validate()
calls the class-specific validator for this instance and returns the
Validation object. |
public static final java.lang.String OWNER_FILTER
public static final java.lang.String GROUP_FILTER
public static final java.lang.String EVENT_FILTER
public static final java.lang.String PERMS_FILTER
public static final java.lang.String ID
protected java.lang.Long id
public static final java.lang.String VERSION
protected java.lang.Integer version
protected java.lang.String name
protected Length pinHoleSize
protected Illumination illumination
protected ContrastMethod contrastMethod
protected Length excitationWave
protected Length emissionWave
protected java.lang.String fluor
protected java.lang.Double ndFilter
protected OTF otf
protected DetectorSettings detectorSettings
protected LightSettings lightSourceSettings
protected FilterSet filterSet
protected java.lang.Integer samplesPerPixel
protected PhotometricInterpretation photometricInterpretation
protected AcquisitionMode mode
protected java.lang.Integer pockelCellSetting
protected java.util.Set<Channel> channels
public static final java.lang.String OWNER_FILTER_CHANNELS
public static final java.lang.String GROUP_FILTER_CHANNELS
public static final java.lang.String EVENT_FILTER_CHANNELS
public static final java.lang.String PERMS_FILTER_CHANNELS
protected LightPath lightPath
protected Details details
public static final java.lang.String NAME
public static final java.lang.String PINHOLESIZE
public static final java.lang.String ILLUMINATION
public static final java.lang.String CONTRASTMETHOD
public static final java.lang.String EXCITATIONWAVE
public static final java.lang.String EMISSIONWAVE
public static final java.lang.String FLUOR
public static final java.lang.String NDFILTER
public static final java.lang.String OTF
public static final java.lang.String DETECTORSETTINGS
public static final java.lang.String LIGHTSOURCESETTINGS
public static final java.lang.String FILTERSET
public static final java.lang.String SAMPLESPERPIXEL
public static final java.lang.String PHOTOMETRICINTERPRETATION
public static final java.lang.String MODE
public static final java.lang.String POCKELCELLSETTING
public static final java.lang.String CHANNELS
public static final java.lang.String LIGHTPATH
public static final java.lang.String DETAILS
public static final java.util.Set<java.lang.String> FIELDS
protected java.util.Map<java.lang.String,java.lang.Object> _dynamicFields
protected boolean _loaded
public LogicalChannel()
protected LogicalChannel(java.lang.Long id)
public LogicalChannel(java.lang.Long id, boolean loaded)
@DocumentId public java.lang.Long getId()
public void setId(java.lang.Long id)
IObject
public java.lang.Integer getVersion()
getVersion
in interface IMutable
public void setVersion(java.lang.Integer version)
IMutable
setVersion
in interface IMutable
version
- Value for this objects version.@Field(index=TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.String getName()
public void setName(java.lang.String name)
public Length getPinHoleSize()
public void setPinHoleSize(Length pinHoleSize)
public Illumination getIllumination()
public void setIllumination(Illumination illumination)
public ContrastMethod getContrastMethod()
public void setContrastMethod(ContrastMethod contrastMethod)
public Length getExcitationWave()
public void setExcitationWave(Length excitationWave)
public Length getEmissionWave()
public void setEmissionWave(Length emissionWave)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.String getFluor()
public void setFluor(java.lang.String fluor)
@Field(index=UN_TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.Double getNdFilter()
public void setNdFilter(java.lang.Double ndFilter)
public OTF getOtf()
public void setOtf(OTF otf)
public DetectorSettings getDetectorSettings()
public void setDetectorSettings(DetectorSettings detectorSettings)
public LightSettings getLightSourceSettings()
public void setLightSourceSettings(LightSettings lightSourceSettings)
public FilterSet getFilterSet()
public void setFilterSet(FilterSet filterSet)
@Field(index=UN_TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.Integer getSamplesPerPixel()
public void setSamplesPerPixel(java.lang.Integer samplesPerPixel)
public PhotometricInterpretation getPhotometricInterpretation()
public void setPhotometricInterpretation(PhotometricInterpretation photometricInterpretation)
public AcquisitionMode getMode()
public void setMode(AcquisitionMode mode)
@Field(index=UN_TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.Integer getPockelCellSetting()
public void setPockelCellSetting(java.lang.Integer pockelCellSetting)
protected java.util.Set<Channel> getChannels()
protected void setChannels(java.util.Set<Channel> channels)
public int sizeOfChannels()
public java.util.Iterator<Channel> iterateChannels()
EmptyIterator
. To test for a null collection,
see of sizeOfChannels()
is less than zero.public java.util.Collection<Channel> unmodifiableChannels()
public <E> java.util.List<E> collectChannels(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateChannels()
internally and so will return a value
even if the underlying collection is null.public void addChannel(Channel target)
public void addChannelSet(java.util.Collection<Channel> targets)
public void removeChannel(Channel target)
public void removeChannelSet(java.util.Collection<Channel> targets)
public void clearChannels()
public LightPath getLightPath()
public void setLightPath(LightPath lightPath)
public Details getDetails()
Details
type.getDetails
in interface IObject
protected void setDetails(Details details)
public boolean isValid()
IObject
Validation.isValid()
public Validation validate()
IObject
Validation
object.public LogicalChannel newInstance()
public LogicalChannel proxy()
public boolean acceptFilter(Filter __filter)
acceptFilter
in interface Filterable
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Set<java.lang.String> fields()
IObject
public java.lang.Object retrieve(java.lang.String field)
IObject
field
which match a field of this instance will be delegated to the accessors.
Otherwise, values will be retrieved from a lazy-loaded map filled by
calls to IObject.putAt(String, Object)
public void putAt(java.lang.String field, java.lang.Object value)
IObject
field
which
match a field of this instance will be delegated to the accessors.
Otherwise, values will be stored in a lazy-loaded map.public boolean isLoaded()
IObject
protected void errorIfUnloaded()
public void unload()
IObject
public final GraphHolder getGraphHolder()
IObject
GraphHolder
for this entity. If the GraphHolder has
not been actively set, a new one will be instatiated.getGraphHolder
in interface IObject
protected void throwNullCollectionException(java.lang.String propertyName)