public class LOSBuilder extends Object
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.
TimeDependentLOS
,
Builder pattern (wikipedia),
Fluent interface (wikipedia)Constructor and Description |
---|
LOSBuilder(List<Vector3D> rawLOS)
Create builder.
|
Modifier and Type | Method and Description |
---|---|
LOSBuilder |
addTransform(LOSTransform transform)
Add a transform to be applied after the already registered transforms.
|
LOSBuilder |
addTransform(TimeIndependentLOSTransform transform)
Add a transform to be applied after the already registered transforms.
|
TimeDependentLOS |
build()
Build a lines-of-sight provider.
|
public LOSBuilder addTransform(TimeIndependentLOSTransform transform)
transform
- transform to be applied to the lines-of-sightpublic LOSBuilder addTransform(LOSTransform transform)
transform
- transform to be applied to the lines-of-sightpublic TimeDependentLOS build()
Copyright © 2014-2023 CS GROUP. All rights reserved.