UNPKG

814 BTypeScriptView Raw
1/**
2 * Strategy for generating goal unique names
3 */
4export interface GoalNameGenerator {
5 /**
6 * Generate the name based on given optional prefix
7 * @param prefix
8 */
9 generateName(prefix?: string): string;
10}
11/**
12 * Generates goal names based on source code location.
13 * This is stable enough to survive SDM restarts and also supports the cluster and goal forking mode.
14 *
15 * This implementation has to used directly inside the body of the goal you want to name.
16 * Otherwise the source code location might not get captured correctly.
17 */
18export declare class SourceLocationGoalNameGenerator implements GoalNameGenerator {
19 generateName(prefix?: string): string;
20}
21export declare const DefaultGoalNameGenerator: SourceLocationGoalNameGenerator;
22//# sourceMappingURL=GoalNameGenerator.d.ts.map
\No newline at end of file