コード例 #1
0
        //---------------------------------------------------------------------------
        public PhotosynthesisModel()
        {
            envModel       = new EnvironmentModel();
            canopy         = new LeafCanopy();
            canopy.nLayers = 1;
            sunlit         = new SunlitCanopy();
            shaded         = new ShadedCanopy();

            canopy.notifyChanged += runDaily;
            photoPathwayChanged  += canopy.photoPathwayChanged;

            envModel.notify      += runDaily;
            parameters            = new List <string>();
            variables             = new List <string>();
            sunlitShadedVariables = new List <string>();
            canopyVariables       = new List <string>();

            canopy.layerNumberChanged += sunlit.initArrays;
            canopy.layerNumberChanged += shaded.initArrays;
        }
コード例 #2
0
        //---------------------------------------------------------------------------
        public PhotosynthesisModel()
        {
            EnvModel       = new EnvironmentModel();
            Canopy         = new LeafCanopy();
            Canopy.NLayers = 1;
            //sunlit = new SunlitCanopy();
            //shaded = new ShadedCanopy();

            //canopy.notifyChanged += runDaily;
            photoPathwayChanged += Canopy.PhotoPathwayChanged;

            //envModel.notify += runDaily;
            Parameters            = new List <string>();
            Variables             = new List <string>();
            SunlitShadedVariables = new List <string>();
            CanopyVariables       = new List <string>();

            //canopy.layerNumberChanged += sunlit.initArrays;
            //canopy.layerNumberChanged += shaded.initArrays;
        }