public int getDichroicCount(int instrumentIndex) { // Parents: {u'Instrument': {u'OME': None}} // Dichroic is not a reference return root.getInstrument(instrumentIndex).sizeOfDichroicList(); }
public int getDichroicCount(int instrumentIndex) { // Parents: {u'Instrument': {u'OME': None}} // Dichroic is not a reference return root.getInstrument(instrumentIndex).sizeOfDichroicList(); }
@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()); */ }
@Test (groups = {"11-06-i-instrument"}, dependsOnMethods = {"testOmeNode"}) public void testInstrument0() { Assert.assertNotNull(ome); instrument0 = ome.getInstrument(0); Assert.assertNotNull(instrument0); Assert.assertEquals(1, instrument0.sizeOfDetectorList()); Assert.assertEquals(1, instrument0.sizeOfDichroicList()); Assert.assertEquals(4, instrument0.sizeOfFilterList()); Assert.assertEquals(1, instrument0.sizeOfFilterSetList()); Assert.assertEquals(2, instrument0.sizeOfLightSourceList()); Assert.assertEquals(1, instrument0.sizeOfObjectiveList()); Microscope microscope0 = instrument0.getMicroscope(); Assert.assertNotNull(microscope0); Assert.assertEquals(ref.Instrument0MicroscopeManufacturer, microscope0.getManufacturer()); Assert.assertEquals(ref.Instrument0MicroscopeModel, microscope0.getModel()); Assert.assertEquals(ref.Instrument0MicroscopeSerialNumber, microscope0.getSerialNumber()); Assert.assertEquals(ref.Instrument0MicroscopeType, microscope0.getType()); }
public void setDichroicModel(String model, int instrumentIndex, int dichroicIndex) { // 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.sizeOfDichroicList() == dichroicIndex) { o1.addDichroic(new Dichroic()); } Dichroic o2 = o1.getDichroic(dichroicIndex); o2.setModel(model); }
public void setDichroicManufacturer(String manufacturer, int instrumentIndex, int dichroicIndex) { // 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.sizeOfDichroicList() == dichroicIndex) { o1.addDichroic(new Dichroic()); } Dichroic o2 = o1.getDichroic(dichroicIndex); o2.setManufacturer(manufacturer); }
public void setDichroicModel(String model, int instrumentIndex, int dichroicIndex) { // 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.sizeOfDichroicList() == dichroicIndex) { o1.addDichroic(new Dichroic()); } Dichroic o2 = o1.getDichroic(dichroicIndex); o2.setModel(model); }
public void setDichroicLotNumber(String lotNumber, int instrumentIndex, int dichroicIndex) { // 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.sizeOfDichroicList() == dichroicIndex) { o1.addDichroic(new Dichroic()); } Dichroic o2 = o1.getDichroic(dichroicIndex); o2.setLotNumber(lotNumber); }
public void setDichroicManufacturer(String manufacturer, int instrumentIndex, int dichroicIndex) { // 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.sizeOfDichroicList() == dichroicIndex) { o1.addDichroic(new Dichroic()); } Dichroic o2 = o1.getDichroic(dichroicIndex); o2.setManufacturer(manufacturer); }
public void setDichroicSerialNumber(String serialNumber, int instrumentIndex, int dichroicIndex) { // 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.sizeOfDichroicList() == dichroicIndex) { o1.addDichroic(new Dichroic()); } Dichroic o2 = o1.getDichroic(dichroicIndex); o2.setSerialNumber(serialNumber); }
public void setDichroicLotNumber(String lotNumber, int instrumentIndex, int dichroicIndex) { // 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.sizeOfDichroicList() == dichroicIndex) { o1.addDichroic(new Dichroic()); } Dichroic o2 = o1.getDichroic(dichroicIndex); o2.setLotNumber(lotNumber); }
public void setDichroicSerialNumber(String serialNumber, int instrumentIndex, int dichroicIndex) { // 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.sizeOfDichroicList() == dichroicIndex) { o1.addDichroic(new Dichroic()); } Dichroic o2 = o1.getDichroic(dichroicIndex); o2.setSerialNumber(serialNumber); }
public void setDichroicID(String id, int instrumentIndex, int dichroicIndex) { // Parents: {u'Instrument': {u'OME': None}} // ID is not a reference OME o0 = root; if (o0.sizeOfInstrumentList() == instrumentIndex) { o0.addInstrument(new Instrument()); } Instrument o1 = o0.getInstrument(instrumentIndex); if (o1.sizeOfDichroicList() == dichroicIndex) { o1.addDichroic(new Dichroic()); } Dichroic o2 = o1.getDichroic(dichroicIndex); model.addModelObject(id, o2); o2.setID(id); }
public void setDichroicID(String id, int instrumentIndex, int dichroicIndex) { // Parents: {u'Instrument': {u'OME': None}} // ID is not a reference OME o0 = root; if (o0.sizeOfInstrumentList() == instrumentIndex) { o0.addInstrument(new Instrument()); } Instrument o1 = o0.getInstrument(instrumentIndex); if (o1.sizeOfDichroicList() == dichroicIndex) { o1.addDichroic(new Dichroic()); } Dichroic o2 = o1.getDichroic(dichroicIndex); model.addModelObject(id, o2); o2.setID(id); }