Package org.anchoranalysis.mpp.io.input
Class MultiInput
Object
org.anchoranalysis.mpp.io.input.MultiInput
- All Implemented Interfaces:
ProvidesStackInput,org.anchoranalysis.io.input.InputFromManager,ExportSharedObjects
public class MultiInput extends Object implements ProvidesStackInput, ExportSharedObjects
An input to an experiment that combines a particular
Stack with other types of entities.
These entities each have a unique name, and must be one of the following types:
Stack(in addition to the primary stack that forms the input).MarkCollection.ObjectCollection.Dictionary.Histogram.Path.
- Author:
- Owen Feehan
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_IMAGE_INPUT_NAMEThe default name for the input image stack. -
Constructor Summary
Constructors Constructor Description MultiInput(String mainObjectName, ProvidesStackInput mainInputObject)Creates a newMultiInputwith a specified name for the main input object.MultiInput(ProvidesStackInput mainInputObject)Creates a newMultiInputwith a default name for the main input object. -
Method Summary
Modifier and Type Method Description voidaddToStoreInferNames(NamedProviderStore<TimeSeries> stacks, int seriesIndex, Logger logger)voidaddToStoreWithName(String name, NamedProviderStore<TimeSeries> stacks, int seriesIndex, Logger logger)voidclose(ErrorReporter errorReporter)voidcopyTo(SharedObjects target, Logger logger)Adds any exported shared objects to the target container.MultiInputSubMap<Dictionary>dictionary()Gets the map ofDictionarys.MultiInputSubMap<Path>filePath()Gets the map ofPaths.StringgetMainObjectName()Gets the name of the main input object.MultiInputSubMap<org.anchoranalysis.math.histogram.Histogram>histogram()Gets the map ofHistograms.Stringidentifier()MultiInputSubMap<MarkCollection>marks()Gets the map ofMarkCollections.intnumberFrames()MultiInputSubMap<org.anchoranalysis.image.voxel.object.ObjectCollection>objects()Gets the map ofObjectCollections.Optional<Path>pathForBinding()MultiInputSubMap<TimeSeries>stack()Gets the map ofTimeSeries(stacks).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.anchoranalysis.io.input.InputFromManager
allAssociatedPaths, asFile, identifierAsPath, pathForBindingRequiredMethods inherited from interface org.anchoranalysis.image.io.stack.input.ProvidesStackInput
addToStoreInferNames, asSet, asStack
-
Field Details
-
DEFAULT_IMAGE_INPUT_NAME
The default name for the input image stack.- See Also:
- Constant Field Values
-
-
Constructor Details
-
MultiInput
Creates a newMultiInputwith a default name for the main input object.- Parameters:
mainInputObject- the main input object that provides the stack
-
MultiInput
Creates a newMultiInputwith a specified name for the main input object.- Parameters:
mainObjectName- the name for the main input objectmainInputObject- the main input object that provides the stack
-
-
Method Details
-
addToStoreInferNames
public void addToStoreInferNames(NamedProviderStore<TimeSeries> stacks, int seriesIndex, Logger logger) throws OperationFailedException- Specified by:
addToStoreInferNamesin interfaceProvidesStackInput- Throws:
OperationFailedException
-
addToStoreWithName
public void addToStoreWithName(String name, NamedProviderStore<TimeSeries> stacks, int seriesIndex, Logger logger) throws OperationFailedException- Specified by:
addToStoreWithNamein interfaceProvidesStackInput- Throws:
OperationFailedException
-
copyTo
Description copied from interface:ExportSharedObjectsAdds any exported shared objects to the target container.This method is responsible for copying the relevant shared objects from the implementing class to the provided target container. Non-fatal errors should be logged using the provided logger, while fatal errors should throw an
OperationFailedException.- Specified by:
copyToin interfaceExportSharedObjects- Parameters:
target- theSharedObjectscontainer where the exported objects will be addedlogger- aLoggerfor reporting non-fatal errors- Throws:
OperationFailedException- if a fatal error occurs during the export process
-
identifier
- Specified by:
identifierin interfaceorg.anchoranalysis.io.input.InputFromManager
-
pathForBinding
- Specified by:
pathForBindingin interfaceorg.anchoranalysis.io.input.InputFromManager
-
close
- Specified by:
closein interfaceorg.anchoranalysis.io.input.InputFromManager
-
marks
Gets the map ofMarkCollections.- Returns:
- the
MultiInputSubMapofMarkCollections
-
objects
Gets the map ofObjectCollections.- Returns:
- the
MultiInputSubMapofObjectCollections
-
dictionary
Gets the map ofDictionarys.- Returns:
- the
MultiInputSubMapofDictionarys
-
histogram
Gets the map ofHistograms.- Returns:
- the
MultiInputSubMapofHistograms
-
filePath
Gets the map ofPaths.- Returns:
- the
MultiInputSubMapofPaths
-
stack
Gets the map ofTimeSeries(stacks).- Returns:
- the
MultiInputSubMapofTimeSeries
-
getMainObjectName
Gets the name of the main input object.- Returns:
- the name of the main input object
-
numberFrames
- Specified by:
numberFramesin interfaceProvidesStackInput- Throws:
OperationFailedException
-