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