public class Rooted extends PathPrefixer
A root is a path that is mapped via a unique-name in a settings file to a directory
Constructor and Description |
---|
Rooted() |
Rooted(PathPrefixerAvoidResolve prefixer,
String rootName) |
Modifier and Type | Method and Description |
---|---|
PathPrefixerAvoidResolve |
getPrefixer() |
String |
getRootName()
The name of the root-path to associate with this fileset.
|
DirectoryWithPrefix |
outFilePrefix(NamedPath path,
Optional<String> experimentName,
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 |
setPrefixer(PathPrefixerAvoidResolve prefixer) |
void |
setRootName(String rootName)
The name of the root-path to associate with this fileset.
|
resolvePath, resolvePath
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public Rooted()
public Rooted(PathPrefixerAvoidResolve prefixer, String rootName)
public DirectoryWithPrefix outFilePrefix(NamedPath path, Optional<String> experimentName, PathPrefixerContext context) throws PathPrefixerException
PathPrefixer
outFilePrefix
in class PathPrefixer
path
- an input to derive a prefix fromexperimentName
- 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 PathPrefixerAvoidResolve getPrefixer()
public void setPrefixer(PathPrefixerAvoidResolve prefixer)
public String getRootName()
public void setRootName(String rootName)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.