Package org.anchoranalysis.feature.input
Class FeatureInputEnergy
Object
FeatureInputDimensions
FeatureInputEnergy
- All Implemented Interfaces:
FeatureInput,FeatureInputDictionary,FeatureInputWithResolution
- Direct Known Subclasses:
FeatureInputAllMemo,FeatureInputObjectCollection,FeatureInputPairMemo,FeatureInputPairObjects,FeatureInputSingleMemo,FeatureInputSingleObject,FeatureInputStack
public abstract class FeatureInputEnergy
extends FeatureInputDimensions
implements FeatureInputDictionary
A
FeatureInputDimensions that has an optional EnergyStack associated with it.- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates without an associated energy-stack.FeatureInputEnergy(Optional<EnergyStack> energyStack) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanThe dimensions of the associated image.The image-dimensions associated with the energy-stack, if it exists.The image-dimensions associated with the energy-stack, or an exception if no energy-stack exists.booleanThe associated dictionary, if it exists.The associated energy-stack.The associated energy-stack or throws an exception if it isn't present.The resolution of the associated image, if it is available.Converts voxelized measurements to/from physical units.inthashCode()voidsetEnergyStack(Optional<EnergyStack> energyStack) Assigns an optionalEnergyStackto be associated with the input.voidsetEnergyStack(EnergyStack energyStack) Assigns anEnergyStackto be associated with the input.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.anchoranalysis.feature.input.FeatureInputDictionary
getDictionaryRequiredMethods inherited from interface org.anchoranalysis.feature.input.FeatureInputWithResolution
getResolutionRequired
-
Constructor Details
-
FeatureInputEnergy
protected FeatureInputEnergy()Creates without an associated energy-stack. -
FeatureInputEnergy
-
-
Method Details
-
getUnitConverterOptional
Converts voxelized measurements to/from physical units.- Returns:
- a converter that will perform conversions using current resolution, if it exists.
-
getResolutionOptional
Description copied from interface:FeatureInputWithResolutionThe resolution of the associated image, if it is available.- Specified by:
getResolutionOptionalin interfaceFeatureInputWithResolution- Overrides:
getResolutionOptionalin classFeatureInputDimensions- Returns:
- the resolution, if it is available.
-
getDictionaryOptional
Description copied from interface:FeatureInputDictionaryThe associated dictionary, if it exists.- Specified by:
getDictionaryOptionalin interfaceFeatureInputDictionary- Returns:
- the dictionary, if it exists.
-
dimensions
Description copied from class:FeatureInputDimensionsThe dimensions of the associated image.- Specified by:
dimensionsin classFeatureInputDimensions- Returns:
- the dimensions.
- Throws:
FeatureCalculationException- if the dimensions cannot be calculated.
-
dimensionsRequired
The image-dimensions associated with the energy-stack, or an exception if no energy-stack exists.- Returns:
- the image-dimensions.
- Throws:
FeatureCalculationException- if the dimensions are not known.
-
dimensionsOptional
The image-dimensions associated with the energy-stack, if it exists.- Returns:
- the image-dimensions, if it exists.
-
getEnergyStackRequired
The associated energy-stack or throws an exception if it isn't present.- Returns:
- the associated energy-stack.
- Throws:
FeatureCalculationException- if the energy-stack isn't present
-
getEnergyStackOptional
The associated energy-stack.- Returns:
- the energy-stack, if present.
-
setEnergyStack
Assigns anEnergyStackto be associated with the input.Any existing energy-stack is replaced.
- Parameters:
energyStack- the energy-stack to assign.
-
setEnergyStack
Assigns an optionalEnergyStackto be associated with the input.Any existing energy-stack state is replaced.
- Parameters:
energyStack- the optional energy-stack to assign.
-
equals
- Overrides:
equalsin classFeatureInputDimensions
-
canEqual
- Overrides:
canEqualin classFeatureInputDimensions
-
hashCode
public int hashCode()- Overrides:
hashCodein classFeatureInputDimensions
-