Package org.anchoranalysis.io.input
Interface InputFromManager
- All Known Subinterfaces:
ProvidesStackInput
,StackSequenceInput
- All Known Implementing Classes:
AnnotationComparisonInput
,AnnotationWithStrategy
,ConvertNamedChannelsInputToStack
,FileInput
,FileWithDirectoryInput
,ImageMetadataInput
,InputFromManagerDelegate
,MultiInput
,NamedChannelsInput
,NamedChannelsInputPart
,SingleFileInputBase
public interface InputFromManager
One particular input for processing.
- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionA path to all files associated with the input, includingpathForBinding()
.default NamedFile
asFile()
Expresses the input as a file with a name (the unique identifier).default void
close
(ErrorReporter errorReporter) Performs all tidying up, file-closing etc. after we are finished using theInputFromManager
A unique name associated with the input.default Path
Likeidentifier()
but converts the identifier to a path.A path to a file from which this input originated.default Path
LikepathForBinding()
but throws an exception if a path isn't present.
-
Method Details
-
identifier
String identifier()A unique name associated with the input.The name should never begin with or end with whitespace.
It should never contain backslashes, but forward-slashes are permitted.
- Returns:
- a string uniquely (in the current dataset) identifying the input in a meaningful way.
-
identifierAsPath
Likeidentifier()
but converts the identifier to a path.- Returns:
- a path based upon the unique identifier for the input
-
pathForBinding
A path to a file from which this input originated.This path is not guaranteed to be unique for each input i.e. multiple inputs may originate from the same path.
- Returns:
- the primary path associated with the input, if it exists.
-
pathForBindingRequired
LikepathForBinding()
but throws an exception if a path isn't present.- Returns:
- the primary path associated with the input
- Throws:
InputReadFailedException
- if such a path doesn't exist
-
asFile
Expresses the input as a file with a name (the unique identifier).- Returns:
- the file with its associated unique identifier as a name
- Throws:
InputReadFailedException
- if no path is associated with the input
-
allAssociatedPaths
A path to all files associated with the input, includingpathForBinding()
.Normally an input (e.g. an image) is stored as one file on the file-system, and this is associated with a single file.
However, an input (e.g. an image) may originate in several files, and have several associations.
Or an input may not originate on the file-system, and thus have no associations.
- Returns:
- a list with all paths associated with the input.
-
close
Performs all tidying up, file-closing etc. after we are finished using theInputFromManager
- Parameters:
errorReporter
- whether errors are reported to.
-