public abstract class UnaryWithValueBase extends ChannelProviderUnary
ChannelProviderUnary
which has a scalar value fieldConstructor and Description |
---|
UnaryWithValueBase() |
Modifier and Type | Method and Description |
---|---|
Channel |
createFromChannel(Channel channel)
Creates a
Channel given the entity provided by the delegate. |
protected abstract Channel |
createFromChannelWithConstant(Channel channel,
double value) |
double |
getValue() |
void |
setValue(double value) |
get, getChannel, setChannel
getAsStack
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public Channel createFromChannel(Channel channel) throws ProvisionFailedException
ChannelProviderUnary
Channel
given the entity provided by the delegate.createFromChannel
in class ChannelProviderUnary
channel
- the entity provided by the delegate.Channel
that is returned by the provider.ProvisionFailedException
- if the provider cannot complete successfully.protected abstract Channel createFromChannelWithConstant(Channel channel, double value) throws ProvisionFailedException
ProvisionFailedException
public double getValue()
public void setValue(double value)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.