Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TaskGenerateCombinations

Generates combinations based on an experiment template and a combination provider.

Hierarchy

  • TaskGenerateCombinations

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private Readonly context

context: ITaskContext

Methods

generate

Static applyFactorCombination

  • applyFactorCombination(combination: FactorCombination, experimentId: string, combinationId: string, content: string): string
  • Instantiate all variables in the form of %FACTOR-variablename% based on the given factor combination.

    Parameters

    • combination: FactorCombination

      A factor combination that maps variable names to values.

    • experimentId: string

      The experiment id.

    • combinationId: string

      The combination id.

    • content: string

      The string content in which variable names should be replaced.

    Returns string

Static copyFiles

  • copyFiles(sourceDirectory: string, destinationDirectory: string, mapper: (value: string) => string): Promise<void>
  • Copy all files in the given source to the given destination. Additionally, apply the given mapper function on all copied file contents.

    Parameters

    • sourceDirectory: string

      Directory to copy from.

    • destinationDirectory: string

      Directory to copy to.

    • mapper: (value: string) => string

      A function to map file contents when copying.

        • (value: string): string
        • Parameters

          • value: string

          Returns string

    Returns Promise<void>

Generated using TypeDoc