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.
Observation Struct Reference

A datatype for storing a phneotypic observation within an experiment. More...

#include <observation.h>

Collaboration diagram for Observation:
[legend]

Data Fields

bson_oid_t * ob_id_p
 
struct tm * ob_start_date_p
 The date and time when the measuring for this Observation was started. More...
 
struct tm * ob_end_date_p
 The date and time when the measuring for this Observation was started. More...
 
MeasuredVariableob_phenotype_p
 The MeasuredVariable that this Observation is measuring. More...
 
MEM_FLAG ob_phenotype_mem
 
Instrumentob_instrument_p
 
char * ob_growth_stage_s
 
char * ob_method_s
 
char * ob_notes_s
 Any notes about this observation. More...
 
ObservationNature ob_nature
 
uint32 ob_index
 For some phenotype data multiple data points are taken from the same plot e.g. More...
 
ObservationType ob_type
 
void(* ob_clear_fn )(struct Observation *observation_p)
 
bool(* ob_add_values_to_json_fn )(const struct Observation *obs_p, const char *raw_key_s, const char *corrected_key_s, json_t *json_p, const char *null_sequence_s, bool only_if_exists_flag)
 
bool(* ob_set_value_from_json_fn )(struct Observation *observation_p, ObservationValueType ovt, const json_t *value_p)
 
bool(* ob_set_value_from_string_fn )(struct Observation *observation_p, ObservationValueType ovt, const char *value_s)
 
bool(* ob_get_value_as_string_fn )(struct Observation *observation_p, ObservationValueType ovt, char **value_ss, bool *free_value_flag_p)
 

Detailed Description

A datatype for storing a phneotypic observation within an experiment.

Field Documentation

◆ ob_id_p

bson_oid_t* ob_id_p

◆ ob_start_date_p

struct tm* ob_start_date_p

The date and time when the measuring for this Observation was started.

This can be NULL meaning that a date isn't applicable.

◆ ob_end_date_p

struct tm* ob_end_date_p

The date and time when the measuring for this Observation was started.

This can be NULL meaning that a date isn't applicable.

◆ ob_phenotype_p

MeasuredVariable* ob_phenotype_p

The MeasuredVariable that this Observation is measuring.

◆ ob_phenotype_mem

MEM_FLAG ob_phenotype_mem

◆ ob_instrument_p

Instrument* ob_instrument_p

◆ ob_growth_stage_s

char* ob_growth_stage_s

◆ ob_method_s

char* ob_method_s

◆ ob_notes_s

char* ob_notes_s

Any notes about this observation.

◆ ob_nature

ObservationNature ob_nature

◆ ob_index

uint32 ob_index

For some phenotype data multiple data points are taken from the same plot e.g.

yield data from two separate strips within a plot. So having the ability to store the same phenotypic term but with more than one data point is needed.

By default this value is set to OB_DEFAULT_INDEX which means that this is the first, and most often, the only data point for a given non-timed phenotypic observation.

◆ ob_type

ObservationType ob_type

◆ ob_clear_fn

void(* ob_clear_fn) (struct Observation *observation_p)

◆ ob_add_values_to_json_fn

bool(* ob_add_values_to_json_fn) (const struct Observation *obs_p, const char *raw_key_s, const char *corrected_key_s, json_t *json_p, const char *null_sequence_s, bool only_if_exists_flag)

◆ ob_set_value_from_json_fn

bool(* ob_set_value_from_json_fn) (struct Observation *observation_p, ObservationValueType ovt, const json_t *value_p)

◆ ob_set_value_from_string_fn

bool(* ob_set_value_from_string_fn) (struct Observation *observation_p, ObservationValueType ovt, const char *value_s)

◆ ob_get_value_as_string_fn

bool(* ob_get_value_as_string_fn) (struct Observation *observation_p, ObservationValueType ovt, char **value_ss, bool *free_value_flag_p)

The documentation for this struct was generated from the following file: