Class ExperimentIdentifierAuto
Automatically populates a experiment-name and version number
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIf there's no task-name, then this constant is used as a fallback name.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.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
ExperimentIdentifierAuto
public ExperimentIdentifierAuto()
-
-
Method Details
-
identifier
Description copied from class:ExperimentIdentifier
Creates an identifier for the experiment.- Specified by:
identifier
in classExperimentIdentifier
- Parameters:
taskName
- a name describing the current task if it exists.- Returns:
- a string to identify the current experiment.
-
getFallbackName
If there's no task-name, then this constant is used as a fallback name. -
setFallbackName
If there's no task-name, then this constant is used as a fallback name. -
isDay
public boolean isDay()If true, the current day (yyyy.MM.dd) is included in the output. -
setDay
public void setDay(boolean day) If true, the current day (yyyy.MM.dd) is included in the output. -
isTime
public boolean isTime()If true, the current time (HH.mm.ss) is included in the output. -
setTime
public void setTime(boolean time) If true, the current time (HH.mm.ss) is included in the output. -
isSecond
public boolean isSecond()Only relevant if time==true. Whether the second is included in the time. -
setSecond
public void setSecond(boolean second) Only relevant if time==true. Whether the second is included in the time.
-