T
- feature input-typepublic class IfCondition<T extends FeatureInput> extends FeatureUnaryGeneric<T>
The positive case is when relation(featureCondition,value) is true..
Constructor and Description |
---|
IfCondition() |
Modifier and Type | Method and Description |
---|---|
double |
calculate(FeatureCalculationInput<T> input)
Calculates a value for some input.
|
Feature<T> |
getFeatureCondition() |
Feature<T> |
getFeatureElse() |
RelationToThreshold |
getThreshold() |
void |
setFeatureCondition(Feature<T> featureCondition) |
void |
setFeatureElse(Feature<T> featureElse) |
void |
setThreshold(RelationToThreshold threshold) |
getItem, inputType, setItem
assignTo, beforeCalc, 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
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 RelationToThreshold getThreshold()
public void setThreshold(RelationToThreshold threshold)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.