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.
28 #ifndef DFW_FIELD_TRIAL_SERVICE_DATA_H_
29 #define DFW_FIELD_TRIAL_SERVICE_DATA_H_
137 const char *dftsd_database_s;
160 const char *dftsd_facet_key_s;
168 const char *dftsd_study_cache_path_s;
177 const char *dftsd_wastebasket_path_s;
185 const char *dftsd_plots_uploads_path_s;
193 const char *dftsd_assets_path_s;
201 const char *dftsd_fd_url_s;
210 const char *dftsd_view_study_url_s;
219 const char *dftsd_view_trial_url_s;
227 const char *dftsd_view_location_url_s;
236 const char *dftsd_view_programme_url_s;
245 const char *dftsd_view_plots_url_s;
255 const char *dftsd_latex_commmand_s;
270 const char *dftsd_geoapify_key_s;
284 const char *dftsd_phenotype_images_path_s;
290 #ifndef DOXYGEN_SHOULD_SKIP_THIS
292 #ifdef ALLOCATE_DFW_FIELD_TRIAL_SERVICE_TAGS
293 #define DFW_FIELD_TRIAL_PREFIX DFW_FIELD_TRIAL_SERVICE_API
294 #define DFW_FIELD_TRIAL_VAL(x) = x
295 #define DFW_FIELD_TRIAL_STRUCT_VAL(x,y) = { x, y }
296 #define DFW_FIELD_TRIAL_CONCAT_VAL(x,y) = x y
298 #define DFW_FIELD_TRIAL_PREFIX extern
299 #define DFW_FIELD_TRIAL_VAL(x)
300 #define DFW_FIELD_TRIAL_STRUCT_VAL(x,y)
301 #define DFW_FIELD_TRIAL_CONCAT_VAL(x,y) = x y
316 DFW_FIELD_TRIAL_PREFIX
const char *DFT_PROGRAM_BACKUP_S
DFW_FIELD_TRIAL_VAL (
"Programs_versions");
326 DFW_FIELD_TRIAL_PREFIX
const char *DFT_FIELD_TRIALS_BACKUP_S
DFW_FIELD_TRIAL_VAL (
"FieldTrials_versions");
335 DFW_FIELD_TRIAL_PREFIX
const char *DFT_STUDIES_BACKUP_S
DFW_FIELD_TRIAL_VAL (
"Studies_versions");
344 DFW_FIELD_TRIAL_PREFIX
const char *DFT_LOCATION_BACKUP_S
DFW_FIELD_TRIAL_VAL (
"Locations_versions");
353 DFW_FIELD_TRIAL_PREFIX
const char *DFT_PLOT_BACKUP_S
DFW_FIELD_TRIAL_VAL (
"Plots_versions");
362 DFW_FIELD_TRIAL_PREFIX
const char *DFT_DRILLING_BACKUP_S
DFW_FIELD_TRIAL_VAL (
"Drillings_versions");
372 DFW_FIELD_TRIAL_PREFIX
const char *DFT_MATERIAL_BACKUP_S
DFW_FIELD_TRIAL_VAL (
"Materials_versions");
381 DFW_FIELD_TRIAL_PREFIX
const char *DFT_PHENOTYPE_BACKUP_S
DFW_FIELD_TRIAL_VAL (
"Phenotypes_versions");
390 DFW_FIELD_TRIAL_PREFIX
const char *DFT_OBSERVATION_BACKUP_S
DFW_FIELD_TRIAL_VAL (
"Observations_versions");
399 DFW_FIELD_TRIAL_PREFIX
const char *DFT_INSTRUMENT_BACKUP_S
DFW_FIELD_TRIAL_VAL (
"Instruments_versions");
408 DFW_FIELD_TRIAL_PREFIX
const char *DFT_GENE_BANK_BACKUP_S
DFW_FIELD_TRIAL_VAL (
"GeneBanks_versions");
426 DFW_FIELD_TRIAL_PREFIX
const char *DFT_CROP_BACKUP_S
DFW_FIELD_TRIAL_VAL (
"Crops_versions");
435 DFW_FIELD_TRIAL_PREFIX
const char *DFT_TREATMENT_BACKUP_S
DFW_FIELD_TRIAL_VAL (
"Treatments_versions");
450 DFW_FIELD_TRIAL_PREFIX
const char *DFT_BACKUPS_ID_KEY_S
DFW_FIELD_TRIAL_VAL (
"original_id");
454 #define DFT_GROUP_ALIAS_PREFIX_S "field_trial"
Definition: dfw_field_trial_service_data.h:43
const DFW_FIELD_TRIAL_PREFIX ScaleClass SCALE_DURATION DFW_FIELD_TRIAL_STRUCT_VAL("Duration", PT_SIGNED_REAL)
const char * GetDatatypeDescriptionAsString(const FieldTrialDatatype data_type)
ParameterType sc_type
Definition: dfw_field_trial_service_data.h:108
void ClearTreatmentsCache(FieldTrialServiceData *data_p)
MEM_FLAG
An enum specifying the particular status of a piece of dynamically allocated memory for a particular ...
Definition: memory_allocations.h:38
LinkedList * dftsd_measured_variables_cache_p
Definition: dfw_field_trial_service_data.h:258
Definition: dfw_field_trial_service_data.h:54
Definition: dfw_field_trial_service_data.h:55
ParameterType
The different types that a Parameter can take.
Definition: parameter_type.h:35
void ClearMeasuredVariablesCache(FieldTrialServiceData *data_p)
FieldTrialDatatype
Definition: dfw_field_trial_service_data.h:40
Definition: dfw_field_trial_service_data.h:46
A c-style string.
Definition: parameter_type.h:58
FieldTrialDatatype GetDatatypeFromString(const char *type_s)
A treatment defines an experimental process that can be applied.
Definition: treatment.h:40
Definition: dfw_field_trial_service_data.h:42
bool RemoveCachedMeasuredVariableByName(FieldTrialServiceData *data_p, const char *name_s)
bool AddMeasuredVariableToCache(FieldTrialServiceData *data_p, struct MeasuredVariable *mv_p, MEM_FLAG mf)
void FreeFieldTrialServiceData(FieldTrialServiceData *data_p)
const char * dftsd_map_tile_width_s
Definition: dfw_field_trial_service_data.h:272
Definition: dfw_field_trial_service_data.h:45
const char * GetDatatypeAsString(const FieldTrialDatatype data_type)
bool EnableTreatmentsCache(FieldTrialServiceData *data_p)
const char * GetImageForDatatype(const FieldTrialServiceData *data_p, const char *data_type_s)
#define DFW_FIELD_TRIAL_SERVICE_LOCAL
Definition: dfw_field_trial_service_library.h:43
Definition: measured_variable.h:39
Definition: dfw_field_trial_service_data.h:56
bool EnableMeasuredVariablesCache(FieldTrialServiceData *data_p)
A doubly-linked list that can be traversed in either direction.
Definition: linked_list.h:56
Definition: dfw_field_trial_service_data.h:48
struct MeasuredVariable * GetCachedMeasuredVariableByName(FieldTrialServiceData *data_p, const char *name_s)
const char * dftsd_map_tile_height_s
Definition: dfw_field_trial_service_data.h:275
A real number.
Definition: parameter_type.h:52
Definition: grassroots_server.h:45
bool ConfigureFieldTrialService(FieldTrialServiceData *data_p, GrassrootsServer *grassroots_p)
ServiceData dftsd_base_data
The base ServiceData.
Definition: dfw_field_trial_service_data.h:121
Definition: dfw_field_trial_service_data.h:49
bool AddTreatmentToCache(FieldTrialServiceData *data_p, struct Treatment *treatment_p, MEM_FLAG mf)
FieldTrialServiceData * AllocateFieldTrialServiceData(void)
A struct tm representing a time and date.
Definition: parameter_type.h:111
Definition: dfw_field_trial_service_data.h:50
Definition: dfw_field_trial_service_data.h:52
Definition: dfw_field_trial_service_data.h:53
A datatype for holding the configuration data for a Service.
Definition: service.h:126
Definition: dfw_field_trial_service_data.h:105
LinkedList * dftsd_treatments_cache_p
Definition: dfw_field_trial_service_data.h:261
The configuration data used by the DFW Field Trial Service.
Definition: dfw_field_trial_service_data.h:118
bool HasTreatmentCache(FieldTrialServiceData *data_p)
const DFW_FIELD_TRIAL_PREFIX char *DFT_PROGRAM_S DFW_FIELD_TRIAL_VAL("Programs")
The key for specifying the object containing the fields data.
const char * sc_name_s
Definition: dfw_field_trial_service_data.h:107
struct MeasuredVariable * GetCachedMeasuredVariableById(FieldTrialServiceData *data_p, const char *mv_id_s)
struct Treatment * GetCachedTreatmentByURL(FieldTrialServiceData *data_p, const char *url_s)
Definition: dfw_field_trial_service_data.h:44
Definition: dfw_field_trial_service_data.h:51
bool HasMeasuredVariableCache(FieldTrialServiceData *data_p)
A non-negative 32-bit integer.
Definition: parameter_type.h:44
char * GetFullCacheFilename(const char *name_s, const FieldTrialServiceData *data_p)