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.
|
Modules | |
Programme | |
The datatype representing a Programme of Field Trials and Studies. | |
Data Structures | |
struct | Crop |
struct | FieldTrialServiceData |
The configuration data used by the DFW Field Trial Service. More... | |
struct | FieldTrial |
A datatype that represents a Field Trial that can contain one or more Studies. More... | |
struct | FieldTrialNode |
A datatype for storing a Field Trial on a list. More... | |
struct | Observation |
A datatype for storing a phneotypic observation within an experiment. More... | |
struct | TreatmentFactor |
A TreatmentFactor is a set of values for a Treatment applied to plots within a Study. More... | |
Functions | |
ServicesArray * | GetServices (User *user_p, GrassrootsServer *grassroots_p) |
Get the Service available for running the DFW Field Trial Service. More... | |
void | ReleaseServices (ServicesArray *services_p) |
Free the ServicesArray and its associated DFW Field Trial Service. More... | |
const DFW_FIELD_TRIAL_PREFIX char *DFT_PROGRAM_S | DFW_FIELD_TRIAL_VAL ("Programs") |
The key for specifying the object containing the fields data. More... | |
const DFW_FIELD_TRIAL_PREFIX char *DFT_FIELD_TRIALS_S | DFW_FIELD_TRIAL_VAL ("FieldTrials") |
The key for specifying the object containing the fields data. More... | |
const DFW_FIELD_TRIAL_PREFIX char *DFT_STUDIES_S | DFW_FIELD_TRIAL_VAL ("Studies") |
The key for specifying the object containing the experimental area data. More... | |
const DFW_FIELD_TRIAL_PREFIX char *DFT_LOCATION_S | DFW_FIELD_TRIAL_VAL ("Locations") |
The key for specifying the object containing the location data. More... | |
const DFW_FIELD_TRIAL_PREFIX char *DFT_PLOT_S | DFW_FIELD_TRIAL_VAL ("Plots") |
The key for specifying the object containing the plot data. More... | |
const DFW_FIELD_TRIAL_PREFIX char *DFT_DRILLING_S | DFW_FIELD_TRIAL_VAL ("Drillings") |
The key for specifying the object containing the drilling data. More... | |
const DFW_FIELD_TRIAL_PREFIX char *DFT_MATERIAL_S | DFW_FIELD_TRIAL_VAL ("Materials") |
The key for specifying the object containing the materials data. More... | |
const DFW_FIELD_TRIAL_PREFIX char *DFT_PHENOTYPE_S | DFW_FIELD_TRIAL_VAL ("Phenotypes") |
The key for specifying the object containing the phenotype data. More... | |
const DFW_FIELD_TRIAL_PREFIX char *DFT_OBSERVATION_S | DFW_FIELD_TRIAL_VAL ("Observations") |
The key for specifying the object containing the observation data. More... | |
const DFW_FIELD_TRIAL_PREFIX char *DFT_INSTRUMENT_S | DFW_FIELD_TRIAL_VAL ("Instruments") |
The key for specifying the object containing the instruments. More... | |
const DFW_FIELD_TRIAL_PREFIX char *DFT_GENE_BANK_S | DFW_FIELD_TRIAL_VAL ("GeneBanks") |
The key for specifying the object containing the Gene Banks. More... | |
const DFW_FIELD_TRIAL_PREFIX char *DFT_CROP_S | DFW_FIELD_TRIAL_VAL ("Crops") |
The key for specifying the object containing the rows within the plots. More... | |
const DFW_FIELD_TRIAL_PREFIX char *DFT_TREATMENT_S | DFW_FIELD_TRIAL_VAL ("Treatments") |
The key for specifying the object containing the treatments. More... | |
const DFW_FIELD_TRIAL_PREFIX char *DFT_SELECTED_S | DFW_FIELD_TRIAL_VAL ("selected") |
The key for specifying whether a particular object in a JSON tree is selected, e.g. More... | |
void | FreeFieldTrial (FieldTrial *trial_p) |
Free a given FieldTrial. More... | |
bool | RemoveFieldTrialStudy (FieldTrial *trial_p, struct Study *study_p) |
Remove a Study from a given FieldTrial. More... | |
uint32 | GetNumberOfFieldTrialStudies (const FieldTrial *trial_p) |
Get the number of Studies in a given FieldTrial. More... | |
void | FreeObservation (Observation *observation_p) |
Free an Observation. More... | |
void | ClearObservation (Observation *observation_p) |
Clear the data stored within an Observation. More... | |
ObservationNode * | AllocateObservationNode (Observation *observation_p) |
Allocate an ObservationNode for a given Observation. More... | |
void | FreeObservationNode (ListItem *node_p) |
Free an ObservationNode. More... | |
bool | AreObservationsMatching (const Observation *observation_0_p, const Observation *observation_1_p) |
Test whether two Observations are the same in terms of phenotypes, dates and observation indexes. More... | |
bool | SetNumericObservationRawValue (NumericObservation *observation_p, const double64 *value_p) |
Set the raw value for a given Observation. More... | |
bool | SetNumericObservationCorrectedValue (NumericObservation *observation_p, const double64 *value_p) |
Set the corrected value for a given Observation. More... | |
bool | SetStringObservationRawValue (StringObservation *observation_p, const char *value_s) |
Set the raw value for a given Observation. More... | |
bool | SetStringObservationCorrectedValue (StringObservation *observation_p, const char *value_s) |
Set the corrected value for a given Observation. More... | |
bool | SetStringObservationCorrectedValueFromJSON (StringObservation *observation_p, const json_t *value_p) |
Set the corrected value for a given Observation. More... | |
ServicesArray* GetServices | ( | User * | user_p, |
GrassrootsServer * | grassroots_p | ||
) |
void ReleaseServices | ( | ServicesArray * | services_p | ) |
Free the ServicesArray and its associated DFW Field Trial Service.
services_p | The ServicesArray to free. |
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 DFW_FIELD_TRIAL_PREFIX char* DFT_FIELD_TRIALS_S DFW_FIELD_TRIAL_VAL | ( | "FieldTrials" | ) |
The key for specifying the object containing the fields data.
const DFW_FIELD_TRIAL_PREFIX char* DFT_STUDIES_S DFW_FIELD_TRIAL_VAL | ( | "Studies" | ) |
The key for specifying the object containing the experimental area data.
const DFW_FIELD_TRIAL_PREFIX char* DFT_LOCATION_S DFW_FIELD_TRIAL_VAL | ( | "Locations" | ) |
The key for specifying the object containing the location data.
const DFW_FIELD_TRIAL_PREFIX char* DFT_PLOT_S DFW_FIELD_TRIAL_VAL | ( | "Plots" | ) |
The key for specifying the object containing the plot data.
const DFW_FIELD_TRIAL_PREFIX char* DFT_DRILLING_S DFW_FIELD_TRIAL_VAL | ( | "Drillings" | ) |
The key for specifying the object containing the drilling data.
const DFW_FIELD_TRIAL_PREFIX char* DFT_MATERIAL_S DFW_FIELD_TRIAL_VAL | ( | "Materials" | ) |
The key for specifying the object containing the materials data.
const DFW_FIELD_TRIAL_PREFIX char* DFT_PHENOTYPE_S DFW_FIELD_TRIAL_VAL | ( | "Phenotypes" | ) |
The key for specifying the object containing the phenotype data.
const DFW_FIELD_TRIAL_PREFIX char* DFT_OBSERVATION_S DFW_FIELD_TRIAL_VAL | ( | "Observations" | ) |
The key for specifying the object containing the observation data.
const DFW_FIELD_TRIAL_PREFIX char* DFT_INSTRUMENT_S DFW_FIELD_TRIAL_VAL | ( | "Instruments" | ) |
The key for specifying the object containing the instruments.
const DFW_FIELD_TRIAL_PREFIX char* DFT_GENE_BANK_S DFW_FIELD_TRIAL_VAL | ( | "GeneBanks" | ) |
The key for specifying the object containing the Gene Banks.
const DFW_FIELD_TRIAL_PREFIX char* DFT_CROP_S DFW_FIELD_TRIAL_VAL | ( | "Crops" | ) |
The key for specifying the object containing the rows within the plots.
The key for specifying the object containing the crops.
const DFW_FIELD_TRIAL_PREFIX char* DFT_TREATMENT_S DFW_FIELD_TRIAL_VAL | ( | "Treatments" | ) |
The key for specifying the object containing the treatments.
const DFW_FIELD_TRIAL_PREFIX char* DFT_SELECTED_S DFW_FIELD_TRIAL_VAL | ( | "selected" | ) |
The key for specifying whether a particular object in a JSON tree is selected, e.g.
matched a search.
void FreeFieldTrial | ( | FieldTrial * | trial_p | ) |
Free a given FieldTrial.
trial_p | The FieldTrial to free. |
bool RemoveFieldTrialStudy | ( | FieldTrial * | trial_p, |
struct Study * | study_p | ||
) |
Remove a Study from a given FieldTrial.
trial_p | The FieldTrial to remove the Study from. |
study_p | The Study to remove. |
true
if the Study was removed from the FieldTrial, code>false if the Study was not on the list of Studies belonging to the given FieldTrial. uint32 GetNumberOfFieldTrialStudies | ( | const FieldTrial * | trial_p | ) |
Get the number of Studies in a given FieldTrial.
trial_p | The FieldTrial to get the number of Studies for. |
void FreeObservation | ( | Observation * | observation_p | ) |
Free an Observation.
observation_p | The Observation to free. |
void ClearObservation | ( | Observation * | observation_p | ) |
Clear the data stored within an Observation.
observation_p | The Observation to clear. |
ObservationNode* AllocateObservationNode | ( | Observation * | observation_p | ) |
Allocate an ObservationNode for a given Observation.
observation_p | The Observation that will be stored upon the newly-allocated ObservationNode. |
NULL
upon error. void FreeObservationNode | ( | ListItem * | node_p | ) |
Free an ObservationNode.
node_p | The ObservationNode to free. This will also call FreeObservation() on the ObservationNode's Observation too. |
bool AreObservationsMatching | ( | const Observation * | observation_0_p, |
const Observation * | observation_1_p | ||
) |
Test whether two Observations are the same in terms of phenotypes, dates and observation indexes.
observation_0_p | The first Observation. |
observation_1_p | The second Observation. |
true
if the Observations match, false
otherwise. bool SetNumericObservationRawValue | ( | NumericObservation * | observation_p, |
const double64 * | value_p | ||
) |
Set the raw value for a given Observation.
The value is deep-copied to the Observation so the value passed in can be freed without causing any memory corruption.
observation_p | The Observation that will have its raw value updated. |
value_p | The new raw value to store, this can be NULL which will clear the Observation's existing raw value if it has been previously set. |
true
if the Observation's raw value was updated successfully, false
if there errors. bool SetNumericObservationCorrectedValue | ( | NumericObservation * | observation_p, |
const double64 * | value_p | ||
) |
Set the corrected value for a given Observation.
The value is deep-copied to the Observation so the value passed in can be freed without causing any memory corruption.
observation_p | The Observation that will have its corrected value updated. |
value_p | The new corrected value to store, this can be NULL which will clear the Observation's existing corrected value if it has been previously set. |
true
if the Observation's corrected value was updated successfully, false
if there errors. bool SetStringObservationRawValue | ( | StringObservation * | observation_p, |
const char * | value_s | ||
) |
Set the raw value for a given Observation.
The value is deep-copied to the Observation so the value passed in can be freed without causing any memory corruption.
observation_p | The Observation that will have its raw value updated. |
value_s | The new raw value to store, this can be NULL which will clear the Observation's existing raw value if it has been previously set. |
true
if the Observation's raw value was updated successfully, false
if there errors. bool SetStringObservationCorrectedValue | ( | StringObservation * | observation_p, |
const char * | value_s | ||
) |
Set the corrected value for a given Observation.
The value is deep-copied to the Observation so the value passed in can be freed without causing any memory corruption.
observation_p | The Observation that will have its corrected value updated. |
value_s | The new corrected value to store, this can be NULL which will clear the Observation's existing corrected value if it has been previously set. |
true
if the Observation's corrected value was updated successfully, false
if there errors. bool SetStringObservationCorrectedValueFromJSON | ( | StringObservation * | observation_p, |
const json_t * | value_p | ||
) |
Set the corrected value for a given Observation.
The value is deep-copied to the Observation so the value passed in can be freed without causing any memory corruption.
observation_p | The Observation that will have its corrected value updated. |
value_s | The new corrected value to store, this can be NULL which will clear the Observation's existing corrected value if it has been previously set. |
true
if the Observation's corrected value was updated successfully, false
if there errors.