@BeforeClass public void setUp() throws Exception { metadata = new OMEXMLMetadataImpl(); OMEXMLMetadataRoot ome = new OMEXMLMetadataRoot(); Instrument instrument = new Instrument(); instrument.addLightSource(new Arc()); instrument.addLightSource(new Filament()); instrument.addLightSource(new Laser()); instrument.addLightSource(new LightEmittingDiode()); ome.addInstrument(instrument); metadata.setRoot(ome); }
/** Sets the Map value associated with this generic light source */ public void setGenericExcitationSourceMap(List<MapPair> map, int instrumentIndex, int lightSourceIndex) { OME o0 = root; if (o0.sizeOfInstrumentList() == instrumentIndex) { o0.addInstrument(new Instrument()); } Instrument o1 = o0.getInstrument(instrumentIndex); if (o1.sizeOfLightSourceList() == lightSourceIndex) { o1.addLightSource(new GenericExcitationSource()); } LightSource o2 = o1.getLightSource(lightSourceIndex); ((GenericExcitationSource)o2).setMap(map); }
public void setArcSerialNumber(String serialNumber, int instrumentIndex, int lightSourceIndex) { // Parents: None // SerialNumber 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.setSerialNumber(serialNumber); }
public void setLaserPulse(Pulse pulse, int instrumentIndex, int lightSourceIndex) { // Parents: None // Pulse 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 Laser()); } Laser o2 = (Laser) o1.getLightSource(lightSourceIndex); o2.setPulse(pulse); }
public void setLaserRepetitionRate(Frequency repetitionRate, int instrumentIndex, int lightSourceIndex) { // Parents: None // RepetitionRate 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 Laser()); } Laser o2 = (Laser) o1.getLightSource(lightSourceIndex); o2.setRepetitionRate(repetitionRate); }
public void setFilamentModel(String model, int instrumentIndex, int lightSourceIndex) { // Parents: None // Model 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 Filament()); } Filament o2 = (Filament) o1.getLightSource(lightSourceIndex); o2.setModel(model); }
public void setFilamentSerialNumber(String serialNumber, int instrumentIndex, int lightSourceIndex) { // Parents: None // SerialNumber 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 Filament()); } Filament o2 = (Filament) o1.getLightSource(lightSourceIndex); o2.setSerialNumber(serialNumber); }
public void setGenericExcitationSourceManufacturer(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 GenericExcitationSource()); } GenericExcitationSource o2 = (GenericExcitationSource) o1.getLightSource(lightSourceIndex); o2.setManufacturer(manufacturer); }
public void setLaserPulse(Pulse pulse, int instrumentIndex, int lightSourceIndex) { // Parents: None // Pulse 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 Laser()); } Laser o2 = (Laser) o1.getLightSource(lightSourceIndex); o2.setPulse(pulse); }
public void setGenericExcitationSourceManufacturer(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 GenericExcitationSource()); } GenericExcitationSource o2 = (GenericExcitationSource) o1.getLightSource(lightSourceIndex); o2.setManufacturer(manufacturer); }
public void setLaserLaserMedium(LaserMedium laserMedium, int instrumentIndex, int lightSourceIndex) { // Parents: None // LaserMedium 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 Laser()); } Laser o2 = (Laser) o1.getLightSource(lightSourceIndex); o2.setLaserMedium(laserMedium); }
public void setLaserManufacturer(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 Laser()); } Laser o2 = (Laser) o1.getLightSource(lightSourceIndex); o2.setManufacturer(manufacturer); }
public void setLaserPockelCell(Boolean pockelCell, int instrumentIndex, int lightSourceIndex) { // Parents: None // PockelCell 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 Laser()); } Laser o2 = (Laser) o1.getLightSource(lightSourceIndex); o2.setPockelCell(pockelCell); }
public void setLaserPower(Power power, int instrumentIndex, int lightSourceIndex) { // Parents: None // Power 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 Laser()); } Laser o2 = (Laser) o1.getLightSource(lightSourceIndex); o2.setPower(power); }
public void setLightEmittingDiodeModel(String model, int instrumentIndex, int lightSourceIndex) { // Parents: None // Model 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 LightEmittingDiode()); } LightEmittingDiode o2 = (LightEmittingDiode) o1.getLightSource(lightSourceIndex); o2.setModel(model); }
public void setArcLotNumber(String lotNumber, int instrumentIndex, int lightSourceIndex) { // Parents: None // LotNumber 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.setLotNumber(lotNumber); }
public void setFilamentType(FilamentType type, int instrumentIndex, int lightSourceIndex) { // Parents: None // Type 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 Filament()); } Filament o2 = (Filament) o1.getLightSource(lightSourceIndex); o2.setType(type); }
public void setGenericExcitationSourcePower(Power power, int instrumentIndex, int lightSourceIndex) { // Parents: None // Power 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 GenericExcitationSource()); } GenericExcitationSource o2 = (GenericExcitationSource) o1.getLightSource(lightSourceIndex); o2.setPower(power); }
public void setLaserModel(String model, int instrumentIndex, int lightSourceIndex) { // Parents: None // Model 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 Laser()); } Laser o2 = (Laser) o1.getLightSource(lightSourceIndex); o2.setModel(model); }
public void setLightEmittingDiodeManufacturer(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 LightEmittingDiode()); } LightEmittingDiode o2 = (LightEmittingDiode) o1.getLightSource(lightSourceIndex); o2.setManufacturer(manufacturer); }