Class CalculateInputFromPair
- All Implemented Interfaces:
ResettableCalculation
public class CalculateInputFromPair
extends CalculationPart<FeatureInputSingleObject,FeatureInputPairObjects>
Calculates a single-input from a pair of objects.
Three extraction modes are possible:
- First object
- Second object
- Merged objects
- Author:
- Owen Feehan
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDefines the extraction mode for the calculation. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newCalculateInputFromPairinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanprotected FeatureInputSingleObjectexecute(FeatureInputPairObjects input) Executes the calculation to extract a single object from the pair.inthashCode()Methods inherited from class org.anchoranalysis.feature.calculate.part.CalculationPart
getOrCalculate, hasCachedResult, invalidate
-
Constructor Details
-
CalculateInputFromPair
Creates a newCalculateInputFromPairinstance.- Parameters:
extract- The extraction mode to use.
-
-
Method Details
-
execute
Executes the calculation to extract a single object from the pair.- Specified by:
executein classCalculationPart<FeatureInputSingleObject,FeatureInputPairObjects> - Parameters:
input- The input pair of objects.- Returns:
- A new FeatureInputSingleObject containing the extracted object and energy stack.
-
equals
- Specified by:
equalsin classCalculationPart<FeatureInputSingleObject,FeatureInputPairObjects>
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCodein classCalculationPart<FeatureInputSingleObject,FeatureInputPairObjects>
-