T
- the feature input-typepublic class Reference<T extends FeatureInput> extends FeatureGeneric<T>
The other feature is identified by it's name, or a string that otherwise resolves to its name.
Constructor and Description |
---|
Reference() |
Reference(String id)
Create with a specific identifier.
|
Modifier and Type | Method and Description |
---|---|
double |
calculate(FeatureCalculationInput<T> input)
Calculates a value for some input.
|
String |
descriptionLong()
A long human-readable description of the feature and some or all of its parameterization.
|
String |
getId()
The identifier that uniquely determines the other feature to reference.
|
void |
setId(String id)
The identifier that uniquely determines the other feature to reference.
|
inputType
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toString
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
public Reference(String id)
id
- the identifier.public Reference()
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 descriptionLong()
Feature
This can be overwritten to create an alternative description for features. By default
string returned by Feature.describeBean()
is used.
descriptionLong
in class Feature<T extends FeatureInput>
public String getId()
public void setId(String id)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.