Class HistogramProviderUnary
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<T,ImageInitialization>
org.anchoranalysis.image.bean.ImageBean<HistogramProvider>
org.anchoranalysis.image.bean.provider.HistogramProvider
org.anchoranalysis.image.bean.provider.HistogramProviderUnary
- All Implemented Interfaces:
Provider<org.anchoranalysis.math.histogram.Histogram>
public abstract class HistogramProviderUnary extends HistogramProvider
Implementation of
HistogramProvider that calls a single delegate HistogramProvider.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Modifier Constructor Description protectedHistogramProviderUnary() -
Method Summary
Modifier and Type Method Description protected abstract org.anchoranalysis.math.histogram.HistogramcreateFromHistogram(org.anchoranalysis.math.histogram.Histogram histogram)Creates aHistogramgiven the entity provided by the delegate.org.anchoranalysis.math.histogram.Histogramget()HistogramProvidergetHistogram()The delegateHistogramProviderthat is called.voidsetHistogram(HistogramProvider histogram)The delegateHistogramProviderthat is called.Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
HistogramProviderUnary
protected HistogramProviderUnary()
-
-
Method Details
-
get
- Throws:
ProvisionFailedException
-
createFromHistogram
protected abstract org.anchoranalysis.math.histogram.Histogram createFromHistogram(org.anchoranalysis.math.histogram.Histogram histogram) throws ProvisionFailedExceptionCreates aHistogramgiven the entity provided by the delegate.- Parameters:
histogram- the entity provided by the delegate.- Returns:
- the created
Histogramthat is returned by the provider. - Throws:
ProvisionFailedException- if the provider cannot complete successfully.
-
getHistogram
The delegateHistogramProviderthat is called. -
setHistogram
The delegateHistogramProviderthat is called.
-