S
- encapsulation of the features that provide the calculation.public class FeatureCalculationContext<S> extends Object
Constructor and Description |
---|
FeatureCalculationContext(FeatureResultsAndThumbnails results,
S rowSource,
FeatureNameList featureNames,
Optional<String> groupGeneratorName,
ExecutionTimeRecorder executionTimeRecorder,
boolean suppressErrors,
InputOutputContext context)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
InputOutputContext |
getContext() |
ExecutionTimeRecorder |
getExecutionTimeRecorder()
Records the execution-time of particular operations.
|
FeatureNameList |
getFeatureNames()
The name of each feature being calculated, in identical order, as that is placed in the
exported CSV.
|
S |
getFeatureSource()
The features that are calculated, encapsulated in some object.
|
Optional<String> |
getGroupGeneratorName() |
Logger |
getLogger() |
Path |
getModelDirectory() |
OperationContext |
getOperationContext() |
FeatureResultsAndThumbnails |
getResults()
The stored results and thumbnail writer.
|
boolean |
isSuppressErrors()
When false, an image is reported as errored, if any exception is thrown during calculation.
|
boolean |
isThumbnailsEnabled() |
public FeatureCalculationContext(FeatureResultsAndThumbnails results, S rowSource, FeatureNameList featureNames, Optional<String> groupGeneratorName, ExecutionTimeRecorder executionTimeRecorder, boolean suppressErrors, InputOutputContext context)
results
- the stored results and thumbnail writer.rowSource
- featureNames
- groupGeneratorName
- executionTimeRecorder
- suppressErrors
- if false, an image is reported as errored, if any exception is thrown
during calculation. If true, then a value of Double.NaN
is returned, and a
message is written to the error-log.context
- public Path getModelDirectory()
public Logger getLogger()
public OperationContext getOperationContext()
public FeatureResultsAndThumbnails getResults()
public S getFeatureSource()
public FeatureNameList getFeatureNames()
public ExecutionTimeRecorder getExecutionTimeRecorder()
public InputOutputContext getContext()
public boolean isSuppressErrors()
When true, then a value of Double.NaN
is returned, and a message is written to the
error-log.
public boolean isThumbnailsEnabled()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.