Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
treatment_factor_jobs.h File Reference
Include dependency graph for treatment_factor_jobs.h:

Go to the source code of this file.

Functions

TREATMENT_FACTOR_JOB_PREFIX NamedParameterType TFJ_STUDY_ID TREATMENT_FACTOR_JOB_STRUCT_VAL ("TF Study ID", PT_STRING)
 
TREATMENT_FACTOR_JOB_PREFIX NamedParameterType TFJ_TREATMENT_ID TREATMENT_FACTOR_JOB_STRUCT_VAL ("TF Treatment ID", PT_STRING)
 
TREATMENT_FACTOR_JOB_PREFIX NamedParameterType TFJ_TREATMENT_NAME TREATMENT_FACTOR_JOB_STRUCT_VAL ("TF Name", PT_STRING)
 
TREATMENT_FACTOR_JOB_PREFIX NamedParameterType TFJ_VALUES TREATMENT_FACTOR_JOB_STRUCT_VAL ("TF Levels", PT_JSON_TABLE)
 
const TREATMENT_FACTOR_JOB_PREFIX char *const TFJ_LABEL_TITLE_S TREATMENT_FACTOR_JOB_VAL ("Label")
 
const TREATMENT_FACTOR_JOB_PREFIX char *const TFJ_VALUE_TITLE_S TREATMENT_FACTOR_JOB_VAL ("Value")
 
bool AddSubmissionTreatmentFactorParams (ServiceData *data_p, ParameterSet *param_set_p, DataResource *resource_p)
 
bool SetUpTreatmentFactorsListParameter (const FieldTrialServiceData *data_p, Parameter *param_p, const struct Study *active_study_p, const TreatmentFactor *active_tf_p, const bool empty_option_flag)
 
bool GetSubmissionTreatmentFactorParameterTypeForNamedParameter (const char *param_name_s, ParameterType *pt_p)
 
bool RunForSubmissionTreatmentFactorParams (FieldTrialServiceData *data_p, ParameterSet *param_set_p, ServiceJob *job_p)
 
ParameterGetTreatmentFactorTableParameter (ParameterSet *param_set_p, ParameterGroup *group_p, json_t *tf_json_p, const FieldTrialServiceData *data_p)
 
bool IsTreatmentFactorParameter (const char *const param_name_s)
 
bool AddTreatmentFactorToStudy (const char *treatment_url_s, const json_t *factors_json_p, struct Study *study_p, const FieldTrialServiceData *data_p)
 
json_t * GetTreatmentFactorAsFrictionlessData (const TreatmentFactor *treatment_factor_p)
 

Function Documentation

◆ TREATMENT_FACTOR_JOB_STRUCT_VAL() [1/4]

TREATMENT_FACTOR_JOB_PREFIX NamedParameterType TFJ_STUDY_ID TREATMENT_FACTOR_JOB_STRUCT_VAL ( "TF Study ID"  ,
PT_STRING   
)

◆ TREATMENT_FACTOR_JOB_STRUCT_VAL() [2/4]

TREATMENT_FACTOR_JOB_PREFIX NamedParameterType TFJ_TREATMENT_ID TREATMENT_FACTOR_JOB_STRUCT_VAL ( "TF Treatment ID"  ,
PT_STRING   
)

◆ TREATMENT_FACTOR_JOB_STRUCT_VAL() [3/4]

TREATMENT_FACTOR_JOB_PREFIX NamedParameterType TFJ_TREATMENT_NAME TREATMENT_FACTOR_JOB_STRUCT_VAL ( "TF Name"  ,
PT_STRING   
)

◆ TREATMENT_FACTOR_JOB_STRUCT_VAL() [4/4]

TREATMENT_FACTOR_JOB_PREFIX NamedParameterType TFJ_VALUES TREATMENT_FACTOR_JOB_STRUCT_VAL ( "TF Levels"  ,
PT_JSON_TABLE   
)

◆ TREATMENT_FACTOR_JOB_VAL() [1/2]

const TREATMENT_FACTOR_JOB_PREFIX char* const TFJ_LABEL_TITLE_S TREATMENT_FACTOR_JOB_VAL ( "Label"  )

◆ TREATMENT_FACTOR_JOB_VAL() [2/2]

const TREATMENT_FACTOR_JOB_PREFIX char* const TFJ_VALUE_TITLE_S TREATMENT_FACTOR_JOB_VAL ( "Value"  )

◆ AddSubmissionTreatmentFactorParams()

bool AddSubmissionTreatmentFactorParams ( ServiceData data_p,
ParameterSet param_set_p,
DataResource resource_p 
)

◆ SetUpTreatmentFactorsListParameter()

bool SetUpTreatmentFactorsListParameter ( const FieldTrialServiceData data_p,
Parameter param_p,
const struct Study active_study_p,
const TreatmentFactor active_tf_p,
const bool  empty_option_flag 
)

◆ GetSubmissionTreatmentFactorParameterTypeForNamedParameter()

bool GetSubmissionTreatmentFactorParameterTypeForNamedParameter ( const char *  param_name_s,
ParameterType pt_p 
)

◆ RunForSubmissionTreatmentFactorParams()

bool RunForSubmissionTreatmentFactorParams ( FieldTrialServiceData data_p,
ParameterSet param_set_p,
ServiceJob job_p 
)

◆ GetTreatmentFactorTableParameter()

Parameter* GetTreatmentFactorTableParameter ( ParameterSet param_set_p,
ParameterGroup group_p,
json_t *  tf_json_p,
const FieldTrialServiceData data_p 
)

◆ IsTreatmentFactorParameter()

bool IsTreatmentFactorParameter ( const char *const  param_name_s)

◆ AddTreatmentFactorToStudy()

bool AddTreatmentFactorToStudy ( const char *  treatment_url_s,
const json_t *  factors_json_p,
struct Study study_p,
const FieldTrialServiceData data_p 
)

◆ GetTreatmentFactorAsFrictionlessData()

json_t* GetTreatmentFactorAsFrictionlessData ( const TreatmentFactor treatment_factor_p)