/** * Handles linking a specific reference object to a target object in our * object graph. * @param target Target model object. * @param reference Reference model object. */ private void handleReference(LightSource target, LightSource reference) { // The only possible linkage at this point is a Laser's pump. Laser laser = (Laser) target; laser.setPump(reference); }
public ome.model.acquisition.Laser newInstance() { return new ome.model.acquisition.Laser(); }
public void setType(ome.model.enums.LaserType type) { if (! _loaded ) errorIfUnloaded(); this.type = type; } protected ome.model.enums.LaserMedium laserMedium = null;
@Override public Object retrieve(String field) { if (field == null) { return null; } else if (field.equals(TYPE)) { return getType(); } else if (field.equals(LASERMEDIUM)) { return getLaserMedium(); } else if (field.equals(FREQUENCYMULTIPLICATION)) { return getFrequencyMultiplication(); } else if (field.equals(TUNEABLE)) { return getTuneable(); } else if (field.equals(PULSE)) { return getPulse(); } else if (field.equals(WAVELENGTH)) { return getWavelength(); } else if (field.equals(POCKELCELL)) { return getPockelCell(); } else if (field.equals(PUMP)) { return getPump(); } else if (field.equals(REPETITIONRATE)) { return getRepetitionRate(); } else { return super.retrieve(field); } }
@Override public void putAt(String field, Object value) { if (field == null) { return; } else if (field.equals(TYPE)) { setType((ome.model.enums.LaserType)value); } else if (field.equals(LASERMEDIUM)) { setLaserMedium((ome.model.enums.LaserMedium)value); } else if (field.equals(FREQUENCYMULTIPLICATION)) { setFrequencyMultiplication((java.lang.Integer)value); } else if (field.equals(TUNEABLE)) { setTuneable((java.lang.Boolean)value); } else if (field.equals(PULSE)) { setPulse((ome.model.enums.Pulse)value); } else if (field.equals(WAVELENGTH)) { setWavelength((ome.model.units.Length)value); } else if (field.equals(POCKELCELL)) { setPockelCell((java.lang.Boolean)value); } else if (field.equals(PUMP)) { setPump((ome.model.acquisition.LightSource)value); } else if (field.equals(REPETITIONRATE)) { setRepetitionRate((ome.model.units.Frequency)value); } else { super.putAt(field,value); } }
if (src instanceof Laser) { Laser laser = (Laser) src; if (laser.getWavelength() != null) return true;
} else if (Laser.class.isAssignableFrom(kls)) { Laser obj = (Laser) s.get(Laser.class, objId); return imagesContainsInstrument(s, images, obj.getInstrument(), obToImageCache); } else if (LightSettings.class.isAssignableFrom(kls)) {
if (ls instanceof Laser) valueWavelength = ((Laser) ls).getWavelength();
if (src instanceof Laser) { Laser laser = (Laser) src; value = laser.getWavelength(); if (value != null) return ""+value.getValue();
public void setPulse(ome.model.enums.Pulse pulse) { if (! _loaded ) errorIfUnloaded(); this.pulse = pulse; } protected ome.model.units.Length wavelength = null;
public ome.model.acquisition.Laser proxy() { return new ome.model.acquisition.Laser(this.id, false); }
public void setPockelCell(java.lang.Boolean pockelCell) { if (! _loaded ) errorIfUnloaded(); this.pockelCell = (java.lang.Boolean) pockelCell; } protected ome.model.acquisition.LightSource pump = null;
public void setLaserMedium(ome.model.enums.LaserMedium laserMedium) { if (! _loaded ) errorIfUnloaded(); this.laserMedium = laserMedium; } protected java.lang.Integer frequencyMultiplication = null;
public void setTuneable(java.lang.Boolean tuneable) { if (! _loaded ) errorIfUnloaded(); this.tuneable = (java.lang.Boolean) tuneable; } protected ome.model.enums.Pulse pulse = null;
public void setPump(ome.model.acquisition.LightSource pump) { if (! _loaded ) errorIfUnloaded(); this.pump = pump; } protected ome.model.units.Frequency repetitionRate = null;
public void setRepetitionRate(ome.model.units.Frequency repetitionRate) { if (! _loaded ) errorIfUnloaded(); this.repetitionRate = repetitionRate; }
public void setFrequencyMultiplication(java.lang.Integer frequencyMultiplication) { if (! _loaded ) errorIfUnloaded(); if (frequencyMultiplication != null && frequencyMultiplication <= 0) { throw new IllegalArgumentException("values of Laser.frequencyMultiplication must be strictly positive"); } this.frequencyMultiplication = (java.lang.Integer) frequencyMultiplication; } protected java.lang.Boolean tuneable = null;
/** * Simple field ome.model.acquisition.Laser.tuneable (java.lang.Boolean) */ // No @Type annotation // Not indexed @javax.persistence.Column(columnDefinition="", nullable=true, unique=false, name="tuneable", updatable=true) public java.lang.Boolean getTuneable() { if (! _loaded ) errorIfUnloaded(); return this.tuneable; }
/** * Simple field ome.model.acquisition.Laser.pockelCell (java.lang.Boolean) */ // No @Type annotation // Not indexed @javax.persistence.Column(columnDefinition="", nullable=true, unique=false, name="pockelCell", updatable=true) public java.lang.Boolean getPockelCell() { if (! _loaded ) errorIfUnloaded(); return this.pockelCell; }