Class ChannelProviderTernary
- All Implemented Interfaces:
Provider<Channel>
,ProviderAsStack
- Direct Known Subclasses:
MeanThreeChannels
Implementation of
ChannelProvider
that calls three ChannelProvider
s that
must provide Channel
s of the same dimensions.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()
Gets or creates an object of typeT
.The first delegateChannelProvider
that is called.The second delegateChannelProvider
that is called.The third delegateChannelProvider
that is called.protected abstract Channel
Creates aChannel
given the two entities provided by the delegates.void
setChannel1
(ChannelProvider channel1) The first delegateChannelProvider
that is called.void
setChannel2
(ChannelProvider channel2) The second delegateChannelProvider
that is called.void
setChannel3
(ChannelProvider channel3) The third delegateChannelProvider
that is called.Methods inherited from class org.anchoranalysis.image.bean.provider.ChannelProvider
getAsStack
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
ChannelProviderTernary
protected ChannelProviderTernary()
-
-
Method Details
-
get
Description copied from interface:Provider
Gets or creates an object of typeT
.- Returns:
- the object returned by the provider.
- Throws:
ProvisionFailedException
- if the object cannot be returned.
-
process
protected abstract Channel process(Channel channel1, Channel channel2, Channel channel3) throws ProvisionFailedException Creates aChannel
given the two entities provided by the delegates.- Parameters:
channel1
- the entity provided by the first delegate.channel2
- the entity provided by the second delegate.channel3
- the entity provided by the third delegate.- Returns:
- the created
Channel
that is returned by the provider. - Throws:
ProvisionFailedException
- if the provider cannot complete successfully.
-
getChannel1
The first delegateChannelProvider
that is called. -
setChannel1
The first delegateChannelProvider
that is called. -
getChannel2
The second delegateChannelProvider
that is called. -
setChannel2
The second delegateChannelProvider
that is called. -
getChannel3
The third delegateChannelProvider
that is called. -
setChannel3
The third delegateChannelProvider
that is called.
-