Class ExperimentIdentifierAuto


public class ExperimentIdentifierAuto extends ExperimentIdentifier
Automatically populates a experiment-name and version number
Author:
Owen Feehan
  • Constructor Details

    • ExperimentIdentifierAuto

      public ExperimentIdentifierAuto()
  • Method Details

    • identifier

      public String identifier(Optional<String> taskName)
      Description copied from class: ExperimentIdentifier
      Creates an identifier for the experiment.
      Specified by:
      identifier in class ExperimentIdentifier
      Parameters:
      taskName - a name describing the current task if it exists.
      Returns:
      a string to identify the current experiment.
    • getFallbackName

      public String getFallbackName()
      If there's no task-name, then this constant is used as a fallback name.
    • setFallbackName

      public void setFallbackName(String fallbackName)
      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.