Class UnaryWithChannelBase
- All Implemented Interfaces:
Provider<ObjectCollection>
- Direct Known Subclasses:
BinarySegmentByObject,SegmentChannelByObject
Base class for
ObjectCollectionProviderUnary that also requires a Channel.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFromObjects(ObjectCollection objectsSource) Creates aObjectCollectiongiven the entity provided by the delegate.protected abstract ObjectCollectioncreateFromObjects(ObjectCollection objectsSource, Channel channelSource) Creates objects from a source collection and a channel.Provider 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 Description copied from class:ObjectCollectionProviderUnaryCreates aObjectCollectiongiven the entity provided by the delegate.- Specified by:
createFromObjectsin classObjectCollectionProviderUnary- Parameters:
objectsSource- the entity provided by the delegate.- Returns:
- the created
ObjectCollectionthat is returned by the provider. - Throws:
ProvisionFailedException- if the provider cannot complete successfully.
-
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
Provider for the channel to be used in object creation. -
setChannel
Provider for the channel to be used in object creation.
-