public class ExperimentIdentifierAuto extends ExperimentIdentifier
Constructor and Description |
---|
ExperimentIdentifierAuto() |
Modifier and Type | Method and Description |
---|---|
String |
getFallbackName()
If there's no task-name, then this constant is used as a fallback name.
|
String |
identifier(Optional<String> taskName)
Creates an identifier for the experiment.
|
boolean |
isDay()
If true, the current day (yyyy.MM.dd) is included in the output.
|
boolean |
isSecond()
Only relevant if time==true.
|
boolean |
isTime()
If true, the current time (HH.mm.ss) is included in the output.
|
void |
setDay(boolean day)
If true, the current day (yyyy.MM.dd) is included in the output.
|
void |
setFallbackName(String fallbackName)
If there's no task-name, then this constant is used as a fallback name.
|
void |
setSecond(boolean second)
Only relevant if time==true.
|
void |
setTime(boolean time)
If true, the current time (HH.mm.ss) is included in the output.
|
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public String identifier(Optional<String> taskName)
ExperimentIdentifier
identifier
in class ExperimentIdentifier
taskName
- a name describing the current task if it exists.public String getFallbackName()
public void setFallbackName(String fallbackName)
public boolean isDay()
public void setDay(boolean day)
public boolean isTime()
public void setTime(boolean time)
public boolean isSecond()
public void setSecond(boolean second)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.