Class AnnotationComparisonInput<T extends InputFromManager>
Object
InputFromManagerDelegate<T>
AnnotationComparisonInput<T>
- Type Parameters:
T- type of input from manager.
- All Implemented Interfaces:
InputFromManager
public class AnnotationComparisonInput<T extends InputFromManager>
extends InputFromManagerDelegate<T>
Input for annotation comparison, containing sources to compare and associated metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationComparisonInput(T input, io.vavr.Tuple2<ComparableSource, ComparableSource> comparers, io.vavr.Tuple2<String, String> names, StackReader stackReader) Creates an annotation comparison input. -
Method Summary
Modifier and TypeMethodDescriptiongetComparerMultiplex(boolean left) Gets one of the twoComparableSources based on a boolean flag.io.vavr.Tuple2<ComparableSource, ComparableSource> The twoComparableSources to compare.getInput()Gets the input from manager.getNames()Names associated with the two sources being compared.TheStackReaderto use for reading image stacks.Methods inherited from class org.anchoranalysis.io.input.InputFromManagerDelegate
close, getDelegate, identifier, pathForBinding, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.anchoranalysis.io.input.InputFromManager
allAssociatedPaths, asFile, identifierAsPath, pathForBindingRequired
-
Constructor Details
-
AnnotationComparisonInput
public AnnotationComparisonInput(T input, io.vavr.Tuple2<ComparableSource, ComparableSource> comparers, io.vavr.Tuple2<String, String> names, 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
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
The twoComparableSources to compare. -
getNames
Names associated with the two sources being compared. -
getStackReader
TheStackReaderto use for reading image stacks.
-