public abstract class FeatureConvertUnits<T extends FeatureInputWithResolution> extends WithResolutionBase<T>
Modifier | Constructor and Description |
---|---|
|
FeatureConvertUnits() |
protected |
FeatureConvertUnits(Feature<T> feature,
SpatialUnits.UnitSuffix unitType) |
Modifier and Type | Method and Description |
---|---|
protected double |
calculateWithResolution(double value,
Resolution resolution) |
protected abstract double |
convertToPhysical(double value,
UnitConverter unitConverter) |
String |
getUnitType() |
void |
setUnitType(String unitType) |
calculate, isAcceptMissingResolution, setAcceptMissingResolution
getItem, inputType, setItem
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toString
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
protected FeatureConvertUnits(Feature<T> feature, SpatialUnits.UnitSuffix unitType)
public FeatureConvertUnits()
protected double calculateWithResolution(double value, Resolution resolution) throws FeatureCalculationException
calculateWithResolution
in class WithResolutionBase<T extends FeatureInputWithResolution>
FeatureCalculationException
protected abstract double convertToPhysical(double value, UnitConverter unitConverter) throws FeatureCalculationException
FeatureCalculationException
public String getUnitType()
public void setUnitType(String unitType)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.