Class ChannelProviderBinary
- All Implemented Interfaces:
Provider<Channel>,ProviderAsStack
- Direct Known Subclasses:
TwoVoxelMappingBase
Implementation of
ChannelProvider that calls two 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.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.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
-
ChannelProviderBinary
protected ChannelProviderBinary()
-
-
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) 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.- 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.
-