Class SessionInputSequential<T extends FeatureInput>
Object
org.anchoranalysis.feature.session.SessionInputSequential<T>
- Type Parameters:
T- feature-type
- All Implemented Interfaces:
FeatureCalculationInput<T>
public class SessionInputSequential<T extends FeatureInput> extends Object implements FeatureCalculationInput<T>
A feature-input that will be used in a
SequentialSession- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description SessionInputSequential(T input, CacheCreator cacheCreator)Creates for a particular input andCacheCreator, otherwise using defaults.SessionInputSequential(T input, CacheCreator cacheCreator, ChildCacheFinder findChild)Creates for a particular input,CacheCreatorandChildCacheFinder. -
Method Summary
Modifier and Type Method Description FeatureSymbolCalculator<T>bySymbol()doublecalculate(Feature<T> feature)ResultsVectorcalculate(FeatureList<T> features)<S> Scalculate(ResolvedPart<S,T> calculation)<S> Scalculate(CalculationPart<S,T> cc)CalculateForChild<T>forChild()Tget()FeatureCalculationCache<T>getCache()voidreplaceInput(T input)Replaces existing input with new inputCalculationPartResolver<T>resolver()
-
Constructor Details
-
SessionInputSequential
Creates for a particular input andCacheCreator, otherwise using defaults.- Parameters:
input- input for feature calculation.cacheCreator- creates a cache.
-
SessionInputSequential
Creates for a particular input,CacheCreatorandChildCacheFinder.- Parameters:
input- input for feature calculation.cacheCreator- creates a cache.findChild- locates a particular child-cache.
-
-
Method Details
-
replaceInput
Replaces existing input with new input- Parameters:
input- new parameters which will replace existing ones
-
get
- Specified by:
getin interfaceFeatureCalculationInput<T extends FeatureInput>
-
calculate
- Specified by:
calculatein interfaceFeatureCalculationInput<T extends FeatureInput>- Throws:
FeatureCalculationException
-
calculate
- Specified by:
calculatein interfaceFeatureCalculationInput<T extends FeatureInput>- Throws:
NamedFeatureCalculateException
-
calculate
- Specified by:
calculatein interfaceFeatureCalculationInput<T extends FeatureInput>- Throws:
FeatureCalculationException
-
calculate
- Specified by:
calculatein interfaceFeatureCalculationInput<T extends FeatureInput>- Throws:
FeatureCalculationException
-
resolver
- Specified by:
resolverin interfaceFeatureCalculationInput<T extends FeatureInput>
-
bySymbol
- Specified by:
bySymbolin interfaceFeatureCalculationInput<T extends FeatureInput>
-
forChild
- Specified by:
forChildin interfaceFeatureCalculationInput<T extends FeatureInput>
-
getCache
- Specified by:
getCachein interfaceFeatureCalculationInput<T extends FeatureInput>
-