T
- input-object typepublic class ShuffleIfRequested<T extends InputFromManager> extends InputManagerUnary<T>
Shuffle
if requested in the InputContextParameters
otherwise makes no change
to the inputs.
If a shuffle is requested, the inputs may be sorted alphabetically (depending on sortIfNotRequested
.
The operations are coupled, as sorting makes no sense when shuffling is occurring, but is often desirable otherwise.
Constructor and Description |
---|
ShuffleIfRequested() |
Modifier and Type | Method and Description |
---|---|
protected InputsWithDirectory<T> |
inputsFromDelegate(InputsWithDirectory<T> fromDelegate,
InputManagerParameters parameters)
Calculates the inputs to return given the inputs from the delegate.
|
boolean |
isSortIfNotRequested()
When true, the inputs are sorted alphabetically, if a shuffle is not requested.
|
void |
setSortIfNotRequested(boolean sortIfNotRequested)
When true, the inputs are sorted alphabetically, if a shuffle is not requested.
|
getInput, inputs, setInput
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
protected InputsWithDirectory<T> inputsFromDelegate(InputsWithDirectory<T> fromDelegate, InputManagerParameters parameters) throws InputReadFailedException
InputManagerUnary
inputsFromDelegate
in class InputManagerUnary<T extends InputFromManager>
fromDelegate
- the inputs from the delegate.parameters
- parameters for determining inputs.InputReadFailedException
- if inputs cannot be successfully read from the file-system.public boolean isSortIfNotRequested()
public void setSortIfNotRequested(boolean sortIfNotRequested)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.