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); }
setID(String.valueOf( element.getAttribute("ID")));
setID(String.valueOf( element.getAttribute("ID")));
@BeforeClass public void setUp() throws Exception { Instrument instrument = new Instrument(); instrument.setID("Instrument:0");
instrument.setID("Instrument:"+index); instrument.setMicroscope(createMicroscope()); if (populate) {
@BeforeClass public void setUp() throws Exception { Instrument instrument = new Instrument(); instrument.setID("Instrument:0"); // Add a Laser with an Arc pump Laser laser = new Laser(); laser.setID("Laser:0"); Arc pump = new Arc(); pump.setID("Arc:0"); laser.linkPump(pump); instrument.addLightSource(laser); instrument.addLightSource(pump); ome.addInstrument(instrument); // Add an Image/Pixels with a LightSourceSettings reference to the Pump // on one of its channels. Image image = new Image(); image.setID("Image:0"); Pixels pixels = new Pixels(); pixels.setID("Pixels:0"); Channel channel = new Channel(); channel.setID("Channel:0"); LightSourceSettings settings = new LightSourceSettings(); settings.setID("Arc:0"); channel.setLightSourceSettings(settings); pixels.addChannel(channel); image.setPixels(pixels); ome.addImage(image); }
private Instrument makeInstrument(boolean makeLightSources) { instrument.setID(INSTRUMENT_ID);
private Instrument makeInstrument() { instrument.setID(InOutCurrentTest.INSTRUMENT_ID);