Class ChannelProviderTernary
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<T,ImageInitialization>
org.anchoranalysis.image.bean.ImageBean<T>
org.anchoranalysis.image.bean.provider.BeanProviderAsStackBase<ChannelProvider,Channel>
org.anchoranalysis.image.bean.provider.ChannelProvider
org.anchoranalysis.image.bean.provider.ChannelProviderTernary
- All Implemented Interfaces:
Provider<Channel>,ProviderAsStack
public abstract class ChannelProviderTernary extends ChannelProvider
Implementation of
ChannelProvider that calls three ChannelProviders that
must provide Channels of the same dimensions.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Modifier Constructor Description protectedChannelProviderTernary() -
Method Summary
Modifier and Type Method Description Channelget()ChannelProvidergetChannel1()The first delegateChannelProviderthat is called.ChannelProvidergetChannel2()The second delegateChannelProviderthat is called.ChannelProvidergetChannel3()The third delegateChannelProviderthat is called.protected abstract Channelprocess(Channel channel1, Channel channel2, Channel channel3)Creates 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.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
- Throws:
ProvisionFailedException
-
process
protected abstract Channel process(Channel channel1, Channel channel2, Channel channel3) throws ProvisionFailedExceptionCreates 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.
-