T
- feature-input-typepublic class ParamFromCollection<T extends FeatureInput> extends FeatureGeneric<T>
Dictionary
in SharedObjects
.
This differs from FromDictionary
which
reads the parameter from the energy-stack, whereas this from a specific parameters collection.
Constructor and Description |
---|
ParamFromCollection() |
Modifier and Type | Method and Description |
---|---|
protected void |
beforeCalc(FeatureInitialization initialization)
Dummy method, that children can optionally override.
|
double |
calculate(FeatureCalculationInput<T> input)
Calculates a value for some input.
|
String |
getDictionary()
The name of the
Dictionary that will be retrieved from SharedObjects . |
String |
getKey()
The name of the key in the dictionary, whose corresponding value will be returned.
|
void |
setDictionary(String dictionary)
The name of the
Dictionary that will be retrieved from SharedObjects . |
void |
setKey(String key)
The name of the key in the dictionary, whose corresponding value will be returned.
|
inputType
assignTo, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toString
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
protected void beforeCalc(FeatureInitialization initialization) throws InitializeException
Feature
beforeCalc
in class Feature<T extends FeatureInput>
initialization
- initialization parameters.InitializeException
- if initialization cannot complete successfully.public double calculate(FeatureCalculationInput<T> input) throws FeatureCalculationException
Feature
calculate
in class Feature<T extends FeatureInput>
input
- the input to the calculation.FeatureCalculationException
- if the calculation cannot successfully complete.public String getDictionary()
Dictionary
that will be retrieved from SharedObjects
.public void setDictionary(String dictionary)
Dictionary
that will be retrieved from SharedObjects
.public String getKey()
public void setKey(String key)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.