public int getLightSourceCount(int instrumentIndex) { // Parents: {u'Instrument': {u'OME': None}} // LightSource is not a reference return root.getInstrument(instrumentIndex).sizeOfLightSourceList(); }
public int getLightSourceCount(int instrumentIndex) { // Parents: {u'Instrument': {u'OME': None}} // LightSource is not a reference return root.getInstrument(instrumentIndex).sizeOfLightSourceList(); }
@Test (groups = {"11-06-u-instrument"}, dependsOnMethods = {"testOmeNode"}) public void testInstrument0() { Assert.assertNotNull(ome); instrument0 = ome.getInstrument(0); Assert.assertNotNull(instrument0); Assert.assertEquals(0, instrument0.sizeOfDetectorList()); Assert.assertEquals(0, instrument0.sizeOfDichroicList()); Assert.assertEquals(0, instrument0.sizeOfFilterList()); Assert.assertEquals(0, instrument0.sizeOfFilterSetList()); Assert.assertEquals(0, instrument0.sizeOfLightSourceList()); /* Perhaps: Assert.assertEquals(1, instrument1()); */ }
/** 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 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 setFilamentModel(String model, int instrumentIndex, int lightSourceIndex) { // Parents: None // Model 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.setModel(model); }
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 setGenericExcitationSourceManufacturer(String manufacturer, int instrumentIndex, int lightSourceIndex) { // Parents: None // Manufacturer 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 GenericExcitationSource()); } GenericExcitationSource o2 = (GenericExcitationSource) o1.getLightSource(lightSourceIndex); o2.setManufacturer(manufacturer); }
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 setGenericExcitationSourceManufacturer(String manufacturer, int instrumentIndex, int lightSourceIndex) { // Parents: None // Manufacturer 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 GenericExcitationSource()); } GenericExcitationSource o2 = (GenericExcitationSource) o1.getLightSource(lightSourceIndex); o2.setManufacturer(manufacturer); }
public void setLaserLaserMedium(LaserMedium laserMedium, int instrumentIndex, int lightSourceIndex) { // Parents: None // LaserMedium 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.setLaserMedium(laserMedium); }
public void setLaserManufacturer(String manufacturer, int instrumentIndex, int lightSourceIndex) { // Parents: None // Manufacturer 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.setManufacturer(manufacturer); }
public void setLaserPockelCell(Boolean pockelCell, int instrumentIndex, int lightSourceIndex) { // Parents: None // PockelCell 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.setPockelCell(pockelCell); }
public void setLaserPower(Power power, int instrumentIndex, int lightSourceIndex) { // Parents: None // Power 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.setPower(power); }
public void setLightEmittingDiodeModel(String model, int instrumentIndex, int lightSourceIndex) { // Parents: None // Model 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 LightEmittingDiode()); } LightEmittingDiode o2 = (LightEmittingDiode) o1.getLightSource(lightSourceIndex); o2.setModel(model); }
public void setGenericExcitationSourceID(String id, int instrumentIndex, int lightSourceIndex) { // Parents: None // ID 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 GenericExcitationSource()); } GenericExcitationSource o2 = (GenericExcitationSource) o1.getLightSource(lightSourceIndex); model.addModelObject(id, o2); o2.setID(id); }
public void setArcID(String id, int instrumentIndex, int lightSourceIndex) { // Parents: None // ID 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); model.addModelObject(id, o2); o2.setID(id); }
public void setGenericExcitationSourceID(String id, int instrumentIndex, int lightSourceIndex) { // Parents: None // ID 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 GenericExcitationSource()); } GenericExcitationSource o2 = (GenericExcitationSource) o1.getLightSource(lightSourceIndex); model.addModelObject(id, o2); o2.setID(id); }