public final class SimpleAdditionalStateProvider extends Object implements AdditionalStateProvider
This class is a simple implementation of additionalStateProvider. It is composed of a name, a dates table, and an additional states table associated to the dates. An ISearch index provides a way to find the nearest index table for a given date. It provides an additional state at a date through linear interpolation of the given additional states table.
| Constructor and Description |
|---|
SimpleAdditionalStateProvider(String name,
AbsoluteDate[] dateTab,
double[][] additionalStatesTab,
ISearchIndex algo)
Creates an instance of SimpleAdditionalStateProvider from a name describing
the additional state double table, a table of dates, and a table of additional states
associated to these dates.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
getAdditionalState(AbsoluteDate date)
Get the additional state.
|
String |
getName()
Get the name of the additional state.
|
public SimpleAdditionalStateProvider(String name, AbsoluteDate[] dateTab, double[][] additionalStatesTab, ISearchIndex algo)
name - describes the additional state double tabledateTab - table of datesadditionalStatesTab - additional states associated to these datesalgo - class to find the nearest date index from a given date in the date table
(If null, algo will be, by default, a BinarySearchIndexOpenClosed based on a table of duration
since the first date of the dates table)public String getName()
getName in interface AdditionalStateProviderpublic double[] getAdditionalState(AbsoluteDate date)
getAdditionalState in interface AdditionalStateProviderdate - date to which additional state is computedCopyright © 2024 CNES. All rights reserved.