| 
    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_DFW_FIELD_TRIAL_SERVICE_INCLUDE_EXPERIMENTAL_AREA_JOBS_H_ 
   24 #define SERVICES_DFW_FIELD_TRIAL_SERVICE_INCLUDE_EXPERIMENTAL_AREA_JOBS_H_ 
   34 #ifndef DOXYGEN_SHOULD_SKIP_THIS 
   36 #ifdef ALLOCATE_STUDY_JOB_CONSTANTS 
   37   #define STUDY_JOB_PREFIX DFW_FIELD_TRIAL_SERVICE_API 
   38   #define STUDY_JOB_STRUCT_VAL(x,y) = { x, y} 
   40   #define STUDY_JOB_PREFIX extern 
   41   #define STUDY_JOB_STRUCT_VAL(x,y) 
  
 
OperationStatus GenerateStatisticsForStudy(Study *study_p, ServiceJob *job_p, FieldTrialServiceData *data_p)
 
The datatype that stores all of the information about a Parameter.
Definition: parameter.h:121
 
A JSON fragment.
Definition: parameter_type.h:95
 
bool RunForSubmissionStudyParams(FieldTrialServiceData *data_p, ParameterSet *param_set_p, ServiceJob *job_p)
 
json_t * GetAllStudiesAsJSON(const FieldTrialServiceData *data_p, bool full_data_flag)
 
OperationStatus RemovePlotsForStudyById(const char *id_s, FieldTrialServiceData *data_p)
 
json_t * GetStudyDistinctPhenotypesAsJSON(bson_oid_t *study_id_p, const FieldTrialServiceData *data_p)
 
struct TreatmentFactor * GetTreatmentFactorForStudyByUrl(const Study *study_p, const char *treatment_url_s, const FieldTrialServiceData *data_p)
 
This is a datatype that stores a read-only c-style string along with a ParameterType.
Definition: parameter.h:85
 
struct TreatmentFactor * GetOrCreateTreatmentFactorForStudy(Study *study_p, const bson_oid_t *treatment_id_p, const FieldTrialServiceData *data_p)
 
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
 
json_t * GetStudyJSONForId(const char *id_s, const ViewFormat format, JSONProcessor *processor_p, char **study_name_ss, const FieldTrialServiceData *data_p)
 
A c-style string.
Definition: parameter_type.h:58
 
struct TreatmentFactor * GetTreatmentFactorForStudy(Study *study_p, const bson_oid_t *treatment_id_p, const FieldTrialServiceData *data_p)
 
A datatype representing a URI.
Definition: data_resource.h:40
 
Definition: json_processor.h:21
 
A potentially large c-style string.
Definition: parameter_type.h:90
 
bool AddStudyToServiceJob(ServiceJob *job_p, Study *study_p, const ViewFormat format, JSONProcessor *processor_p, FieldTrialServiceData *data_p)
 
A TreatmentFactor is a set of values for a Treatment applied to plots within a Study.
Definition: treatment_factor.h:76
 
OperationStatus GenerateStatisticsForAllStudies(ServiceJob *job_p, FieldTrialServiceData *data_p)
 
json_t * GetAllStudiesAsJSONInViewFormat(FieldTrialServiceData *data_p, const ViewFormat format)
 
json_t * GetAllStudyIds(Service *service_p)
 
char * GetStudyAsString(const Study *study_p)
 
bool SaveStudyAsFrictionlessData(Study *study_p, FieldTrialServiceData *data_p)
 
#define DFW_FIELD_TRIAL_SERVICE_LOCAL
Definition: dfw_field_trial_service_library.h:43
 
bool GetSearchStudyParameterTypeForNamedParameter(const char *param_name_s, ParameterType *pt_p)
 
A datatype which defines an available service, its capabilities and its parameters.
Definition: service.h:153
 
A pair of strings.
Definition: key_value_pair.h:42
 
Study * GetStudyFromResource(DataResource *resource_p, const NamedParameterType study_param_type, FieldTrialServiceData *dfw_data_p)
 
bool AddSearchStudyParams(ServiceData *data_p, ParameterSet *param_set_p)
 
An unsigned real number.
Definition: parameter_type.h:55
 
STUDY_JOB_PREFIX NamedParameterType STUDY_ID STUDY_JOB_STRUCT_VAL("ST Id", PT_STRING)
 
A boolean parameter.
Definition: parameter_type.h:38
 
OperationStatus DeleteStudyFromLuceneIndexById(const char *id_s, uuid_t uuid, FieldTrialServiceData *data_p)
 
json_t * GetStudyDistinctPhenotypesAsFrictionlessDataJSON(bson_oid_t *study_id_p, const FieldTrialServiceData *data_p)
 
OperationStatus DeleteStudyById(const char *id_s, ServiceJob *job_p, FieldTrialServiceData *data_p, const bool backup_flag)
 
json_t * GetStudyDistinctAccessionsAsJSON(bson_oid_t *study_id_p, const FieldTrialServiceData *data_p)
 
OperationStatus
The current status of an Operation.
Definition: operation.h:96
 
json_t * GetStudyAsFrictionlessDataResource(const Study *study_p, const FieldTrialServiceData *data_p)
 
bool RunForSearchStudyParams(FieldTrialServiceData *data_p, ParameterSet *param_set_p, ServiceJob *job_p)
 
bool GetSubmissionStudyParameterTypeForNamedParameter(const char *param_name_s, ParameterType *pt_p)
 
OperationStatus RemoveStudyPhenotypesFromStudyById(const char *id_s, FieldTrialServiceData *data_p)
 
bool BackupStudy(Study *study_p, const char *id_s, FieldTrialServiceData *data_p)
 
OperationStatus CalculateStudyStatistics(Study *study_p, const FieldTrialServiceData *service_data_p)
 
void FindAndAddStudyToServiceJob(const char *id_s, const ViewFormat format, ServiceJob *job_p, JSONProcessor *processor_p, const FieldTrialServiceData *data_p)
 
A datatype for holding the configuration data for a Service.
Definition: service.h:126
 
bool AddSubmissionStudyParams(ServiceData *data_p, ParameterSet *param_set_p, DataResource *resource_p)
 
The configuration data used by the DFW Field Trial Service.
Definition: dfw_field_trial_service_data.h:118
 
bool SetUpStudiesListParameter(const FieldTrialServiceData *data_p, Parameter *param_p, const Study *active_study_p, const bool empty_option_flag)
 
A set of Parameters along with an optional name and description.
Definition: parameter_set.h:46
 
bool BackupStudyByIdString(const char *id_s, FieldTrialServiceData *data_p)
 
bool GetSubmissionStudyParameterTypeForDefaultPlotNamedParameter(const char *param_name_s, ParameterType *pt_p)
 
const KeyValuePair * GetAspect(const char *aspect_value_s)
 
A non-negative 32-bit integer.
Definition: parameter_type.h:44
 
Definition: windows_uuid.h:43