< Summary

Information
Class: Morpho25.Settings.TimeSteps
Assembly: Morpho25
File(s): D:\a\Morpho\Morpho\project\Morpho\Morpho25\Settings\TimeSteps.cs
Line coverage
97%
Covered lines: 48
Uncovered lines: 1
Coverable lines: 49
Total lines: 118
Line coverage: 97.9%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_SunheightStep01()100%1100%
set_SunheightStep01(...)100%1100%
get_SunheightStep02()100%1100%
set_SunheightStep02(...)100%1100%
get_DtStep00()100%1100%
set_DtStep00(...)100%1100%
get_DtStep01()100%1100%
set_DtStep01(...)100%1100%
get_DtStep02()100%1100%
set_DtStep02(...)100%1100%
.ctor()100%1100%
get_Title()100%1100%
get_Values()100%1100%
get_Tags()100%1100%
ToString()100%10%

File(s)

D:\a\Morpho\Morpho\project\Morpho\Morpho25\Settings\TimeSteps.cs

#LineLine coverage
 1namespace Morpho25.Settings
 2{
 3    /// <summary>
 4    /// Timesteps class.
 5    /// </summary>
 6    public class TimeSteps : Configuration
 7    {
 8        private double _sunheightStep01;
 9        private double _sunheightStep02;
 10        private double _dtStep00;
 11        private double _dtStep01;
 12        private double _dtStep02;
 13        /// <summary>
 14        /// Sun height for switching dt(0). From 0 deg to 40.00.
 15        /// </summary>
 16        public double SunheightStep01 {
 617            get { return _sunheightStep01; }
 18            set
 219            {
 220                ItIsPositive(value);
 221                _sunheightStep01 = value;
 222            }
 23        }
 24        /// <summary>
 25        /// Sun height for switching dt(1). From 40.00 deg to 50.00 deg.
 26        /// </summary>
 27        public double SunheightStep02
 28        {
 629            get { return _sunheightStep02; }
 30            set
 431            {
 432                ItIsPositive(value);
 333                _sunheightStep02 = value;
 334            }
 35        }
 36        /// <summary>
 37        /// Time step (s) for interval 1 dt(0).
 38        /// </summary>
 39        public double DtStep00
 40        {
 341            get { return _dtStep00; }
 42            set
 243            {
 244                ItIsPositive(value);
 245                _dtStep00 = value;
 246            }
 47        }
 48        /// <summary>
 49        /// Time step (s) for interval 1 dt(1).
 50        /// </summary>
 51        public double DtStep01
 52        {
 353            get { return _dtStep01; }
 54            set
 255            {
 256                ItIsPositive(value);
 257                _dtStep01 = value;
 258            }
 59        }
 60        /// <summary>
 61        /// Time step (s) for interval 1 dt(2).
 62        /// </summary>
 63        public double DtStep02
 64        {
 365            get { return _dtStep02; }
 66            set
 267            {
 268                ItIsPositive(value);
 269                _dtStep02 = value;
 270            }
 71        }
 72        /// <summary>
 73        /// Create time step settings.
 74        /// </summary>
 275        public TimeSteps()
 276        {
 277            SunheightStep01 = 40.00000;
 278            SunheightStep02 = 50.00000;
 279            DtStep00 = 2.00000;
 280            DtStep01 = 2.00000;
 281            DtStep02 = 1.00000;
 282        }
 83
 84        /// <summary>
 85        /// Title of the XML section
 86        /// </summary>
 187        public string Title => "TimeSteps";
 88
 89        /// <summary>
 90        /// Values of the XML section
 91        /// </summary>
 192        public string[] Values => new[] {
 193            SunheightStep01.ToString("n5"),
 194            SunheightStep02.ToString("n5"),
 195            DtStep00.ToString("n5"),
 196            DtStep01.ToString("n5"),
 197            DtStep02.ToString("n5")
 198        };
 99
 100        /// <summary>
 101        /// Tags of the XML section
 102        /// </summary>
 1103        public string[] Tags => new[] {
 1104            "sunheight_step01",
 1105            "sunheight_step02",
 1106            "dt_step00",
 1107            "dt_step01",
 1108            "dt_step02"
 1109        };
 110
 111        /// <summary>
 112        /// String representation of TimeSteps object.
 113        /// </summary>
 114        /// <returns>String representation.</returns>
 0115        public override string ToString() => "Config::TimeSteps";
 116    }
 117
 118}