public abstract class ChannelProviderBinary extends ChannelProvider
ChannelProvider
that calls two ChannelProvider
s that
must provide Channel
s of the same dimensions.Modifier | Constructor and Description |
---|---|
protected |
ChannelProviderBinary() |
Modifier and Type | Method and Description |
---|---|
Channel |
get()
Gets or creates an object of type
T . |
ChannelProvider |
getChannel1()
The first delegate
ChannelProvider that is called. |
ChannelProvider |
getChannel2()
The second delegate
ChannelProvider that is called. |
protected abstract Channel |
process(Channel channel1,
Channel channel2)
Creates a
Channel given the two entities provided by the delegates. |
void |
setChannel1(ChannelProvider channel1)
The first delegate
ChannelProvider that is called. |
void |
setChannel2(ChannelProvider channel2)
The second delegate
ChannelProvider that is called. |
getAsStack
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public Channel get() throws ProvisionFailedException
Provider
T
.ProvisionFailedException
- if the object cannot be returned.protected abstract Channel process(Channel channel1, Channel channel2) throws ProvisionFailedException
Channel
given the two entities provided by the delegates.channel1
- the entity provided by the first delegate.channel2
- the entity provided by the second delegate.Channel
that is returned by the provider.ProvisionFailedException
- if the provider cannot complete successfully.public ChannelProvider getChannel1()
ChannelProvider
that is called.public void setChannel1(ChannelProvider channel1)
ChannelProvider
that is called.public ChannelProvider getChannel2()
ChannelProvider
that is called.public void setChannel2(ChannelProvider channel2)
ChannelProvider
that is called.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.