/** * use like removeOTF */ public void removeOTFSet(java.util.Collection<ome.model.acquisition.OTF> targets ) { if (! _loaded ) errorIfUnloaded(); if (getOtf() == null) { throwNullCollectionException("Otf"); } getOtf().removeAll( targets ); java.util.Iterator<ome.model.acquisition.OTF> it = targets.iterator(); while ( it.hasNext() ) { ome.model.acquisition.OTF target = it.next(); target.setInstrument ( null ); } }
/** * use like addOTF. */ public void addOTFSet(java.util.Collection<ome.model.acquisition.OTF> targets) { if (! _loaded ) errorIfUnloaded(); if (getOtf() == null) { throwNullCollectionException("Otf"); } getOtf().addAll( targets ); java.util.Iterator<ome.model.acquisition.OTF> it = targets.iterator(); while ( it.hasNext() ) { ome.model.acquisition.OTF target = it.next(); // If this relationship is not ordered, then we will // "attempt" the setting even if it is loaded. if (target != null) { target.setInstrument ( this ); } } }
/** * clears the set. */ public void clearOtf() { if (! _loaded ) errorIfUnloaded(); if (getOtf() == null) { throwNullCollectionException("Otf"); } getOtf().clear(); java.util.Iterator<ome.model.acquisition.OTF> it = iterateOtf(); while (it.hasNext()) { ome.model.acquisition.OTF target = it.next(); target.setInstrument ( null ); } }
/** * removes a single element from this set and makes the inverse call on ome.model.acquisition.OTF */ public void removeOTF(ome.model.acquisition.OTF target) { if (! _loaded ) errorIfUnloaded(); if (getOtf() == null) { throwNullCollectionException("Otf"); } getOtf().remove( target ); target.setInstrument ( null ); }
/** * use instead of setOtf . Makes the necessary * call on ome.model.acquisition.OTF as well. */ public void addOTF(ome.model.acquisition.OTF target) { if (! _loaded ) errorIfUnloaded(); if (getOtf() == null) { throwNullCollectionException("Otf"); } getOtf().add( target ); // If this relationship is not ordered, then we will // "attempt" the setting even if it is loaded. if (target != null) { target.setInstrument ( this ); } }
setObjective((ome.model.acquisition.Objective)value); } else if (field.equals(INSTRUMENT)) { setInstrument((ome.model.acquisition.Instrument)value); } else if (field.equals(DETAILS)) { setDetails((ome.model.internal.Details)value);
public OTF( java.lang.Integer _sizeX,java.lang.Integer _sizeY,java.lang.Boolean _opticalAxisAveraged,ome.model.enums.PixelsType _pixelsType,java.lang.String _path,ome.model.acquisition.Objective _objective,ome.model.acquisition.Instrument _instrument ) { this(null, true); setSizeX(_sizeX); setSizeY(_sizeY); setOpticalAxisAveraged(_opticalAxisAveraged); setPixelsType(_pixelsType); setPath(_path); setObjective(_objective); setInstrument(_instrument); }