|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.measure.unit.UnitConverter
fr.cnes.sitools.units.dimension.model.SitoolsUnitConverter
fr.cnes.sitools.units.converters.FrequencyWavelengthConverter
public class FrequencyWavelengthConverter
Converter to go from frequency to wavelength
| Field Summary |
|---|
| Fields inherited from class javax.measure.unit.UnitConverter |
|---|
IDENTITY |
| Constructor Summary | |
|---|---|
FrequencyWavelengthConverter()
Constructor |
|
| Method Summary | |
|---|---|
double |
convert(double value)
Converts a double value. |
java.lang.Number |
convert(java.lang.Number value,
java.math.MathContext ctx)
Converts a Number value. |
boolean |
equals(java.lang.Object cvtr)
Indicates whether this converter is considered to be the the same as the one specified. |
javax.measure.unit.UnitConverter |
getBaseToTargetConverter()
Get the converter between the two units |
int |
hashCode()
Returns a hash code value for this converter. |
javax.measure.unit.UnitConverter |
inverse()
Returns the inverse of this converter. |
boolean |
isLinear()
Indicates if this converter is linear. |
| Methods inherited from class fr.cnes.sitools.units.dimension.model.SitoolsUnitConverter |
|---|
getStartUnit, getTargetToBaseConverter, getTargetUnit, setStartUnit, setTargetUnit |
| Methods inherited from class javax.measure.unit.UnitConverter |
|---|
concatenate, convert |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FrequencyWavelengthConverter()
| Method Detail |
|---|
public javax.measure.unit.UnitConverter getBaseToTargetConverter()
SitoolsUnitConverter
getBaseToTargetConverter in class SitoolsUnitConverterpublic javax.measure.unit.UnitConverter inverse()
javax.measure.unit.UnitConverterx is a valid
value, then x == inverse().convert(convert(x)) to within
the accuracy of computer arithmetic.
inverse in class javax.measure.unit.UnitConverterpublic double convert(double value)
javax.measure.unit.UnitConverterdouble value.
convert in class javax.measure.unit.UnitConvertervalue - the numeric value to convert.
double value after conversion.
public java.lang.Number convert(java.lang.Number value,
java.math.MathContext ctx)
javax.measure.unit.UnitConverterNumber value.
convert in class javax.measure.unit.UnitConvertervalue - the numeric value to convert.ctx - the math context being used for conversion.
public boolean equals(java.lang.Object cvtr)
javax.measure.unit.UnitConverter
equals in class javax.measure.unit.UnitConvertercvtr - the converter with which to compare.
true if the specified object is a converter
considered equals to this converter;false otherwise.public int hashCode()
javax.measure.unit.UnitConverter
hashCode in class javax.measure.unit.UnitConverterUnitConverter.equals(java.lang.Object)public boolean isLinear()
javax.measure.unit.UnitConverterconvert(u + v) == convert(u) + convert(v) and
convert(r * u) == r * convert(u). For linear converters the
following property always hold:[code]
y1 = c1.convert(x1);
y2 = c2.convert(x2);
// then y1*y2 == c1.concatenate(c2).convert(x1*x2)
[/code]
isLinear in class javax.measure.unit.UnitConvertertrue if this converter is made of distinct converter;
false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||