setID(String.valueOf( element.getAttribute("ID")));
setID(String.valueOf( element.getAttribute("ID")));
/** * Creates a dichroic. * * @param index The index of the dichroic in the file. * @return See above. */ public Dichroic createDichroic(int index) { Dichroic dichroic = new Dichroic(); dichroic.setID("Dichroic:"+index); dichroic.setModel(COMPONENT_MODEL); dichroic.setManufacturer(COMPONENT_MANUFACTURER); dichroic.setLotNumber(COMPONENT_LOT_NUMBER); dichroic.setSerialNumber(COMPONENT_SERIAL_NUMBER); return dichroic; }
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); }
dichroic.setID(DICHROIC_ID); dichroic.setSerialNumber(DICHROIC_SN);
dichroic.setID(InOutCurrentTest.DICHROIC_ID); dichroic.setSerialNumber(InOutCurrentTest.DICHROIC_SN); CommentAnnotation dichroicAnnotation = new CommentAnnotation();