Class ChannelProviderTernary
- All Implemented Interfaces:
Provider<Channel>,ProviderAsStack
- Direct Known Subclasses:
MeanThreeChannels
Implementation of
ChannelProvider that calls three ChannelProviders that
must provide Channels of the same dimensions.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()Gets or creates an object of typeT.The first delegateChannelProviderthat is called.The second delegateChannelProviderthat is called.The third delegateChannelProviderthat is called.protected abstract ChannelCreates aChannelgiven the two entities provided by the delegates.voidsetChannel1(ChannelProvider channel1) The first delegateChannelProviderthat is called.voidsetChannel2(ChannelProvider channel2) The second delegateChannelProviderthat is called.voidsetChannel3(ChannelProvider channel3) The third delegateChannelProviderthat is called.Methods inherited from class org.anchoranalysis.image.bean.provider.ChannelProvider
getAsStackMethods 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
-
ChannelProviderTernary
protected ChannelProviderTernary()
-
-
Method Details
-
get
Description copied from interface:ProviderGets 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 aChannelgiven 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
Channelthat is returned by the provider. - Throws:
ProvisionFailedException- if the provider cannot complete successfully.
-
getChannel1
The first delegateChannelProviderthat is called. -
setChannel1
The first delegateChannelProviderthat is called. -
getChannel2
The second delegateChannelProviderthat is called. -
setChannel2
The second delegateChannelProviderthat is called. -
getChannel3
The third delegateChannelProviderthat is called. -
setChannel3
The third delegateChannelProviderthat is called.
-