Class AnnotationComparisonInput<T extends org.anchoranalysis.io.input.InputFromManager>

Object
org.anchoranalysis.io.input.InputFromManagerDelegate<T>
org.anchoranalysis.plugin.annotation.comparison.AnnotationComparisonInput<T>
Type Parameters:
T - type of input from manager.
All Implemented Interfaces:
org.anchoranalysis.io.input.InputFromManager

public class AnnotationComparisonInput<T extends org.anchoranalysis.io.input.InputFromManager>
extends org.anchoranalysis.io.input.InputFromManagerDelegate<T>
Input for annotation comparison, containing sources to compare and associated metadata.
  • Constructor Summary

    Constructors 
    Constructor Description
    AnnotationComparisonInput​(T input, io.vavr.Tuple2<org.anchoranalysis.annotation.io.bean.comparer.ComparableSource,​org.anchoranalysis.annotation.io.bean.comparer.ComparableSource> comparers, io.vavr.Tuple2<String,​String> names, org.anchoranalysis.image.io.bean.stack.reader.StackReader stackReader)
    Creates an annotation comparison input.
  • Method Summary

    Modifier and Type Method Description
    org.anchoranalysis.annotation.io.bean.comparer.ComparableSource getComparerMultiplex​(boolean left)
    Gets one of the two ComparableSources based on a boolean flag.
    io.vavr.Tuple2<org.anchoranalysis.annotation.io.bean.comparer.ComparableSource,​org.anchoranalysis.annotation.io.bean.comparer.ComparableSource> getComparers()
    The two ComparableSources to compare.
    T getInput()
    Gets the input from manager.
    io.vavr.Tuple2<String,​String> getNames()
    Names associated with the two sources being compared.
    org.anchoranalysis.image.io.bean.stack.reader.StackReader getStackReader()
    The StackReader to use for reading image stacks.

    Methods inherited from class org.anchoranalysis.io.input.InputFromManagerDelegate

    close, getDelegate, identifier, pathForBinding, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.anchoranalysis.io.input.InputFromManager

    allAssociatedPaths, asFile, identifierAsPath, pathForBindingRequired
  • Constructor Details

    • AnnotationComparisonInput

      public AnnotationComparisonInput​(T input, io.vavr.Tuple2<org.anchoranalysis.annotation.io.bean.comparer.ComparableSource,​org.anchoranalysis.annotation.io.bean.comparer.ComparableSource> comparers, io.vavr.Tuple2<String,​String> names, org.anchoranalysis.image.io.bean.stack.reader.StackReader stackReader)
      Creates an annotation comparison input.
      Parameters:
      input - the input from manager.
      comparers - the two ComparableSources to compare.
      names - names associated with the two sources being compared.
      stackReader - the StackReader to use for reading image stacks.
  • Method Details

    • getComparerMultiplex

      public org.anchoranalysis.annotation.io.bean.comparer.ComparableSource getComparerMultiplex​(boolean left)
      Gets one of the two ComparableSources based on a boolean flag.
      Parameters:
      left - if true, returns the left comparer; if false, returns the right comparer.
      Returns:
      the selected ComparableSource.
    • getInput

      public T getInput()
      Gets the input from manager.
      Returns:
      the input of type T.
    • getComparers

      public io.vavr.Tuple2<org.anchoranalysis.annotation.io.bean.comparer.ComparableSource,​org.anchoranalysis.annotation.io.bean.comparer.ComparableSource> getComparers()
      The two ComparableSources to compare.
    • getNames

      public io.vavr.Tuple2<String,​String> getNames()
      Names associated with the two sources being compared.
    • getStackReader

      public org.anchoranalysis.image.io.bean.stack.reader.StackReader getStackReader()
      The StackReader to use for reading image stacks.