Class CalculateInputFromDelegate<S, T extends FeatureInput, U>
Object
CalculationPart<S,T>
CalculateInputFromDelegate<S,T,U>
- Type Parameters:
S- final-type ofCalculationPart.T- feature input-type as input to cached-calculations.U- delegate-type ofCalculationPart.
- All Implemented Interfaces:
ResettableCalculation
- Direct Known Subclasses:
CalculateInputFromDelegateOption,CalculateIntersecting
public abstract class CalculateInputFromDelegate<S, T extends FeatureInput, U>
extends CalculationPart<S,T>
A base class for
CalculationParts that derive from an existing "delegate" calculation.
These types of calculations involve two steps:
- Calculating from an existing
CalculationPart. - Applying a transform to generate parameters.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCalculateInputFromDelegate(ResolvedPart<U, T> delegate) Creates a newCalculateInputFromDelegateinstance.protectedCalculateInputFromDelegate(CalculationPart<U, T> delegate, CalculationPartResolver<T> cache) Creates a newCalculateInputFromDelegate. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected abstract SderiveFromDelegate(T input, U delegate) Derives the result from the delegate calculation.booleanGets the delegateResolvedPart.inthashCode()Methods inherited from class org.anchoranalysis.feature.calculate.part.CalculationPart
getOrCalculate, hasCachedResult, invalidate
-
Constructor Details
-
CalculateInputFromDelegate
protected CalculateInputFromDelegate(CalculationPart<U, T> delegate, CalculationPartResolver<T> cache) Creates a newCalculateInputFromDelegate.- Parameters:
delegate- the delegateCalculationPartcache- theCalculationPartResolverto use for caching
-
CalculateInputFromDelegate
-
-
Method Details
-
execute
-
deriveFromDelegate
-
getDelegate
-
equals
-
canEqual
-
hashCode
-