public void setArcManufacturer(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 Arc()); } Arc o2 = (Arc) o1.getLightSource(lightSourceIndex); o2.setManufacturer(manufacturer); }
public void setArcManufacturer(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 Arc()); } Arc o2 = (Arc) o1.getLightSource(lightSourceIndex); o2.setManufacturer(manufacturer); }
Arc arc = new Arc(); arc.setID("LightSource:"+index); arc.setManufacturer(COMPONENT_MANUFACTURER); arc.setSerialNumber(COMPONENT_SERIAL_NUMBER); arc.setLotNumber(COMPONENT_LOT_NUMBER);