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 twoComparableSource
s based on a boolean flag.io.vavr.Tuple2
<ComparableSource, ComparableSource> The twoComparableSource
s to compare.getInput()
Gets the input from manager.getNames()
Names associated with the two sources being compared.TheStackReader
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<ComparableSource, ComparableSource> comparers, io.vavr.Tuple2<String, String> names, StackReader stackReader) Creates an annotation comparison input.- Parameters:
input
- the input from manager.comparers
- the twoComparableSource
s to compare.names
- names associated with the two sources being compared.stackReader
- theStackReader
to use for reading image stacks.
-
-
Method Details
-
getComparerMultiplex
Gets one of the twoComparableSource
s 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 twoComparableSource
s to compare. -
getNames
Names associated with the two sources being compared. -
getStackReader
TheStackReader
to use for reading image stacks.
-