public class Instrument extends AbstractOMEModelObject
Modifier and Type | Field and Description |
---|---|
private List<Annotation> |
annotationLinks |
private List<Detector> |
detectors |
private List<Dichroic> |
dichroics |
private List<Filter> |
filters |
private List<FilterSet> |
filterSets |
private String |
id |
private List<Image> |
images |
private List<LightSource> |
lightSources |
private static org.slf4j.Logger |
LOGGER
Logger for this class.
|
private Microscope |
microscope |
static String |
NAMESPACE |
private List<Objective> |
objectives |
Constructor and Description |
---|
Instrument()
Default constructor.
|
Instrument(Element element,
OMEModel model)
Constructs Instrument recursively from an XML DOM tree.
|
Instrument(Instrument orig)
Copy constructor.
|
getChildrenByTagName, stripNamespacePrefix
public static final String NAMESPACE
private static final org.slf4j.Logger LOGGER
private String id
private Microscope microscope
private List<LightSource> lightSources
private List<Annotation> annotationLinks
public Instrument()
public Instrument(Element element, OMEModel model) throws EnumerationException
element
- Root of the XML DOM tree to construct a model object
graph from.model
- Handler for the OME model which keeps track of instances
and references seen during object population.EnumerationException
- If there is an error instantiating an
enumeration during model object creation.public Instrument(Instrument orig)
public void update(Element element, OMEModel model) throws EnumerationException
update
in interface OMEModelObject
update
in class AbstractOMEModelObject
element
- Root of the XML DOM tree to construct a model object
graph from.model
- Handler for the OME model which keeps track of instances
and references seen during object population.EnumerationException
- If there is an error instantiating an
enumeration during model object creation.public boolean link(Reference reference, OMEModelObject o)
OMEModelObject
link
in interface OMEModelObject
link
in class AbstractOMEModelObject
reference
- The type qualifier for the reference. This should
be the corresponding reference type for o
. If, for example,
o
is of type Image
, reference
MUST be of type ImageRef
.o
- Model object to link to.true
if this model object was able to handle the
reference, false
otherwise.public String getID()
public void setID(String id)
public Microscope getMicroscope()
public void setMicroscope(Microscope microscope)
public int sizeOfLightSourceList()
public List<LightSource> copyLightSourceList()
public LightSource getLightSource(int index)
public LightSource setLightSource(int index, LightSource lightSource)
public void addLightSource(LightSource lightSource)
public void removeLightSource(LightSource lightSource)
public int sizeOfDetectorList()
public Detector getDetector(int index)
public void addDetector(Detector detector)
public void removeDetector(Detector detector)
public int sizeOfObjectiveList()
public Objective getObjective(int index)
public void addObjective(Objective objective)
public void removeObjective(Objective objective)
public int sizeOfFilterSetList()
public FilterSet getFilterSet(int index)
public void addFilterSet(FilterSet filterSet)
public void removeFilterSet(FilterSet filterSet)
public int sizeOfFilterList()
public Filter getFilter(int index)
public void addFilter(Filter filter)
public void removeFilter(Filter filter)
public int sizeOfDichroicList()
public Dichroic getDichroic(int index)
public void addDichroic(Dichroic dichroic)
public void removeDichroic(Dichroic dichroic)
public int sizeOfLinkedAnnotationList()
public List<Annotation> copyLinkedAnnotationList()
public Annotation getLinkedAnnotation(int index)
public Annotation setLinkedAnnotation(int index, Annotation o)
public boolean linkAnnotation(Annotation o)
public boolean unlinkAnnotation(Annotation o)
public int sizeOfLinkedImageList()
public Image getLinkedImage(int index)
public boolean linkImage(Image o)
public boolean unlinkImage(Image o)
public Element asXMLElement(Document document)
OMEModelObject
asXMLElement
in interface OMEModelObject
asXMLElement
in class AbstractOMEModelObject
document
- Destination document for element creation, etc.protected Element asXMLElement(Document document, Element Instrument_element)
AbstractOMEModelObject
asXMLElement
in class AbstractOMEModelObject
document
- Destination document for element creation, etc.Instrument_element
- Element from the subclass. If null a new
element will be created of this class.element
populated with properties from this class.Copyright © 2016 Open Microscopy Environment