T - Type of the data.public class FieldTimeSpanMap<T,D extends RealFieldElement<D>> extends Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
FieldTimeSpanMap.Transition<S,D extends RealFieldElement<D>> |
Local class holding transition times.
|
| Constructor | Description |
|---|---|
FieldTimeSpanMap(T entry,
Field<D> field_n) |
Create a map containing a single object, initially valid throughout the timeline.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addValidAfter(T entry,
FieldAbsoluteDate<D> earliestValidityDate) |
Add an entry valid after a limit date.
|
void |
addValidBefore(T entry,
FieldAbsoluteDate<D> latestValidityDate) |
Add an entry valid before a limit date.
|
T |
get(FieldAbsoluteDate<D> date) |
Get the entry valid at a specified date.
|
SortedSet<FieldTimeSpanMap.Transition<T,D>> |
getTransitions() |
Get an unmodifiable view of the sorted transitions.
|
public FieldTimeSpanMap(T entry, Field<D> field_n)
The real validity of this first entry will be truncated as other
entries are either added before it or added after it.
entry - entry (initially valid throughout the timeline)field_n - field used by default.public void addValidBefore(T entry, FieldAbsoluteDate<D> latestValidityDate)
As an entry is valid, it truncates the validity of the neighboring entries already present in the map.
The transition dates should be entered only once, either
by a call to this method or by a call to addValidAfter(Object,
FieldAbsoluteDate). Repeating a transition date will lead to unexpected
result and is not supported.
entry - entry to addlatestValidityDate - date before which the entry is valid
(sould be different from all dates already used for transitions)public void addValidAfter(T entry, FieldAbsoluteDate<D> earliestValidityDate)
As an entry is valid, it truncates the validity of the neighboring entries already present in the map.
The transition dates should be entered only once, either
by a call to this method or by a call to addValidBefore(Object,
FieldAbsoluteDate). Repeating a transition date will lead to unexpected
result and is not supported.
entry - entry to addearliestValidityDate - date after which the entry is valid
(sould be different from all dates already used for transitions)public T get(FieldAbsoluteDate<D> date)
date - date at which the entry must be validpublic SortedSet<FieldTimeSpanMap.Transition<T,D>> getTransitions()
Copyright © 2002-2018 CS Systèmes d'information. All rights reserved.