Class AsSingle
Extracts one of the memos from the pair, and processes as a
FeatureSingleMemo- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleClass<? extends FeatureInput> booleanisFirst()Iff true, first object is used, otherwise the secondvoidsetFirst(boolean first) Iff true, first object is used, otherwise the secondMethods inherited from class org.anchoranalysis.feature.bean.operator.FeatureUnary
getItem, setItemMethods inherited from class org.anchoranalysis.feature.bean.Feature
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toStringMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitializedMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
-
Constructor Details
-
AsSingle
public AsSingle()
-
-
Method Details
-
calculate
public double calculate(FeatureCalculationInput<FeatureInputPairMemo> input) throws FeatureCalculationException - Specified by:
calculatein classFeature<FeatureInputPairMemo>- Throws:
FeatureCalculationException
-
inputType
- Overrides:
inputTypein classFeatureUnary<FeatureInputPairMemo, FeatureInputSingleMemo>
-
describeParameters
- Overrides:
describeParametersin classFeature<FeatureInputPairMemo>
-
isFirst
public boolean isFirst()Iff true, first object is used, otherwise the second -
setFirst
public void setFirst(boolean first) Iff true, first object is used, otherwise the second
-