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.booleanisDay()If true, the current day (yyyy.MM.dd) is included in the output.booleanisSecond()Only relevant if time==true.booleanisTime()If true, the current time (HH.mm.ss) is included in the output.voidsetDay(boolean day) If true, the current day (yyyy.MM.dd) is included in the output.voidsetFallbackName(String fallbackName) If there's no task-name, then this constant is used as a fallback name.voidsetSecond(boolean second) Only relevant if time==true.voidsetTime(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:ExperimentIdentifierCreates an identifier for the experiment.- Specified by:
identifierin 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.
-