public abstract class FeatureIntersectingObjects extends FeatureSingleObject
Constructor and Description |
---|
FeatureIntersectingObjects() |
Modifier and Type | Method and Description |
---|---|
protected void |
beforeCalc(FeatureInitialization initialization)
Dummy method, that children can optionally override.
|
double |
calculate(FeatureCalculationInput<FeatureInputSingleObject> input)
Calculates a value for some input.
|
String |
getId()
ID for the particular object-collection
|
protected ObjectCollection |
getSearchObjects() |
double |
getValueNoObjects() |
void |
setId(String id)
ID for the particular object-collection
|
void |
setValueNoObjects(double valueNoObjects) |
protected abstract double |
valueFor(FeatureCalculationInput<FeatureInputSingleObject> input,
ResolvedPart<ObjectCollection,FeatureInputSingleObject> intersecting) |
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<FeatureInputSingleObject>
initialization
- initialization parameters.InitializeException
- if initialization cannot complete successfully.public double calculate(FeatureCalculationInput<FeatureInputSingleObject> input) throws FeatureCalculationException
Feature
calculate
in class Feature<FeatureInputSingleObject>
input
- the input to the calculation.FeatureCalculationException
- if the calculation cannot successfully complete.protected abstract double valueFor(FeatureCalculationInput<FeatureInputSingleObject> input, ResolvedPart<ObjectCollection,FeatureInputSingleObject> intersecting) throws FeatureCalculationException
FeatureCalculationException
protected ObjectCollection getSearchObjects()
public String getId()
public void setId(String id)
public double getValueNoObjects()
public void setValueNoObjects(double valueNoObjects)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.