Exemplo n.º 1
0
        public void InitializeTest()
        {
            csvfileReader.WR component = new WR();

            System.Collections.Hashtable args = new System.Collections.Hashtable();
            args.Add("ConfigFile", "C:/research/code/HydroDesktopHG/Source/Plugins/HydroModeler/Components/wtmpReader/Source/config.xml");
            args.Add("DataFolder", "C:/research/code/HydroDesktopHG/Source/Plugins/HydroModeler/Components/wtmpReader/data");
            component.Initialize(args);
        }
Exemplo n.º 2
0
        public void PerformTimeStepTest()
        {
            csvfileReader.WR component = new WR();

            //Initialize Component
            System.Collections.Hashtable args = new System.Collections.Hashtable();
            args.Add("ConfigFile", "C:/research/code/HydroDesktopHG/Source/Plugins/HydroModeler/Components/wtmpReader/Source/config.xml");
            args.Add("DataFolder", "C:/research/code/HydroDesktopHG/Source/Plugins/HydroModeler/Components/wtmpReader/data");
            component.Initialize(args);


            //Call perform timestep in the component class
            component.PerformTimeStep();

            //retrieve values from the compenent class
            ScalarSet OutputValues = (ScalarSet)component.GetValues("Temperature", "Temp");

            double[] T = OutputValues.data;
        }