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.
measured_variable.h File Reference
#include <time.h>
#include "dfw_field_trial_service_data.h"
#include "dfw_field_trial_service_library.h"
#include "instrument.h"
#include "typedefs.h"
#include "jansson.h"
#include "schema_term.h"
#include "schema_keys.h"
#include "crop_ontology_tool.h"
Include dependency graph for measured_variable.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  MeasuredVariable
 
struct  MeasuredVariableNode
 

Functions

const MEASURED_VARIABLE_PREFIX char *MV_TRAIT_S MEASURED_VARIABLE_VAL ("trait")
 
const MEASURED_VARIABLE_PREFIX char *MV_MEASUREMENT_S MEASURED_VARIABLE_VAL ("measurement")
 
const MEASURED_VARIABLE_PREFIX char *MV_UNIT_S MEASURED_VARIABLE_VAL ("unit")
 
const MEASURED_VARIABLE_PREFIX char *MV_VARIABLE_S MEASURED_VARIABLE_VAL ("variable")
 
const MEASURED_VARIABLE_PREFIX char *MV_FORM_S MEASURED_VARIABLE_VAL ("form")
 
const MEASURED_VARIABLE_PREFIX char *MV_VALUE_S MEASURED_VARIABLE_VAL ("value")
 
const MEASURED_VARIABLE_PREFIX char *MV_INTERNAL_NAME_S MEASURED_VARIABLE_VAL ("internal_name")
 
const MEASURED_VARIABLE_PREFIX char *MV_SCALE_S MEASURED_VARIABLE_VAL ("scale")
 
const MEASURED_VARIABLE_PREFIX char *MV_NAME_S MEASURED_VARIABLE_CONCAT_VAL (CONTEXT_PREFIX_SCHEMA_ORG_S, "name")
 
MeasuredVariableAllocateMeasuredVariable (bson_oid_t *id_p, SchemaTerm *trait_p, SchemaTerm *measurement_p, SchemaTerm *unit_p, SchemaTerm *variable_p, const ScaleClass *class_p)
 
void FreeMeasuredVariable (MeasuredVariable *treatment_p)
 
json_t * GetMeasuredVariableAsJSON (const MeasuredVariable *treatment_p, const ViewFormat format)
 
MeasuredVariableGetMeasuredVariableFromJSON (const json_t *phenotype_json_p, const FieldTrialServiceData *data_p)
 
OperationStatus SaveMeasuredVariable (MeasuredVariable *treatment_p, ServiceJob *job_p, const FieldTrialServiceData *data_p)
 
MeasuredVariableGetMeasuredVariableById (const bson_oid_t *id_p, const FieldTrialServiceData *data_p)
 
MeasuredVariableGetMeasuredVariableByName (const char *const name_s, const FieldTrialServiceData *data_p)
 
MeasuredVariableGetMeasuredVariableByIdString (const char *id_s, const FieldTrialServiceData *data_p)
 
MeasuredVariableGetMeasuredVariableBySchemaURLs (const char *trait_url_s, const char *method_url_s, const char *unit_url_s, const FieldTrialServiceData *data_p)
 
const char * GetMeasuredVariableName (const MeasuredVariable *mv_p)
 
const char * GetMeasuredVariableURL (const MeasuredVariable *mv_p)
 
MeasuredVariableNodeAllocateMeasuredVariableNode (MeasuredVariable *variable_p, MEM_FLAG mv_mem)
 
void FreeMeasuredVariableNode (ListItem *node_p)
 
const struct ScaleClassGetMeasuredVariableScaleClass (const MeasuredVariable *const variable_p)
 

Function Documentation

◆ MEASURED_VARIABLE_VAL() [1/8]

const MEASURED_VARIABLE_PREFIX char* MV_TRAIT_S MEASURED_VARIABLE_VAL ( "trait"  )

◆ MEASURED_VARIABLE_VAL() [2/8]

const MEASURED_VARIABLE_PREFIX char* MV_MEASUREMENT_S MEASURED_VARIABLE_VAL ( "measurement"  )

◆ MEASURED_VARIABLE_VAL() [3/8]

const MEASURED_VARIABLE_PREFIX char* MV_UNIT_S MEASURED_VARIABLE_VAL ( "unit"  )

◆ MEASURED_VARIABLE_VAL() [4/8]

const MEASURED_VARIABLE_PREFIX char* MV_VARIABLE_S MEASURED_VARIABLE_VAL ( "variable"  )

◆ MEASURED_VARIABLE_VAL() [5/8]

const MEASURED_VARIABLE_PREFIX char* MV_FORM_S MEASURED_VARIABLE_VAL ( "form"  )

◆ MEASURED_VARIABLE_VAL() [6/8]

const MEASURED_VARIABLE_PREFIX char* MV_VALUE_S MEASURED_VARIABLE_VAL ( "value"  )

◆ MEASURED_VARIABLE_VAL() [7/8]

const MEASURED_VARIABLE_PREFIX char* MV_INTERNAL_NAME_S MEASURED_VARIABLE_VAL ( "internal_name"  )

◆ MEASURED_VARIABLE_VAL() [8/8]

const MEASURED_VARIABLE_PREFIX char* MV_SCALE_S MEASURED_VARIABLE_VAL ( "scale"  )

◆ MEASURED_VARIABLE_CONCAT_VAL()

const MEASURED_VARIABLE_PREFIX char* MV_NAME_S MEASURED_VARIABLE_CONCAT_VAL ( CONTEXT_PREFIX_SCHEMA_ORG_S  ,
"name"   
)

◆ AllocateMeasuredVariable()

MeasuredVariable* AllocateMeasuredVariable ( bson_oid_t *  id_p,
SchemaTerm trait_p,
SchemaTerm measurement_p,
SchemaTerm unit_p,
SchemaTerm variable_p,
const ScaleClass class_p 
)

◆ FreeMeasuredVariable()

void FreeMeasuredVariable ( MeasuredVariable treatment_p)

◆ GetMeasuredVariableAsJSON()

json_t* GetMeasuredVariableAsJSON ( const MeasuredVariable treatment_p,
const ViewFormat  format 
)

◆ GetMeasuredVariableFromJSON()

MeasuredVariable* GetMeasuredVariableFromJSON ( const json_t *  phenotype_json_p,
const FieldTrialServiceData data_p 
)

◆ SaveMeasuredVariable()

OperationStatus SaveMeasuredVariable ( MeasuredVariable treatment_p,
ServiceJob job_p,
const FieldTrialServiceData data_p 
)

◆ GetMeasuredVariableById()

MeasuredVariable* GetMeasuredVariableById ( const bson_oid_t *  id_p,
const FieldTrialServiceData data_p 
)

◆ GetMeasuredVariableByName()

MeasuredVariable* GetMeasuredVariableByName ( const char *const  name_s,
const FieldTrialServiceData data_p 
)

◆ GetMeasuredVariableByIdString()

MeasuredVariable* GetMeasuredVariableByIdString ( const char *  id_s,
const FieldTrialServiceData data_p 
)

◆ GetMeasuredVariableBySchemaURLs()

MeasuredVariable* GetMeasuredVariableBySchemaURLs ( const char *  trait_url_s,
const char *  method_url_s,
const char *  unit_url_s,
const FieldTrialServiceData data_p 
)

◆ GetMeasuredVariableName()

const char* GetMeasuredVariableName ( const MeasuredVariable mv_p)

◆ GetMeasuredVariableURL()

const char* GetMeasuredVariableURL ( const MeasuredVariable mv_p)

◆ AllocateMeasuredVariableNode()

MeasuredVariableNode* AllocateMeasuredVariableNode ( MeasuredVariable variable_p,
MEM_FLAG  mv_mem 
)

◆ FreeMeasuredVariableNode()

void FreeMeasuredVariableNode ( ListItem node_p)

◆ GetMeasuredVariableScaleClass()

const struct ScaleClass* GetMeasuredVariableScaleClass ( const MeasuredVariable *const  variable_p)