Class CalculateIncrementalOperationMap
Object
CalculationPartMap<ObjectMask,FeatureInputSingleObject,Integer,FeatureCalculationException>
CalculateIncrementalOperationMap
- All Implemented Interfaces:
ResettableCalculation
- Direct Known Subclasses:
CalculateDilationMap,CalculateErosionMap
public abstract class CalculateIncrementalOperationMap
extends CalculationPartMap<ObjectMask,FeatureInputSingleObject,Integer,FeatureCalculationException>
Calculates incremental operations on
ObjectMasks and stores the results in a map.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCalculateIncrementalOperationMap(boolean do3D) Creates a new instance with the specified 3D flag.protectedCopy constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ObjectMaskapplyOperation(ObjectMask object, Extent extent, boolean do3D) Applies the incremental operation to the input object.protected booleanbooleanprotected ObjectMaskexecute(FeatureInputSingleObject input, Integer key) Calculates a result for a particular input and key.inthashCode()Methods inherited from class org.anchoranalysis.feature.calculate.part.CalculationPartMap
getOrCalculate, getOrNull, hasKey, invalidate, numberItemsCurrentlyStored, put
-
Constructor Details
-
CalculateIncrementalOperationMap
protected CalculateIncrementalOperationMap(boolean do3D) Creates a new instance with the specified 3D flag.- Parameters:
do3D- whether to perform 3D operations
-
CalculateIncrementalOperationMap
Copy constructor.- Parameters:
other- theCalculateIncrementalOperationMapto copy from
-
-
Method Details
-
execute
protected ObjectMask execute(FeatureInputSingleObject input, Integer key) throws FeatureCalculationException Description copied from class:CalculationPartMapCalculates a result for a particular input and key.- Specified by:
executein classCalculationPartMap<ObjectMask,FeatureInputSingleObject, Integer, FeatureCalculationException> - Parameters:
input- the input.key- the key.- Returns:
- the evaluated result.
- Throws:
FeatureCalculationException
-
applyOperation
protected abstract ObjectMask applyOperation(ObjectMask object, Extent extent, boolean do3D) throws OperationFailedException Applies the incremental operation to the input object.- Parameters:
object- the inputObjectMaskextent- theExtentof the objectdo3D- whether to perform 3D operations- Returns:
- the resulting
ObjectMaskafter applying the operation - Throws:
OperationFailedException- if the operation fails
-
equals
- Specified by:
equalsin classCalculationPartMap<ObjectMask,FeatureInputSingleObject, Integer, FeatureCalculationException>
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCodein classCalculationPartMap<ObjectMask,FeatureInputSingleObject, Integer, FeatureCalculationException>
-