public abstract class LevelPerObjectBase extends ChannelProviderUnary
Constructor and Description |
---|
LevelPerObjectBase() |
Modifier and Type | Method and Description |
---|---|
Channel |
createFromChannel(Channel channel)
Creates a
Channel given the entity provided by the delegate. |
CalculateLevel |
getCalculateLevel()
Method to calculate the level for a particular object.
|
ObjectCollectionProvider |
getObjects()
The objects for whom a level is calculated
|
void |
setCalculateLevel(CalculateLevel calculateLevel)
Method to calculate the level for a particular object.
|
void |
setObjects(ObjectCollectionProvider objects)
The objects for whom a level is calculated
|
protected abstract void |
writeLevelsForObjects(Channel input,
ObjectCollection objects,
Channel output)
Creates a channel with the levels for a set of objects
|
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 void writeLevelsForObjects(Channel input, ObjectCollection objects, Channel output) throws ProvisionFailedException
input
- the channel whose intensity is passed to calculateLevel
as a histogram
variously for particular objectsobjects
- the objectsoutput
- the channel where the calculated-levels are written (for each object)ProvisionFailedException
public ObjectCollectionProvider getObjects()
public void setObjects(ObjectCollectionProvider objects)
public CalculateLevel getCalculateLevel()
public void setCalculateLevel(CalculateLevel calculateLevel)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.