public class HorizontalCacheCreator extends Object implements CacheCreator
FeatureCalculationCache
which caches the results of calls to features, even if
the same feature appears multiple times, directly or indirectly.
One feature may indirectly call another feature when calculating, or explicitly by reference.
It is termed horizontal as it does not cache computations between successive inputs, but rather for the same input across multiple features.
Constructor and Description |
---|
HorizontalCacheCreator(FeatureList<? extends FeatureInput> namedFeatures,
SharedFeatures sharedFeatures,
FeatureInitialization initialization,
Logger logger) |
Modifier and Type | Method and Description |
---|---|
<T extends FeatureInput> |
create(Class<? extends FeatureInput> inputType)
Creates a
FeatureCalculationCache that accepts a particular input type. |
public HorizontalCacheCreator(FeatureList<? extends FeatureInput> namedFeatures, SharedFeatures sharedFeatures, FeatureInitialization initialization, Logger logger)
public <T extends FeatureInput> FeatureCalculationCache<T> create(Class<? extends FeatureInput> inputType)
CacheCreator
FeatureCalculationCache
that accepts a particular input type.create
in interface CacheCreator
T
- the input-type.inputType
- the class corresponding to <T>
.FeatureCalculationCache
.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.