public class IncrementingNumber extends PathPrefixerAvoidResolve
The sequence begins with 0 and increments always by 1.
This number is independent of the input file-name and occurs only by whatever sequential order
occurs with calls to outFilePrefixFromPath(org.anchoranalysis.io.output.path.prefixer.NamedPath, java.nio.file.Path, org.anchoranalysis.io.output.path.prefixer.PathPrefixerContext)
.
Constructor and Description |
---|
IncrementingNumber() |
IncrementingNumber(String prefix) |
Modifier and Type | Method and Description |
---|---|
int |
getNumberDigits()
Number of digits in the number, with leading zeros as necessary.
|
DirectoryWithPrefix |
outFilePrefixFromPath(NamedPath path,
Path root,
PathPrefixerContext context)
Determines the out-file prefix from a path
|
void |
setNumberDigits(int numberDigits)
Number of digits in the number, with leading zeros as necessary.
|
getPrefix, outFilePrefix, outFilePrefixAvoidResolve, rootDirectoryPrefix, rootDirectoryPrefixAvoidResolve, setPrefix
resolvePath, resolvePath
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public IncrementingNumber(String prefix)
public IncrementingNumber()
public DirectoryWithPrefix outFilePrefixFromPath(NamedPath path, Path root, PathPrefixerContext context)
PathPrefixerAvoidResolve
outFilePrefixFromPath
in class PathPrefixerAvoidResolve
path
- path to calculate prefix from with associated descriptive-nameroot
- root of prefixcontext
- the path-prefixer context.public int getNumberDigits()
public void setNumberDigits(int numberDigits)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.