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
ObjectMask
s and stores the results in a map.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CalculateIncrementalOperationMap
(boolean do3D) Creates a new instance with the specified 3D flag.protected
Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ObjectMask
applyOperation
(ObjectMask object, Extent extent, boolean do3D) Applies the incremental operation to the input object.protected boolean
boolean
protected ObjectMask
execute
(FeatureInputSingleObject input, Integer key) Calculates a result for a particular input and key.int
hashCode()
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
- theCalculateIncrementalOperationMap
to copy from
-
-
Method Details
-
execute
protected ObjectMask execute(FeatureInputSingleObject input, Integer key) throws FeatureCalculationException Description copied from class:CalculationPartMap
Calculates a result for a particular input and key.- Specified by:
execute
in 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 inputObjectMask
extent
- theExtent
of the objectdo3D
- whether to perform 3D operations- Returns:
- the resulting
ObjectMask
after applying the operation - Throws:
OperationFailedException
- if the operation fails
-
equals
- Specified by:
equals
in classCalculationPartMap<ObjectMask,
FeatureInputSingleObject, Integer, FeatureCalculationException>
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCode
in classCalculationPartMap<ObjectMask,
FeatureInputSingleObject, Integer, FeatureCalculationException>
-