T
- feature-input typepublic interface FeatureSymbolCalculator<T extends FeatureInput>
A symbol is an ID/variable-name referring to another feature.
Modifier and Type | Method and Description |
---|---|
double |
calculateFeatureByIdentifier(String resolvedIdentifier,
FeatureCalculationInput<T> input)
Searches for a feature that matches a particular identifier.
|
String |
resolveFeatureIdentifier(String identifier)
Resolves an identifier to a unique-string, suitable for
calculateFeatureByIdentifier(String, FeatureCalculationInput) . |
String resolveFeatureIdentifier(String identifier)
calculateFeatureByIdentifier(String, FeatureCalculationInput)
.
Due to scoping (different prefixes that can exist), an ID needs to be resolved to a
unique-string before it can be passed to calculateFeatureByIdentifier(String,
FeatureCalculationInput)
.
identifier
- the identifier to resolve.double calculateFeatureByIdentifier(String resolvedIdentifier, FeatureCalculationInput<T> input) throws FeatureCalculationException
resolvedIdentifier
- the identifier.input
- the feature-input to be calculated.FeatureCalculationException
- if the feature cannot be successfully calculated.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.