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.
measured_variable_jobs.h
Go to the documentation of this file.
1 /*
2 ** Copyright 2014-2018 The Earlham Institute
3 **
4 ** Licensed under the Apache License, Version 2.0 (the "License");
5 ** you may not use this file except in compliance with the License.
6 ** You may obtain a copy of the License at
7 **
8 ** http://www.apache.org/licenses/LICENSE-2.0
9 **
10 ** Unless required by applicable law or agreed to in writing, software
11 ** distributed under the License is distributed on an "AS IS" BASIS,
12 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ** See the License for the specific language governing permissions and
14 ** limitations under the License.
15 */
16 /*
17  * phenotype_jobs.h
18  *
19  * Created on: 26 Oct 2018
20  * Author: billy
21  */
22 
23 #ifndef SERVICES_DFW_FIELD_TRIAL_SERVICE_INCLUDE_TREATMENT_JOBS_H_
24 #define SERVICES_DFW_FIELD_TRIAL_SERVICE_INCLUDE_TREATMENT_JOBS_H_
25 
26 
29 
30 #include "measured_variable.h"
31 
32 
33 
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35 
36 #ifdef ALLOCATE_MEASURED_VARIABLE_CONSTANTS
37  #define MEASURED_VARIABLE_JOB_PREFIX DFW_FIELD_TRIAL_SERVICE_API
38  #define MEASURED_VARIABLE_JOB_STRUCT_VAL(x,y) = { x, y}
39 #else
40  #define MEASURED_VARIABLE_JOB_PREFIX extern
41  #define MEASURED_VARIABLE_JOB_STRUCT_VAL(x,y)
42 #endif
43 
44 #endif /* #ifndef DOXYGEN_SHOULD_SKIP_THIS */
45 
46 
47 
48 /*
49  * Study parameters
50  */
51 MEASURED_VARIABLE_JOB_PREFIX NamedParameterType MV_TRAIT_ID MEASURED_VARIABLE_JOB_STRUCT_VAL("TR Trait Id", PT_STRING);
52 
53 
54 
55 
56 #ifdef __cplusplus
57 extern "C"
58 {
59 #endif
60 
61 
63 
64 
66 
67 
69 
70 
72 
73 
75 
76 
78 
79 
81 
82 
88 
89 
91 
92 
94 
95 
97 
98 
100 
101 
102 #ifdef __cplusplus
103 }
104 #endif
105 
106 
107 
108 #endif /* SERVICES_DFW_FIELD_TRIAL_SERVICE_INCLUDE_TREATMENT_JOBS_H_ */
MEM_FLAG
MEM_FLAG
An enum specifying the particular status of a piece of dynamically allocated memory for a particular ...
Definition: memory_allocations.h:38
GetAllMeasuredVariablesAsJSON
json_t * GetAllMeasuredVariablesAsJSON(const FieldTrialServiceData *data_p, bson_t *opts_p)
NamedParameterType
This is a datatype that stores a read-only c-style string along with a ParameterType.
Definition: parameter.h:85
ParameterType
ParameterType
The different types that a Parameter can take.
Definition: parameter_type.h:35
ServiceJob
A datatype to represent a running task.
Definition: service_job.h:72
measured_variable.h
GetMeasuredVariableIndexingData
json_t * GetMeasuredVariableIndexingData(Service *service_p)
FreeMeasuredVariablesNameKey
void FreeMeasuredVariablesNameKey(char *key_s)
PT_STRING
A c-style string.
Definition: parameter_type.h:58
GetSubmissionMeasuredVariableParameterTypeForNamedParameter
bool GetSubmissionMeasuredVariableParameterTypeForNamedParameter(const char *param_name_s, ParameterType *pt_p)
AddSubmissionMeasuredVariableParams
bool AddSubmissionMeasuredVariableParams(ServiceData *data_p, ParameterSet *param_set_p)
dfw_field_trial_service_library.h
DFW_FIELD_TRIAL_SERVICE_LOCAL
#define DFW_FIELD_TRIAL_SERVICE_LOCAL
Definition: dfw_field_trial_service_library.h:43
MeasuredVariable
Definition: measured_variable.h:39
Service
A datatype which defines an available service, its capabilities and its parameters.
Definition: service.h:153
RunForSubmissionMeasuredVariableParams
bool RunForSubmissionMeasuredVariableParams(FieldTrialServiceData *data_p, ParameterSet *param_set_p, ServiceJob *job_p)
CheckMeasuredVariable
int CheckMeasuredVariable(MeasuredVariable *treatment_p, const FieldTrialServiceData *data_p)
GetMeasuredVariablesNameKey
char * GetMeasuredVariablesNameKey(void)
AddMeasuredVariableToServiceJob
bool AddMeasuredVariableToServiceJob(ServiceJob *job_p, MeasuredVariable *treatment_p, const ViewFormat format, FieldTrialServiceData *data_p)
dfw_field_trial_service_data.h
GetMeasuredVariableByVariableName
MeasuredVariable * GetMeasuredVariableByVariableName(const char *name_s, MEM_FLAG *mv_mem_p, FieldTrialServiceData *data_p)
ServiceData
A datatype for holding the configuration data for a Service.
Definition: service.h:126
GetMeasuredVariableAsString
char * GetMeasuredVariableAsString(const MeasuredVariable *treatment_p)
FieldTrialServiceData
The configuration data used by the DFW Field Trial Service.
Definition: dfw_field_trial_service_data.h:118
ViewFormat
ViewFormat
An indicator of what the output destination is for the JSON data values.
Definition: view_format.h:19
MEASURED_VARIABLE_JOB_STRUCT_VAL
MEASURED_VARIABLE_JOB_PREFIX NamedParameterType MV_TRAIT_ID MEASURED_VARIABLE_JOB_STRUCT_VAL("TR Trait Id", PT_STRING)
ParameterSet
A set of Parameters along with an optional name and description.
Definition: parameter_set.h:46