Class DeformedSurface.Builder

  • All Implemented Interfaces:
    org.joda.beans.BeanBuilder<DeformedSurface>
    Enclosing class:
    DeformedSurface

    public static final class DeformedSurface.Builder
    extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<DeformedSurface>
    The bean-builder for DeformedSurface.
    • Method Detail

      • get

        public Object get​(String propertyName)
        Specified by:
        get in interface org.joda.beans.BeanBuilder<DeformedSurface>
        Overrides:
        get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<DeformedSurface>
      • metadata

        public DeformedSurface.Builder metadata​(SurfaceMetadata metadata)
        Sets the surface metadata.

        The metadata includes an optional list of parameter metadata.

        Parameters:
        metadata - the new value, not null
        Returns:
        this, for chaining, not null
      • originalSurface

        public DeformedSurface.Builder originalSurface​(Surface originalSurface)
        Sets the original surface.

        The underlying surface which receives the deformation defined by deformationFunction.

        Parameters:
        originalSurface - the new value, not null
        Returns:
        this, for chaining, not null
      • deformationFunction

        public DeformedSurface.Builder deformationFunction​(Function<DoublesPair,​ValueDerivatives> deformationFunction)
        Sets the deformation function.

        The deformation to the original surface is define by this function. The function takes DoublesPair of x-value and y-value, then returns ValueDerivatives which contains z-value for the specified x,y values, and node sensitivities to the original surface.

        Parameters:
        deformationFunction - the new value, not null
        Returns:
        this, for chaining, not null
      • toString

        public String toString()
        Overrides:
        toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<DeformedSurface>