Example #1
0
        /// <summary>Initializes a new instance of the <see cref="CurveInterpolationCommonCubicSpline"/> class.
        /// </summary>
        /// <param name="boundaryCondition">The boundary condition.</param>
        /// <param name="name">The name of the curve interpolation.</param>
        /// <param name="longName">The long name of the curve interpolation.</param>
        /// <param name="annotation">The annotation, i.e. short description, of the curve interpolator.</param>
        internal CurveInterpolationCommonCubicSpline(CurveInterpolationCubicSpline.BoundaryCondition boundaryCondition, string name, string longName, string annotation = null)
            : base(annotation)
        {
            m_BoundaryConditionFactory = boundaryCondition ?? throw new ArgumentNullException(nameof(boundaryCondition));

            m_Name     = new IdentifierString(name);
            m_LongName = new IdentifierString(longName);
        }
Example #2
0
        /// <summary>Initializes a new instance of the <see cref="CurveInterpolationCommonCubicSpline"/> class.
        /// </summary>
        /// <param name="boundaryCondition">The boundary condition.</param>
        internal CurveInterpolationCommonCubicSpline(CurveInterpolationCubicSpline.BoundaryCondition boundaryCondition)
        {
            m_BoundaryConditionFactory = boundaryCondition ?? throw new ArgumentNullException(nameof(boundaryCondition));

            m_Name     = new IdentifierString(String.Format("Cubic Spline {0}", boundaryCondition.Name.String));
            m_LongName = new IdentifierString(String.Format("{0} {1}", CurveResource.LongNameInterpolationCubicSpline, boundaryCondition.LongName.String));

            TrySetAnnotation(String.Format(CurveResource.AnnotationInterpolationCubicSpline, boundaryCondition.Annotation));
        }