Class AsSingle
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<Feature<T>,FeatureInitialization>
org.anchoranalysis.feature.bean.Feature<T>
org.anchoranalysis.feature.bean.operator.FeatureUnary<FeatureInputPairMemo,FeatureInputSingleMemo>
org.anchoranalysis.mpp.feature.bean.energy.element.AsSingle
public class AsSingle extends FeatureUnary<FeatureInputPairMemo,FeatureInputSingleMemo>
Extracts one of the memos from the pair, and processes as a
FeatureSingleMemo- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description AsSingle() -
Method Summary
Modifier and Type Method Description doublecalculate(FeatureCalculationInput<FeatureInputPairMemo> input)StringdescribeParameters()Class<? extends FeatureInput>inputType()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.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
-