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.ComparableSourcegetComparerMultiplex(boolean left)Gets one of the twoComparableSources based on a boolean flag.io.vavr.Tuple2<org.anchoranalysis.annotation.io.bean.comparer.ComparableSource,org.anchoranalysis.annotation.io.bean.comparer.ComparableSource>getComparers()The twoComparableSources to compare.TgetInput()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.StackReadergetStackReader()TheStackReaderto use for reading image stacks.Methods inherited from class org.anchoranalysis.io.input.InputFromManagerDelegate
close, getDelegate, identifier, pathForBinding, toString
-
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 twoComparableSources to compare.names- names associated with the two sources being compared.stackReader- theStackReaderto use for reading image stacks.
-
-
Method Details
-
getComparerMultiplex
public org.anchoranalysis.annotation.io.bean.comparer.ComparableSource getComparerMultiplex(boolean left)Gets one of the twoComparableSources based on a boolean flag.- Parameters:
left- if true, returns the left comparer; if false, returns the right comparer.- Returns:
- the selected
ComparableSource.
-
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 twoComparableSources to compare. -
getNames
Names associated with the two sources being compared. -
getStackReader
public org.anchoranalysis.image.io.bean.stack.reader.StackReader getStackReader()TheStackReaderto use for reading image stacks.
-