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.
|
Go to the documentation of this file.
23 #ifndef SERVICES_FIELD_TRIALS_INCLUDE_TREATMENT_FACTOR_JOBS_H_
24 #define SERVICES_FIELD_TRIALS_INCLUDE_TREATMENT_FACTOR_JOBS_H_
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
37 #ifdef ALLOCATE_TREATMENT_FACTOR_JOB_CONSTANTS
38 #define TREATMENT_FACTOR_JOB_PREFIX DFW_FIELD_TRIAL_SERVICE_API
39 #define TREATMENT_FACTOR_JOB_STRUCT_VAL(x,y) = { x, y}
40 #define TREATMENT_FACTOR_JOB_VAL(x) = { x }
42 #define TREATMENT_FACTOR_JOB_PREFIX extern
43 #define TREATMENT_FACTOR_JOB_STRUCT_VAL(x,y)
44 #define TREATMENT_FACTOR_JOB_VAL(x)
The datatype that stores all of the information about a Parameter.
Definition: parameter.h:121
A datatype to tell the system that certain parameters should be grouped together in the client's user...
Definition: parameter_group.h:85
json_t * GetTreatmentFactorAsFrictionlessData(const TreatmentFactor *treatment_factor_p)
Parameter * GetTreatmentFactorTableParameter(ParameterSet *param_set_p, ParameterGroup *group_p, json_t *tf_json_p, const FieldTrialServiceData *data_p)
This is a datatype that stores a read-only c-style string along with a ParameterType.
Definition: parameter.h:85
ParameterType
The different types that a Parameter can take.
Definition: parameter_type.h:35
A datatype to represent a running task.
Definition: service_job.h:72
bool IsTreatmentFactorParameter(const char *const param_name_s)
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)
A c-style string.
Definition: parameter_type.h:58
A datatype representing a URI.
Definition: data_resource.h:40
bool AddSubmissionTreatmentFactorParams(ServiceData *data_p, ParameterSet *param_set_p, DataResource *resource_p)
A TreatmentFactor is a set of values for a Treatment applied to plots within a Study.
Definition: treatment_factor.h:76
#define DFW_FIELD_TRIAL_SERVICE_LOCAL
Definition: dfw_field_trial_service_library.h:43
Tabular data stored as a JSON array where each object is it is a row within the tabular data.
Definition: parameter_type.h:118
const TREATMENT_FACTOR_JOB_PREFIX char *const TFJ_LABEL_TITLE_S TREATMENT_FACTOR_JOB_VAL("Label")
TREATMENT_FACTOR_JOB_PREFIX NamedParameterType TFJ_STUDY_ID TREATMENT_FACTOR_JOB_STRUCT_VAL("TF Study ID", PT_STRING)
bool AddTreatmentFactorToStudy(const char *treatment_url_s, const json_t *factors_json_p, struct Study *study_p, const FieldTrialServiceData *data_p)
bool RunForSubmissionTreatmentFactorParams(FieldTrialServiceData *data_p, ParameterSet *param_set_p, ServiceJob *job_p)
A datatype for holding the configuration data for a Service.
Definition: service.h:126
The configuration data used by the DFW Field Trial Service.
Definition: dfw_field_trial_service_data.h:118
A set of Parameters along with an optional name and description.
Definition: parameter_set.h:46
bool GetSubmissionTreatmentFactorParameterTypeForNamedParameter(const char *param_name_s, ParameterType *pt_p)