< Summary

Information
Class: Morpho25.Settings.ModelTiming
Assembly: Morpho25
File(s): D:\a\Morpho\Morpho\project\Morpho\Morpho25\Settings\ModelTiming.cs
Line coverage
97%
Covered lines: 43
Uncovered lines: 1
Coverable lines: 44
Total lines: 114
Line coverage: 97.7%
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_SurfaceSteps()100%1100%
set_SurfaceSteps(...)100%1100%
get_FlowSteps()100%1100%
set_FlowSteps(...)100%1100%
get_RadiationSteps()100%1100%
set_RadiationSteps(...)100%1100%
get_PlantSteps()100%1100%
set_PlantSteps(...)100%1100%
get_SourcesSteps()100%1100%
set_SourcesSteps(...)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\ModelTiming.cs

#LineLine coverage
 1namespace Morpho25.Settings
 2{
 3    /// <summary>
 4    /// Model timing settings.
 5    /// </summary>
 6    public class ModelTiming : Configuration
 7    {
 8        private uint _surfaceSteps;
 9        private uint _flowSteps;
 10        private uint _radiationSteps;
 11        private uint _plantSteps;
 12        private uint _sourcesSteps;
 13        /// <summary>
 14        /// Update Surface Data each ? sec.
 15        /// </summary>
 16        public uint SurfaceSteps
 17        {
 618            get { return _surfaceSteps; }
 19            set
 420            {
 421                _surfaceSteps = value;
 422            }
 23        }
 24        /// <summary>
 25        /// Update Wind field each ? sec.
 26        /// </summary>
 27        public uint FlowSteps
 28        {
 629            get { return _flowSteps; }
 30            set
 231            {
 232                _flowSteps = value;
 233            }
 34        }
 35        /// <summary>
 36        /// Update Radiation and Shadows each ? sec.
 37        /// </summary>
 38        public uint RadiationSteps
 39        {
 340            get { return _radiationSteps; }
 41            set
 242            {
 243                _radiationSteps = value;
 244            }
 45        }
 46        /// <summary>
 47        /// Update Plant Data each ? sec.
 48        /// </summary>
 49        public uint PlantSteps
 50        {
 351            get { return _plantSteps; }
 52            set
 253            {
 254                _plantSteps = value;
 255            }
 56        }
 57        /// <summary>
 58        /// Update Emmission Data each ? sec.
 59        /// </summary>
 60        public uint SourcesSteps
 61        {
 362            get { return _sourcesSteps; }
 63            set
 264            {
 265                _sourcesSteps = value;
 266            }
 67        }
 68        /// <summary>
 69        /// Create model timing object.
 70        /// </summary>
 271        public ModelTiming()
 272        {
 273            SurfaceSteps = 30;
 274            FlowSteps = 900;
 275            RadiationSteps = 600;
 276            PlantSteps = 600;
 277            SourcesSteps = 600;
 278        }
 79
 80        /// <summary>
 81        /// Title of the XML section
 82        /// </summary>
 183        public string Title => "ModelTiming";
 84
 85        /// <summary>
 86        /// Values of the XML section
 87        /// </summary>
 188        public string[] Values => new[] {
 189            SurfaceSteps.ToString(),
 190            FlowSteps.ToString(),
 191            RadiationSteps.ToString(),
 192            PlantSteps.ToString(),
 193            SourcesSteps.ToString()
 194        };
 95
 96        /// <summary>
 97        /// Tags of the XML section
 98        /// </summary>
 199        public string[] Tags => new[] {
 1100            "surfaceSteps",
 1101            "flowSteps",
 1102            "radiationSteps",
 1103            "plantSteps",
 1104            "sourcesSteps"
 1105        };
 106
 107        /// <summary>
 108        /// String representation of ModelTiming object.
 109        /// </summary>
 110        /// <returns>String representation.</returns>
 0111        public override string ToString() => "Config::ModelTiming";
 112    }
 113
 114}