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
Accessors
factors
β’ get
factors(): string
[]
Returns
string
[]
Defined in
Methods
getCondition
βΈ getCondition(): string
Returns
string
Defined in
getExperimentType
βΈ getExperimentType(): EXPERIMENT_TYPE
Returns
EXPERIMENT_TYPE
Defined in
getFactorLevel
βΈ getFactorLevel(factor
): string
Parameters
Name
Type
factor
string
Returns
string
Defined in
getFactorPayload
βΈ getFactorPayload(factor
): IPayload
Parameters
Name
Type
factor
string
Returns
IPayload
Defined in
getPayload
βΈ getPayload(): IPayload
Returns
IPayload