/** Creates and populates the instrument. */ private void populateInstrument() { if (instrument != null) return; instrument = createInstrument(true); ome.addInstrument(instrument); }
public void setInstrumentID(String id, int instrumentIndex) { // Parents: {u'OME': None} // ID is not a reference OME o0 = root; if (o0.sizeOfInstrumentList() == instrumentIndex) { o0.addInstrument(new Instrument()); } Instrument o1 = o0.getInstrument(instrumentIndex); model.addModelObject(id, o1); o1.setID(id); }
public void setInstrumentID(String id, int instrumentIndex) { // Parents: {u'OME': None} // ID is not a reference OME o0 = root; if (o0.sizeOfInstrumentList() == instrumentIndex) { o0.addInstrument(new Instrument()); } Instrument o1 = o0.getInstrument(instrumentIndex); model.addModelObject(id, o1); o1.setID(id); }
/** Sets the Map value associated with this generic light source */ public void setGenericExcitationSourceMap(List<MapPair> map, int instrumentIndex, int lightSourceIndex) { OME o0 = root; if (o0.sizeOfInstrumentList() == instrumentIndex) { o0.addInstrument(new Instrument()); } Instrument o1 = o0.getInstrument(instrumentIndex); if (o1.sizeOfLightSourceList() == lightSourceIndex) { o1.addLightSource(new GenericExcitationSource()); } LightSource o2 = o1.getLightSource(lightSourceIndex); ((GenericExcitationSource)o2).setMap(map); }
public void setArcSerialNumber(String serialNumber, int instrumentIndex, int lightSourceIndex) { // Parents: None // SerialNumber is not a reference OME o0 = root; if (o0.sizeOfInstrumentList() == instrumentIndex) { o0.addInstrument(new Instrument()); } Instrument o1 = o0.getInstrument(instrumentIndex); if (o1.sizeOfLightSourceList() == lightSourceIndex) { o1.addLightSource(new Arc()); } Arc o2 = (Arc) o1.getLightSource(lightSourceIndex); o2.setSerialNumber(serialNumber); }
public void setDetectorAmplificationGain(Double amplificationGain, int instrumentIndex, int detectorIndex) { // Parents: {u'Instrument': {u'OME': None}} // AmplificationGain is not a reference OME o0 = root; if (o0.sizeOfInstrumentList() == instrumentIndex) { o0.addInstrument(new Instrument()); } Instrument o1 = o0.getInstrument(instrumentIndex); if (o1.sizeOfDetectorList() == detectorIndex) { o1.addDetector(new Detector()); } Detector o2 = o1.getDetector(detectorIndex); o2.setAmplificationGain(amplificationGain); }
public void setDetectorLotNumber(String lotNumber, int instrumentIndex, int detectorIndex) { // Parents: {u'Instrument': {u'OME': None}} // LotNumber is not a reference OME o0 = root; if (o0.sizeOfInstrumentList() == instrumentIndex) { o0.addInstrument(new Instrument()); } Instrument o1 = o0.getInstrument(instrumentIndex); if (o1.sizeOfDetectorList() == detectorIndex) { o1.addDetector(new Detector()); } Detector o2 = o1.getDetector(detectorIndex); o2.setLotNumber(lotNumber); }
public void setDetectorModel(String model, int instrumentIndex, int detectorIndex) { // Parents: {u'Instrument': {u'OME': None}} // Model is not a reference OME o0 = root; if (o0.sizeOfInstrumentList() == instrumentIndex) { o0.addInstrument(new Instrument()); } Instrument o1 = o0.getInstrument(instrumentIndex); if (o1.sizeOfDetectorList() == detectorIndex) { o1.addDetector(new Detector()); } Detector o2 = o1.getDetector(detectorIndex); o2.setModel(model); }
public void setDetectorOffset(Double offset, int instrumentIndex, int detectorIndex) { // Parents: {u'Instrument': {u'OME': None}} // Offset is not a reference OME o0 = root; if (o0.sizeOfInstrumentList() == instrumentIndex) { o0.addInstrument(new Instrument()); } Instrument o1 = o0.getInstrument(instrumentIndex); if (o1.sizeOfDetectorList() == detectorIndex) { o1.addDetector(new Detector()); } Detector o2 = o1.getDetector(detectorIndex); o2.setOffset(offset); }
public void setFilterSerialNumber(String serialNumber, int instrumentIndex, int filterIndex) { // Parents: {u'Instrument': {u'OME': None}} // SerialNumber is not a reference OME o0 = root; if (o0.sizeOfInstrumentList() == instrumentIndex) { o0.addInstrument(new Instrument()); } Instrument o1 = o0.getInstrument(instrumentIndex); if (o1.sizeOfFilterList() == filterIndex) { o1.addFilter(new Filter()); } Filter o2 = o1.getFilter(filterIndex); o2.setSerialNumber(serialNumber); }
public void setFilterSetLotNumber(String lotNumber, int instrumentIndex, int filterSetIndex) { // Parents: {u'Instrument': {u'OME': None}} // LotNumber is not a reference OME o0 = root; if (o0.sizeOfInstrumentList() == instrumentIndex) { o0.addInstrument(new Instrument()); } Instrument o1 = o0.getInstrument(instrumentIndex); if (o1.sizeOfFilterSetList() == filterSetIndex) { o1.addFilterSet(new FilterSet()); } FilterSet o2 = o1.getFilterSet(filterSetIndex); o2.setLotNumber(lotNumber); }
public void setFilterSetModel(String model, int instrumentIndex, int filterSetIndex) { // Parents: {u'Instrument': {u'OME': None}} // Model is not a reference OME o0 = root; if (o0.sizeOfInstrumentList() == instrumentIndex) { o0.addInstrument(new Instrument()); } Instrument o1 = o0.getInstrument(instrumentIndex); if (o1.sizeOfFilterSetList() == filterSetIndex) { o1.addFilterSet(new FilterSet()); } FilterSet o2 = o1.getFilterSet(filterSetIndex); o2.setModel(model); }
public void setLaserPulse(Pulse pulse, int instrumentIndex, int lightSourceIndex) { // Parents: None // Pulse is not a reference OME o0 = root; if (o0.sizeOfInstrumentList() == instrumentIndex) { o0.addInstrument(new Instrument()); } Instrument o1 = o0.getInstrument(instrumentIndex); if (o1.sizeOfLightSourceList() == lightSourceIndex) { o1.addLightSource(new Laser()); } Laser o2 = (Laser) o1.getLightSource(lightSourceIndex); o2.setPulse(pulse); }
public void setLaserRepetitionRate(Frequency repetitionRate, int instrumentIndex, int lightSourceIndex) { // Parents: None // RepetitionRate is not a reference OME o0 = root; if (o0.sizeOfInstrumentList() == instrumentIndex) { o0.addInstrument(new Instrument()); } Instrument o1 = o0.getInstrument(instrumentIndex); if (o1.sizeOfLightSourceList() == lightSourceIndex) { o1.addLightSource(new Laser()); } Laser o2 = (Laser) o1.getLightSource(lightSourceIndex); o2.setRepetitionRate(repetitionRate); }
public void setMicroscopeManufacturer(String manufacturer, int instrumentIndex) { // Parents: {u'Instrument': {u'OME': None}} // Manufacturer is not a reference OME o0 = root; if (o0.sizeOfInstrumentList() == instrumentIndex) { o0.addInstrument(new Instrument()); } Instrument o1 = o0.getInstrument(instrumentIndex); if (o1.getMicroscope() == null) { o1.setMicroscope(new Microscope()); } Microscope o2 = o1.getMicroscope(); o2.setManufacturer(manufacturer); }
public void setMicroscopeSerialNumber(String serialNumber, int instrumentIndex) { // Parents: {u'Instrument': {u'OME': None}} // SerialNumber is not a reference OME o0 = root; if (o0.sizeOfInstrumentList() == instrumentIndex) { o0.addInstrument(new Instrument()); } Instrument o1 = o0.getInstrument(instrumentIndex); if (o1.getMicroscope() == null) { o1.setMicroscope(new Microscope()); } Microscope o2 = o1.getMicroscope(); o2.setSerialNumber(serialNumber); }
public void setFilamentSerialNumber(String serialNumber, int instrumentIndex, int lightSourceIndex) { // Parents: None // SerialNumber is not a reference OME o0 = root; if (o0.sizeOfInstrumentList() == instrumentIndex) { o0.addInstrument(new Instrument()); } Instrument o1 = o0.getInstrument(instrumentIndex); if (o1.sizeOfLightSourceList() == lightSourceIndex) { o1.addLightSource(new Filament()); } Filament o2 = (Filament) o1.getLightSource(lightSourceIndex); o2.setSerialNumber(serialNumber); }
public void setObjectiveCalibratedMagnification(Double calibratedMagnification, int instrumentIndex, int objectiveIndex) { // Parents: {u'Instrument': {u'OME': None}} // CalibratedMagnification is not a reference OME o0 = root; if (o0.sizeOfInstrumentList() == instrumentIndex) { o0.addInstrument(new Instrument()); } Instrument o1 = o0.getInstrument(instrumentIndex); if (o1.sizeOfObjectiveList() == objectiveIndex) { o1.addObjective(new Objective()); } Objective o2 = o1.getObjective(objectiveIndex); o2.setCalibratedMagnification(calibratedMagnification); }
public void setObjectiveIris(Boolean iris, int instrumentIndex, int objectiveIndex) { // Parents: {u'Instrument': {u'OME': None}} // Iris is not a reference OME o0 = root; if (o0.sizeOfInstrumentList() == instrumentIndex) { o0.addInstrument(new Instrument()); } Instrument o1 = o0.getInstrument(instrumentIndex); if (o1.sizeOfObjectiveList() == objectiveIndex) { o1.addObjective(new Objective()); } Objective o2 = o1.getObjective(objectiveIndex); o2.setIris(iris); }
public SPWModelMock(boolean makeLightSources) { ome = new OME(); annotations = new StructuredAnnotations(); ome.addInstrument(makeInstrument(makeLightSources)); for (int i = 0; i < WELL_ROWS.getValue() * WELL_COLS.getValue(); i++) { ome.addImage(makeImage(i)); } ome.addPlate(makePlate()); ome.setStructuredAnnotations(annotations); }