Class LOSBuilder


  • public class LOSBuilder
    extends Object
    Builder for lines-of-sight list.

    This class implements the builder pattern to create TimeDependentLOS instances. It does so by using a fluent API in order to clarify reading and allow later extensions with new configuration parameters.

    This builder aims at creating lines-of-sight directions which are the result of several transforms applied to an initial list of raw directions. It therefore allows to take into account the optical path due to mirrors and the alignments of sensors frames with respect to a spacecraft.

    Author:
    Luc Maisonobe
    See Also:
    TimeDependentLOS, Builder pattern (wikipedia), Fluent interface (wikipedia)
    • Constructor Detail

      • LOSBuilder

        public LOSBuilder​(List<Vector3D> rawLOS)
        Create builder.
        Parameters:
        rawLOS - raw fixed lines-of-sight
    • Method Detail

      • addTransform

        public LOSBuilder addTransform​(TimeIndependentLOSTransform transform)
        Add a transform to be applied after the already registered transforms.
        Parameters:
        transform - transform to be applied to the lines-of-sight
        Returns:
        the builder instance
      • addTransform

        public LOSBuilder addTransform​(LOSTransform transform)
        Add a transform to be applied after the already registered transforms.
        Parameters:
        transform - transform to be applied to the lines-of-sight
        Returns:
        the builder instance
      • build

        public TimeDependentLOS build()
        Build a lines-of-sight provider.
        Returns:
        lines-of-sight provider