Example #1
0
        /// <summary>
        /// Creates a new instance of <see cref="SoilLayer2D"/>.
        /// </summary>
        /// <param name="outerLoop">The outer loop of the soil layer.</param>
        /// <param name="nestedLayers">The nested layers of the soil layer.</param>
        /// <exception cref="ArgumentNullException">Thrown when any input parameter is <c>null</c>.</exception>
        public SoilLayer2D(SoilLayer2DLoop outerLoop, IEnumerable <SoilLayer2D> nestedLayers)
        {
            if (outerLoop == null)
            {
                throw new ArgumentNullException(nameof(outerLoop));
            }

            if (nestedLayers == null)
            {
                throw new ArgumentNullException(nameof(nestedLayers));
            }

            OuterLoop    = outerLoop;
            NestedLayers = nestedLayers;
        }
Example #2
0
        /// <summary>
        /// Creates a new instance of <see cref="SoilLayer2DGeometry"/>.
        /// </summary>
        /// <param name="outerLoop">The outer loop of the geometry.</param>
        /// <param name="innerLoops">The inner loops of the geometry.</param>
        /// <exception cref="ArgumentNullException">Thrown when any input parameter is <c>null</c>.</exception>
        public SoilLayer2DGeometry(SoilLayer2DLoop outerLoop, IEnumerable <SoilLayer2DLoop> innerLoops)
        {
            if (outerLoop == null)
            {
                throw new ArgumentNullException(nameof(outerLoop));
            }

            if (innerLoops == null)
            {
                throw new ArgumentNullException(nameof(innerLoops));
            }

            OuterLoop  = outerLoop;
            InnerLoops = innerLoops;
        }
Example #3
0
 private bool Equals(SoilLayer2DLoop other)
 {
     return(Segments.SequenceEqual(other.Segments));
 }