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_MEASURED_VARIABLE_H_
24 #define SERVICES_FIELD_TRIALS_INCLUDE_MEASURED_VARIABLE_H_
68 #ifndef DOXYGEN_SHOULD_SKIP_THIS
70 #ifdef ALLOCATE_MEASURED_VARIABLE_TAGS
71 #define MEASURED_VARIABLE_PREFIX DFW_FIELD_TRIAL_SERVICE_LOCAL
72 #define MEASURED_VARIABLE_VAL(x) = x
73 #define MEASURED_VARIABLE_CONCAT_VAL(x,y) = x y
75 #define MEASURED_VARIABLE_PREFIX extern
76 #define MEASURED_VARIABLE_VAL(x)
77 #define MEASURED_VARIABLE_CONCAT_VAL(x,y)
ListItem mvn_node
Definition: measured_variable.h:58
MeasuredVariable * AllocateMeasuredVariable(bson_oid_t *id_p, SchemaTerm *trait_p, SchemaTerm *measurement_p, SchemaTerm *unit_p, SchemaTerm *variable_p, const ScaleClass *class_p)
OperationStatus SaveMeasuredVariable(MeasuredVariable *treatment_p, ServiceJob *job_p, const 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
bson_oid_t * mv_id_p
Definition: measured_variable.h:41
MeasuredVariable * mvn_measured_variable_p
Definition: measured_variable.h:60
A datatype to represent a running task.
Definition: service_job.h:72
SchemaTerm * mv_variable_term_p
Definition: measured_variable.h:43
MeasuredVariable * GetMeasuredVariableByIdString(const char *id_s, const FieldTrialServiceData *data_p)
const char * GetMeasuredVariableName(const MeasuredVariable *mv_p)
MeasuredVariable * GetMeasuredVariableBySchemaURLs(const char *trait_url_s, const char *method_url_s, const char *unit_url_s, const FieldTrialServiceData *data_p)
json_t * GetMeasuredVariableAsJSON(const MeasuredVariable *treatment_p, const ViewFormat format)
MeasuredVariable * GetMeasuredVariableById(const bson_oid_t *id_p, const FieldTrialServiceData *data_p)
void FreeMeasuredVariableNode(ListItem *node_p)
char * mvn_id_s
Definition: measured_variable.h:64
The keys for the Grassroots Schema.
Definition: measured_variable.h:56
#define DFW_FIELD_TRIAL_SERVICE_LOCAL
Definition: dfw_field_trial_service_library.h:43
#define CONTEXT_PREFIX_SCHEMA_ORG_S
Definition: schema_keys.h:103
Definition: measured_variable.h:39
const MEASURED_VARIABLE_PREFIX char *MV_NAME_S MEASURED_VARIABLE_CONCAT_VAL(CONTEXT_PREFIX_SCHEMA_ORG_S, "name")
const struct ScaleClass * GetMeasuredVariableScaleClass(const MeasuredVariable *const variable_p)
void FreeMeasuredVariable(MeasuredVariable *treatment_p)
MeasuredVariable * GetMeasuredVariableFromJSON(const json_t *phenotype_json_p, const FieldTrialServiceData *data_p)
MeasuredVariableNode * AllocateMeasuredVariableNode(MeasuredVariable *variable_p, MEM_FLAG mv_mem)
const ScaleClass * mv_scale_class_p
Definition: measured_variable.h:51
MEM_FLAG mvn_measured_variable_mem
Definition: measured_variable.h:62
OperationStatus
The current status of an Operation.
Definition: operation.h:96
MeasuredVariable * GetMeasuredVariableByName(const char *const name_s, const FieldTrialServiceData *data_p)
SchemaTerm * mv_unit_term_p
Definition: measured_variable.h:49
SchemaTerm * mv_measurement_term_p
Definition: measured_variable.h:47
SchemaTerm * mv_trait_term_p
Definition: measured_variable.h:45
const MEASURED_VARIABLE_PREFIX char *MV_TRAIT_S MEASURED_VARIABLE_VAL("trait")
const char * GetMeasuredVariableURL(const MeasuredVariable *mv_p)
Definition: dfw_field_trial_service_data.h:105
The configuration data used by the DFW Field Trial Service.
Definition: dfw_field_trial_service_data.h:118
A datatype for specifying ontological terms as a way to describe the data that each of the Services c...
Definition: schema_term.h:38
A doubly-linked node that points to its predecessor and successor.
Definition: linked_list.h:43