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 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); }
} else if (Arc.class.getName().equals(type)) { Arc arc = new Arc(); arc.setID("LightSource:"+index); arc.setManufacturer(COMPONENT_MANUFACTURER); arc.setSerialNumber(COMPONENT_SERIAL_NUMBER);
@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); }
arc.setID(LIGHTSOURCE_ARC_ID); arc.setModel(LIGHTSOURCE_ARC_MODEL); arc.setType(ARC_TYPE);
arc.setID(InOutCurrentTest.LIGHTSOURCE_ARC_ID); arc.setModel(InOutCurrentTest.LIGHTSOURCE_ARC_MODEL); arc.setType(InOutCurrentTest.ARC_TYPE);