Class: Assignment

functions/getExperimentCondition.Assignment

Table of contents

Constructors

  • constructor

Accessors

  • factors

Methods

  • getCondition

  • getExperimentType

  • getFactorLevel

  • getFactorPayload

  • getPayload

  • markDecisionPoint

Constructors

constructor

β€’ new Assignment(conditionCode, payload, assignedFactor?)

Parameters

Name
Type

conditionCode

string

payload

Object

payload.type

PAYLOAD_TYPE

payload.value

string

assignedFactor?

Record<string, { level: string ; payload: { type: PAYLOAD_TYPE ; value: string } }>

Defined in

functions/getExperimentCondition.ts:10

Accessors

factors

β€’ get factors(): string[]

Returns

string[]

Defined in

functions/getExperimentCondition.ts:34

Methods

getCondition

β–Έ getCondition(): string

Returns

string

Defined in

functions/getExperimentCondition.ts:22


getExperimentType

β–Έ getExperimentType(): EXPERIMENT_TYPE

Returns

EXPERIMENT_TYPE

Defined in

functions/getExperimentCondition.ts:30


getFactorLevel

β–Έ getFactorLevel(factor): string

Parameters

Name
Type

factor

string

Returns

string

Defined in

functions/getExperimentCondition.ts:38


getFactorPayload

β–Έ getFactorPayload(factor): IPayload

Parameters

Name
Type

factor

string

Returns

IPayload

Defined in

functions/getExperimentCondition.ts:46


getPayload

β–Έ getPayload(): IPayload

Returns

IPayload

Defined in

functions/getExperimentCondition.ts:26