Class UnaryWithChannelBase
Object
AnchorBean<ObjectCollectionProvider>
InitializableBean<ObjectCollectionProvider, ImageInitialization>
ImageBean<ObjectCollectionProvider>
ObjectCollectionProvider
ObjectCollectionProviderUnary
UnaryWithChannelBase
- All Implemented Interfaces:
Provider<ObjectCollection>
- Direct Known Subclasses:
BinarySegmentByObject,SegmentChannelByObject
public abstract class UnaryWithChannelBase
extends ObjectCollectionProviderUnary
Base class for
ObjectCollectionProviderUnary that also requires a Channel.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObjectCollectioncreateFromObjects(ObjectCollection objectsSource) protected abstract ObjectCollectioncreateFromObjects(ObjectCollection objectsSource, Channel channelSource) Creates objects from a source collection and a channel.ChannelProviderProvider for the channel to be used in object creation.voidsetChannel(ChannelProvider channel) Provider for the channel to be used in object creation.Methods inherited from class org.anchoranalysis.image.bean.provider.ObjectCollectionProviderUnary
get, getObjects, setObjectsMethods 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
-
UnaryWithChannelBase
public UnaryWithChannelBase()
-
-
Method Details
-
createFromObjects
public ObjectCollection createFromObjects(ObjectCollection objectsSource) throws ProvisionFailedException - Specified by:
createFromObjectsin classObjectCollectionProviderUnary- Throws:
ProvisionFailedException
-
createFromObjects
protected abstract ObjectCollection createFromObjects(ObjectCollection objectsSource, Channel channelSource) throws ProvisionFailedException Creates objects from a source collection and a channel.- Parameters:
objectsSource- the source object collectionchannelSource- the source channel- Returns:
- the newly created object collection
- Throws:
ProvisionFailedException- if object creation fails
-
getChannel
public ChannelProvider getChannel()Provider for the channel to be used in object creation. -
setChannel
public void setChannel(ChannelProvider channel) Provider for the channel to be used in object creation.
-