public class NamedChannelsQuick extends QuickBase<NamedChannelsInputPart>
This is a convenient helper class to avoid a more complicated structure.
Note that regexAdjacent
applies for adjacent-channels and regex
applies for
appended channels.
Constructor and Description |
---|
NamedChannelsQuick() |
Modifier and Type | Method and Description |
---|---|
void |
checkMisconfigured(BeanInstanceMap defaultInstances)
Checks that a bean's properties conform to expectations.
|
List<IndexedChannel> |
getAdditionalChannels()
Additional channels other than the main one, which are located in the main raster file
|
List<AdjacentFile> |
getAdjacentChannels()
Channels that are located in a separate raster file adjacent to the main raster file
|
List<AppendStack> |
getAppendChannels()
Channels that are located in a separate raster file somewhere else in the project's structure
|
int |
getMainChannelIndex()
Index of the mainChannel
|
String |
getMainChannelName()
The name of the channel provided by the rasters in file Provider
|
String |
getRegexAdjacent()
This needs to be set if there is at least one adjacentChannel.
|
StackReader |
getStackReaderAdjacent()
The raster-reader to use for opening any adjacent-channels
|
InputsWithDirectory<NamedChannelsInputPart> |
inputs(InputManagerParameters parameters)
Creates a list of inputs given particular parameters.
|
void |
setAdditionalChannels(List<IndexedChannel> additionalChannels)
Additional channels other than the main one, which are located in the main raster file
|
void |
setAdjacentChannels(List<AdjacentFile> adjacentChannels)
Channels that are located in a separate raster file adjacent to the main raster file
|
void |
setAppendChannels(List<AppendStack> appendChannels)
Channels that are located in a separate raster file somewhere else in the project's structure
|
void |
setMainChannelIndex(int mainChannelIndex)
Index of the mainChannel
|
void |
setMainChannelName(String mainChannelName)
The name of the channel provided by the rasters in file Provider
|
void |
setRegexAdjacent(String regexAdjacent)
This needs to be set if there is at least one adjacentChannel.
|
void |
setStackReaderAdjacent(StackReader stackReaderAdjacent)
The raster-reader to use for opening any adjacent-channels
|
fileInputManager, getFiles, getFilterFilesCsv, getNamer, getRegex, getRootName, getStackReaderAppend, setFiles, setFilterFilesCsv, setNamer, setRegex, setRootName, setStackReaderAppend
getStackReader, setStackReader
describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public void checkMisconfigured(BeanInstanceMap defaultInstances) throws BeanMisconfiguredException
AnchorBean
checkMisconfigured
in class AnchorBean<InputManager<NamedChannelsInputPart>>
defaultInstances
- all available default instances if the DefaultInstance
annotation is usedBeanMisconfiguredException
- if the bean has not been configured properly as XMLpublic InputsWithDirectory<NamedChannelsInputPart> inputs(InputManagerParameters parameters) throws InputReadFailedException
InputManager
inputs
in class InputManager<NamedChannelsInputPart>
parameters
- the parameters.InputReadFailedException
- if inputs cannot be successfully read from the file-system.public String getRegexAdjacent()
This should be a regex (with a single group that is replaced) that is searched for among the input-paths. This only needs to be set if at least one adjacentChannel is. specified
public void setRegexAdjacent(String regexAdjacent)
This should be a regex (with a single group that is replaced) that is searched for among the input-paths. This only needs to be set if at least one adjacentChannel is. specified
public String getMainChannelName()
public void setMainChannelName(String mainChannelName)
public int getMainChannelIndex()
public void setMainChannelIndex(int mainChannelIndex)
public List<IndexedChannel> getAdditionalChannels()
public void setAdditionalChannels(List<IndexedChannel> additionalChannels)
public List<AdjacentFile> getAdjacentChannels()
public void setAdjacentChannels(List<AdjacentFile> adjacentChannels)
public List<AppendStack> getAppendChannels()
public void setAppendChannels(List<AppendStack> appendChannels)
public StackReader getStackReaderAdjacent()
public void setStackReaderAdjacent(StackReader stackReaderAdjacent)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.