All Implemented Interfaces:
Provider<Mask>, ProviderAsStack
Direct Known Subclasses:
AutoLocalThreshold, FromChannel, SegmentChannel, Threshold

public abstract class FromChannelBase extends MaskProvider
Base-class for MaskProviders that accept a Channel as input.
Author:
Owen Feehan
  • Constructor Details

    • FromChannelBase

      public FromChannelBase()
  • Method Details

    • get

      public Mask get() throws ProvisionFailedException
      Description copied from interface: Provider
      Gets or creates an object of type T.
      Returns:
      the object returned by the provider.
      Throws:
      ProvisionFailedException - if the object cannot be returned.
    • createFromSource

      protected abstract Mask createFromSource(Channel source) throws CreateException
      Creates a Mask from the source Channel.
      Parameters:
      source - the source channel
      Returns:
      the created mask
      Throws:
      CreateException - if the mask creation fails
    • getChannel

      public ChannelProvider getChannel()
      The provider for the channel from which to create the mask.
    • setChannel

      public void setChannel(ChannelProvider channel)
      The provider for the channel from which to create the mask.