T
- the feature input-typepublic interface ReplaceStrategy<T extends FeatureInput>
FeatureCalculationInput
with a particular input
.
A new FeatureCalculationInput
may be created, or an existing one reused - with or
without invalidating it.
Depending on the relationships that may exist between successive inputs that are calculated, particular caching strategies can be used to avoid repeating redundant calculation. This class provides an abstract interface for one aspect of that relationship.
Modifier and Type | Method and Description |
---|---|
FeatureCalculationInput<T> |
createOrReuse(T input)
Find or create a
FeatureCalculationInput to associate with input . |
FeatureCalculationInput<T> createOrReuse(T input) throws OperationFailedException
FeatureCalculationInput
to associate with input
.input
- the input that a FeatureCalculationInput
will be associated with.FeatureCalculationInput
, either newly created, or reused from a previous
call.OperationFailedException
- if an error-state emergeCopyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.