@Embeddable public class Temperature extends Object implements Serializable, Filterable, Unit
UnitsTemperature
instance. As
also described in the remoting definition (.ice) for Temperature, this is an
embedded class meaning that the columns here do not appear in their own
table but exist directly on the containing object. Like Details and
Permissions, instances do not contain long identifiers and cannot be
persisted on their own.Constructor and Description |
---|
Temperature()
Deprecated.
|
Temperature(double d,
String u) |
Temperature(double d,
ome.units.unit.Unit<ome.units.quantity.Temperature> unit) |
Temperature(double d,
UnitsTemperature u) |
Temperature(ome.units.quantity.Temperature value) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter filter) |
static ome.units.quantity.Temperature |
convertTemperature(Temperature t)
FIXME: this should likely take a default so that locations which don't
want an exception can have
log.warn("Using new PositiveFloat(1.0)!"
|
static Temperature |
convertTemperature(Temperature value,
String target) |
static Temperature |
convertTemperature(Temperature value,
ome.units.unit.Unit<ome.units.quantity.Temperature> ul) |
boolean |
equals(Object obj) |
UnitsTemperature |
getUnit()
Many-to-one field ome.model.units.Temperature.unit (ome.model.enums.UnitsTemperature).
|
double |
getValue()
value of this unit-field.
|
int |
hashCode() |
static ome.xml.model.enums.UnitsTemperature |
makeTemperatureUnitXML(String unit) |
static ome.units.quantity.Temperature |
makeTemperatureXML(double d,
String unit) |
void |
setUnit(UnitsTemperature unit) |
void |
setValue(double value) |
String |
toString() |
public static final String VALUE
public static final String UNIT
@Deprecated public Temperature()
public Temperature(double d, String u)
public Temperature(double d, UnitsTemperature u)
public Temperature(double d, ome.units.unit.Unit<ome.units.quantity.Temperature> unit)
public Temperature(ome.units.quantity.Temperature value)
public static ome.xml.model.enums.UnitsTemperature makeTemperatureUnitXML(String unit)
public static ome.units.quantity.Temperature makeTemperatureXML(double d, String unit)
public static ome.units.quantity.Temperature convertTemperature(Temperature t)
public static Temperature convertTemperature(Temperature value, ome.units.unit.Unit<ome.units.quantity.Temperature> ul)
public static Temperature convertTemperature(Temperature value, String target)
public double getValue()
Temperature
will be stored in a column "imagingEnvironmenttemperature".public UnitsTemperature getUnit()
value
for physicalSizeX will be stored as "imagingEnvironment.temperature", the unit enum
will be stored as "imagingEnvironment.temperatureUnit".public void setUnit(UnitsTemperature unit)
public boolean acceptFilter(Filter filter)
acceptFilter
in interface Filterable
Version: 5.2.0-ice35-b12
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.