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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    ObjectCollection
    createFromObjects(ObjectCollection objectsSource)
     
    protected abstract ObjectCollection
    createFromObjects(ObjectCollection objectsSource, Channel channelSource)
    Creates objects from a source collection and a channel.
    ChannelProvider
    Provider for the channel to be used in object creation.
    void
    setChannel(ChannelProvider channel)
    Provider for the channel to be used in object creation.

    Methods inherited from class org.anchoranalysis.image.bean.provider.ObjectCollectionProviderUnary

    get, getObjects, setObjects

    Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean

    getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • UnaryWithChannelBase

      public UnaryWithChannelBase()
  • Method Details

    • createFromObjects

      public ObjectCollection createFromObjects(ObjectCollection objectsSource) throws ProvisionFailedException
      Specified by:
      createFromObjects in class ObjectCollectionProviderUnary
      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 collection
      channelSource - 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.