Class Summarizer<T>

Object
org.anchoranalysis.bean.AnchorBean<Summarizer<T>>
org.anchoranalysis.plugin.io.bean.summarizer.Summarizer<T>
Type Parameters:
T - type of element to be summarized
Direct Known Subclasses:
SummarizerAggregate, SummarizerCount, SummarizerImageMetadata, SummarizerInputFromManager, SummarizerListMultiline, SummarizerPath, SummarizerSplitMoreThan

public abstract class Summarizer<T>
extends org.anchoranalysis.bean.AnchorBean<Summarizer<T>>
Summarizes a set of elements by outputting a descriptive string.
Author:
Owen Feehan
  • Constructor Summary

    Constructors 
    Constructor Description
    Summarizer()  
  • Method Summary

    Modifier and Type Method Description
    abstract void add​(T element)
    Adds a element to the summary.
    void addAll​(Collection<T> elements)
    Adds the elements to the summary.
    abstract String describe()
    A string summarizing this item.
    abstract boolean requiresImageMetadata()
    Whether a ImageMetadataInput is required as an input.

    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

  • Method Details

    • addAll

      public void addAll​(Collection<T> elements) throws org.anchoranalysis.core.exception.OperationFailedException
      Adds the elements to the summary.
      Parameters:
      elements - the elements to add.
      Throws:
      org.anchoranalysis.core.exception.OperationFailedException
    • add

      public abstract void add​(T element) throws org.anchoranalysis.core.exception.OperationFailedException
      Adds a element to the summary.
      Parameters:
      element - the element to add.
      Throws:
      org.anchoranalysis.core.exception.OperationFailedException
    • describe

      public abstract String describe() throws org.anchoranalysis.core.exception.OperationFailedException
      A string summarizing this item.
      Returns:
      the description.
      Throws:
      org.anchoranalysis.core.exception.OperationFailedException
    • requiresImageMetadata

      public abstract boolean requiresImageMetadata() throws org.anchoranalysis.core.exception.OperationFailedException
      Whether a ImageMetadataInput is required as an input.
      Returns:
      true if the summarize requires ImageMetadataInput as input, or false if any input is acceptable.
      Throws:
      org.anchoranalysis.core.exception.OperationFailedException - if this cannot be established.