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_TREATMENT_FACTOR_H_
24 #define SERVICES_FIELD_TRIALS_INCLUDE_TREATMENT_FACTOR_H_
39 #ifndef DOXYGEN_SHOULD_SKIP_THIS
41 #ifdef ALLOCATE_TREATMENT_FACTOR_TAGS
42 #define TREATMENT_FACTOR_PREFIX DFW_FIELD_TRIAL_SERVICE_LOCAL
43 #define TREATMENT_FACTOR_VAL(x) = x
44 #define TREATMENT_FACTOR_CONCAT_VAL(x,y) = x y
46 #define TREATMENT_FACTOR_PREFIX extern
47 #define TREATMENT_FACTOR_VAL(x)
48 #define TREATMENT_FACTOR_CONCAT_VAL(x,y)
ListItem tfn_node
Definition: treatment_factor.h:97
void FreeTreatmentFactor(TreatmentFactor *treatment_factor_p)
TreatmentFactor * AllocateTreatmentFactor(Treatment *treatment_factor_p, struct Study *study_p)
A treatment defines an experimental process that can be applied.
Definition: treatment.h:40
const TREATMENT_FACTOR_PREFIX char *TF_STUDY_ID_S TREATMENT_FACTOR_VAL("study_id")
size_t * GetNumberOfTreatmentFactorValues(const TreatmentFactor *treatment_factor_p)
Definition: treatment_factor.h:95
bool AddTreatmentFactorValue(TreatmentFactor *treatment_p, const char *name_s, const char *value_s)
A TreatmentFactor is a set of values for a Treatment applied to plots within a Study.
Definition: treatment_factor.h:76
TreatmentFactor * tfn_p
Definition: treatment_factor.h:99
const char * GetTreatmentFactorName(const TreatmentFactor *treatment_factor_p)
#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
TreatmentFactorNode * AllocateTreatmentFactorNode(TreatmentFactor *treatment_factor_p)
void FreeTreatmentFactorNode(ListItem *treatment_node_p)
A doubly-linked list that can be traversed in either direction.
Definition: linked_list.h:56
const char * GetTreatmentFactorValue(TreatmentFactor *treatment_p, const char *name_s)
const char * GetTreatmentFactorDescription(const TreatmentFactor *treatment_factor_p)
const TREATMENT_FACTOR_PREFIX char *TF_VALUES_KEY_S TREATMENT_FACTOR_CONCAT_VAL(CONTEXT_PREFIX_SCHEMA_ORG_S, "name")
LinkedList * tf_values_p
A list of KeyValuePairNodes where the keys are the labels for the different levels of the applied Tre...
Definition: treatment_factor.h:90
json_t * GetTreatmentFactorValuesAsJSON(const TreatmentFactor *treatment_factor_p, const ViewFormat format)
const char * GetTreatmentFactorUrl(const TreatmentFactor *treatment_factor_p)
json_t * GetTreatmentFactorAsJSON(const TreatmentFactor *treatment_factor_p, const ViewFormat format)
The configuration data used by the DFW Field Trial Service.
Definition: dfw_field_trial_service_data.h:118
Treatment * tf_treatment_p
The Treatment that is applied.
Definition: treatment_factor.h:79
struct Study * tf_study_p
The Study that this TreatmentFactor is applied in.
Definition: treatment_factor.h:82
TreatmentFactor * GetTreatmentFactorFromJSON(const json_t *treatment_factor_json_p, struct Study *parent_study_p, const FieldTrialServiceData *data_p)
A doubly-linked node that points to its predecessor and successor.
Definition: linked_list.h:43