public class PowerI extends Power implements ome.model.ModelBased
Power
class.
Like Details
and Permissions
, this object
is embedded into other objects and does not have a full life
cycle of its own.Modifier and Type | Field and Description |
---|---|
static Ice.ObjectFactory |
Factory |
Constructor and Description |
---|
PowerI() |
PowerI(double d,
ome.units.unit.Unit<ome.units.quantity.Power> unit) |
PowerI(double d,
UnitsPower unit) |
PowerI(double d,
ome.model.enums.UnitsPower ul)
Copy constructor that converts the given
Power
based on the given ome.model enum |
PowerI(ome.units.quantity.Power value)
Convert a Bio-Formats
Length to an OMERO Length. |
PowerI(Power value,
java.lang.String target)
Copy constructor that converts the given
Power
based on the given enum string. |
PowerI(Power value,
ome.units.unit.Unit<ome.units.quantity.Power> ul)
Copy constructor that converts the given
Power
based on the given ome-xml enum |
PowerI(Power value,
UnitsPower target)
Copy constructor that converts between units if possible.
|
Modifier and Type | Method and Description |
---|---|
static ome.units.quantity.Power |
convert(Power 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)!", e); return new
PositiveFloat(1.0);
or similar.
|
Power |
copy(Ice.Current ignore) |
void |
copyObject(ome.util.Filterable model,
ome.util.ModelMapper mapper) |
boolean |
equals(java.lang.Object obj) |
ome.util.Filterable |
fillObject(ome.util.ReverseModelMapper mapper) |
java.lang.String |
getSymbol(Ice.Current current)
Returns the possibly unicode representation of the ""unit""
value for display.
|
UnitsPower |
getUnit(Ice.Current current)
UnitsPower instance which is an
IObject
meaning that its ID is sufficient for identifying equality. |
double |
getValue(Ice.Current current)
Actual value for this unit-based field.
|
int |
hashCode() |
static java.lang.String |
lookupSymbol(UnitsPower unit) |
static Ice.ObjectFactory |
makeFactory(client client) |
static ome.units.quantity.Power |
makeXMLQuantity(double d,
java.lang.String unit) |
static ome.xml.model.enums.UnitsPower |
makeXMLUnit(java.lang.String unit) |
void |
setUnit(UnitsPower unit,
Ice.Current current) |
void |
setValue(double value,
Ice.Current current) |
java.lang.String |
toString() |
___copy, ___getSymbol, ___getUnit, ___getValue, ___setUnit, ___setValue, __dispatch, __readImpl, __writeImpl, clone, copy, getSymbol, getUnit, getValue, ice_id, ice_id, ice_ids, ice_ids, ice_isA, ice_isA, ice_staticId, setUnit, setValue
public PowerI()
public PowerI(double d, UnitsPower unit)
public PowerI(double d, ome.units.unit.Unit<ome.units.quantity.Power> unit)
public PowerI(Power value, ome.units.unit.Unit<ome.units.quantity.Power> ul) throws ome.model.units.BigResult
Power
based on the given ome-xml enumome.model.units.BigResult
public PowerI(double d, ome.model.enums.UnitsPower ul)
Power
based on the given ome.model enumpublic PowerI(Power value, java.lang.String target) throws ome.model.units.BigResult
Power
based on the given enum string.target
- String representation of the CODE enumome.model.units.BigResult
public PowerI(Power value, UnitsPower target) throws ome.model.units.BigResult
target
- unit that is desired. non-null.ome.model.units.BigResult
public PowerI(ome.units.quantity.Power value)
Length
to an OMERO Length.public static java.lang.String lookupSymbol(UnitsPower unit)
public static final Ice.ObjectFactory makeFactory(client client)
public static ome.xml.model.enums.UnitsPower makeXMLUnit(java.lang.String unit)
public static ome.units.quantity.Power makeXMLQuantity(double d, java.lang.String unit)
public static ome.units.quantity.Power convert(Power t)
public double getValue(Ice.Current current)
_PowerOperations
UnitsPower
enum.getValue
in interface _PowerOperations
current
- The Current object for the invocation.public void setValue(double value, Ice.Current current)
setValue
in interface _PowerOperations
public UnitsPower getUnit(Ice.Current current)
_PowerOperations
UnitsPower
instance which is an
IObject
meaning that its ID is sufficient for identifying equality.getUnit
in interface _PowerOperations
current
- The Current object for the invocation.public void setUnit(UnitsPower unit, Ice.Current current)
setUnit
in interface _PowerOperations
public java.lang.String getSymbol(Ice.Current current)
_PowerOperations
getSymbol
in interface _PowerOperations
current
- The Current object for the invocation.public Power copy(Ice.Current ignore)
copy
in interface _PowerOperations
public void copyObject(ome.util.Filterable model, ome.util.ModelMapper mapper)
copyObject
in interface ome.model.ModelBased
public ome.util.Filterable fillObject(ome.util.ReverseModelMapper mapper)
fillObject
in interface ome.model.ModelBased
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object