public class HomeSubdirectory extends PathPrefixer
Constructor and Description |
---|
HomeSubdirectory() |
Modifier and Type | Method and Description |
---|---|
String |
getDirectory()
A relative-path (to the user home directory) which is used as an output directory
|
DirectoryWithPrefix |
outFilePrefix(NamedPath path,
Optional<String> expName,
PathPrefixerContext context)
Provides a prefix which can be prepended to all output files.
|
DirectoryWithPrefix |
rootDirectoryPrefix(Optional<String> expName,
PathPrefixerContext context)
Provides a prefix that becomes the root-folder.
|
void |
setDirectory(String directory)
A relative-path (to the user home directory) which is used as an output directory
|
resolvePath, resolvePath
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public DirectoryWithPrefix outFilePrefix(NamedPath path, Optional<String> expName, PathPrefixerContext context) throws PathPrefixerException
PathPrefixer
outFilePrefix
in class PathPrefixer
path
- an input to derive a prefix fromexpName
- if defined, an identifier for the experiment, to be included in
the directory root.PathPrefixerException
public DirectoryWithPrefix rootDirectoryPrefix(Optional<String> expName, PathPrefixerContext context) throws PathPrefixerException
PathPrefixer
rootDirectoryPrefix
in class PathPrefixer
expName
- if defined, an identifier for the experiment, to be included in
the directory root.PathPrefixerException
public String getDirectory()
public void setDirectory(String directory)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.