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_FIELD_TRIAL_JOBS_H_
24 #define SERVICES_FIELD_TRIALS_INCLUDE_FIELD_TRIAL_JOBS_H_
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
37 #ifdef ALLOCATE_FIELD_TRIAL_CONSTANTS
38 #define FIELD_TRIAL_JOB_PREFIX DFW_FIELD_TRIAL_SERVICE_API
39 #define FIELD_TRIAL_JOB_STRUCT_VAL(x,y) = { x, y}
41 #define FIELD_TRIAL_JOB_PREFIX extern
42 #define FIELD_TRIAL_JOB_STRUCT_VAL(x,y)
The datatype that stores all of the information about a Parameter.
Definition: parameter.h:121
bool AddFieldTrialToServiceJob(ServiceJob *job_p, FieldTrial *trial_p, const ViewFormat format, FieldTrialServiceData *data_p)
A datatype to tell the system that certain parameters should be grouped together in the client's user...
Definition: parameter_group.h:85
bool AddFieldTrialToServiceJobFromJSON(ServiceJob *job_p, json_t *trial_json_p, const ViewFormat format, 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 SearchFieldTrials(ServiceJob *job_p, const char *name_s, const char *team_s, const bool regex_flag, const ViewFormat format, FieldTrialServiceData *data_p)
A c-style string.
Definition: parameter_type.h:58
A datatype representing a URI.
Definition: data_resource.h:40
Definition: json_processor.h:21
bool AddTrialsList(const char *id_s, ParameterSet *param_set_p, ParameterGroup *group_p, const bool read_only_flag, const char *const empty_option_s, FieldTrialServiceData *data_p)
FieldTrial * GetFieldTrialFromResource(DataResource *resource_p, const NamedParameterType trial_param_type, FieldTrialServiceData *dfw_data_p)
json_t * GetFieldTrialAsFrictionlessDataResource(const FieldTrial *trial_p, const FieldTrialServiceData *data_p)
bool SetUpFieldTrialsListParameter(const FieldTrialServiceData *data_p, Parameter *param_p, const char *active_trial_id_s, const bool empty_option_flag)
bool PopulaterActiveTrialValues(FieldTrial *active_trial_p, char **id_ss, char **programme_id_ss, const char **name_ss, const char **team_ss, LinkedList **existing_people_pp, ParameterSet *param_set_p, FieldTrialServiceData *dfw_data_p)
bool GetSubmissionFieldTrialParameterTypeForNamedParameter(const char *param_name_s, ParameterType *pt_p)
bool AddSearchFieldTrialParams(ServiceData *data_p, ParameterSet *param_set_p)
bool AddTrialEditor(const char *const name_s, const char *const team_s, const char *const programme_id_s, LinkedList *existing_people_p, ParameterSet *param_set_p, ParameterGroup *group_p, const bool read_only_flag, FieldTrialServiceData *dfw_data_p)
json_t * GetAllFieldTrialsAsJSON(const FieldTrialServiceData *data_p, const bool full_data_flag)
#define DFW_FIELD_TRIAL_SERVICE_LOCAL
Definition: dfw_field_trial_service_library.h:43
A datatype which defines an available service, its capabilities and its parameters.
Definition: service.h:153
A datatype that represents a Field Trial that can contain one or more Studies.
Definition: field_trial.h:50
A doubly-linked list that can be traversed in either direction.
Definition: linked_list.h:56
A boolean parameter.
Definition: parameter_type.h:38
bool GetSearchFieldTrialParameterTypeForNamedParameter(const char *param_name_s, ParameterType *pt_p)
bool AddTrialsListFromJSON(const char *id_s, json_t *trials_json_p, ParameterSet *param_set_p, ParameterGroup *group_p, const bool read_only_flag, const char *empty_option_s, FieldTrialServiceData *dfw_data_p)
NamedParameterType FIELD_TRIAL_NAME FIELD_TRIAL_JOB_STRUCT_VAL("FT Name", PT_STRING)
bool RunForSearchFieldTrialParams(FieldTrialServiceData *data_p, ParameterSet *param_set_p, ServiceJob *job_p)
bool AddSubmissionFieldTrialParams(ServiceData *data_p, ParameterSet *param_set_p, FieldTrial *active_trial_p, const bool read_only_flag)
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
json_t * GetFieldTrialIndexingData(Service *service_p)
json_t * GetFieldTrialJSONForId(const char *id_s, const ViewFormat format, JSONProcessor *processor_p, char **name_ss, FieldTrialServiceData *data_p)
bool RunForSubmissionFieldTrialParams(FieldTrialServiceData *data_p, ParameterSet *param_set_p, ServiceJob *job_p)
bool SetUpFieldTrialsListParameterFromJSON(const FieldTrialServiceData *data_p, Parameter *param_p, const char *active_trial_id_s, const bool empty_option_flag, json_t *trials_p)