/** * Returns an <code>PercentFraction</code> object holding the value of * the specified string. * @param s The string to be parsed. * @return See above. */ public static PercentFraction valueOf(String s) { return new PercentFraction(Float.valueOf(s)); } }
/** * Transforms a Java type into the corresponding OMERO RType. * * @param value Java concrete type value. * @return RType or <code>null</code> if <code>value</code> is * <code>null</code>. */ public RDouble toRType(PercentFraction value) { return value == null? null : rdouble(value.getValue()); }
LightSourceSettings_element.setAttribute("Attenuation", attenuation.toString());
LightSourceSettings_element.setAttribute("Attenuation", attenuation.toString());
/** * Returns an <code>PercentFraction</code> object holding the value of * the specified string. * @param s The string to be parsed. * @return See above. */ public static PercentFraction valueOf(String s) { return new PercentFraction(Float.valueOf(s)); } }
return new ome.units.quantity.Pressure(typedValue.getValue(), getBaseUnit(inModelUnit));
/** * Creates a imaging environment. * * @return See above. */ public ImagingEnvironment createImageEnvironment() { ImagingEnvironment env = new ImagingEnvironment(); env.setAirPressure(new Pressure(1.0, UNITS.MILLIBAR)); env.setCO2Percent(new PercentFraction(1.0f)); env.setHumidity(new PercentFraction(1.0f)); env.setTemperature(new Temperature(1.0, UNITS.CELSIUS)); return env; }
return new ome.units.quantity.Length(typedValue.getValue(), getBaseUnit(inModelUnit));
setAttenuation(PercentFraction.valueOf( element.getAttribute("Attenuation")));
/** * Creates a light source settings. * * @param ref Reference to the light source. * @return See above. */ public LightSourceSettings createLightSourceSettings(int ref) { if (instrument == null) populateInstrument(); LightSourceSettings settings = new LightSourceSettings(); settings.setID("LightSource:"+ref); settings.setAttenuation(new PercentFraction(1.0f)); settings.setWavelength(new Length(200.2, UNITS.NANOMETRE)); settings.setLightSource(instrument.copyLightSourceList().get(0)); return settings; }
return new ome.units.quantity.Length(typedValue.getValue(), getBaseUnit(inModelUnit));
setAttenuation(PercentFraction.valueOf( element.getAttribute("Attenuation")));
TransmittanceRange_element.setAttribute("Transmittance", transmittance.toString());
nextChannel); store.setChannelLightSourceSettingsAttenuation( new PercentFraction((float) laser.intensity / 100f), numDatasets, nextChannel);
return new ome.units.quantity.Power(typedValue.getValue(), getBaseUnit(inModelUnit));
setTransmittance(PercentFraction.valueOf( element.getAttribute("Transmittance")));