15#ifndef LM_ORYZA2000_H_
16#define LM_ORYZA2000_H_
18#include "mbe_legacymodel.h"
19#include "state/mbe_state.h"
21#include "ld_eventqueue.h"
23#include <containers/lgrowarray.h>
28 class Oryza2000Engine;
34extern cbm::logger_t * PhysiologyOryza2000Logger;
37class LDNDC_API PhysiologyOryza2000 :
public MBE_LegacyModel
39 LMOD_EXPORT_MODULE_INFO(PhysiologyOryza2000,
"physiology:oryza2000",
"Physiology ORYZA2000");
41 PhysiologyOryza2000( MoBiLE_State *,
42 cbm::io_kcomm_t *, timemode_e);
44 ~PhysiologyOryza2000();
46 lerr_t configure( ldndc::config_file_t
const *);
47 lerr_t register_ports( cbm::io_kcomm_t *);
55 lerr_t unregister_ports( cbm::io_kcomm_t *);
59 {
return LDNDC_ERR_OK; }
61 {
return LDNDC_ERR_OK; }
64 MoBiLE_State * m_state;
65 cbm::io_kcomm_t * m_iokcomm;
67 timemode_e
const timemode;
70 input_class_setup_t
const * m_setup;
71 input_class_soillayers_t
const * m_soillayers;
72 input_class_climate_t
const * m_climate;
75 substate_microclimate_t * mc;
76 substate_airchemistry_t * ac;
77 substate_watercycle_t * wc;
78 substate_physiology_t * ph;
79 substate_soilchemistry_t * sc;
81 MoBiLE_PlantVegetation * m_veg;
83 EventQueue m_HarvestEvents;
84 ldndc::EventHandle m_HarvestHandle;
85 EventQueue m_PlantEvents;
86 ldndc::EventHandle m_PlantHandle;
88 ldndc::growable_array < BaseRootSystemDNDC*, 1000, 1 > root_system;
91 Oryza2000Engine * oryza2000_engine;
95 PublishedField<double> m_MaturityStatus;
111 std::string m_cropfile;
118 lerr_t Oryza2000PhysiologyCropFile( Oryza2000State * ,
121 double accumulated_potentialtranspiration_old;
123 lerr_t Oryza2000PhysiologyReceiveState(
126 lerr_t Oryza2000PhysiologySendState(
129 lerr_t Oryza2000PhysiologyPlant( Oryza2000State * );
131 lerr_t Oryza2000PhysiologyHarvest();
Spatially explicit groundwater model.
Definition airchemistryput.h:21
Interface of the fine root system of a plant: rooting depth, distribution of fine root mass and lengt...
Definition ld_rootsystem.h:34