T - The coordinate type that this collection contains. Values (get) will be collection of this type.TDerivative - The derivative type that this collection contains. FirstDerivatives (get), SecondDerivatives (get),
and additional derivatives are lists of this type.public interface IDateMotionCollection2<T,TDerivative>
Motion2, each of which is associated with a particular JulianDate.
Each Motion2 instance is required to have the same Order (get).| Modifier and Type | Method and Description |
|---|---|
void |
add(JulianDate date,
Motion2<T,TDerivative> motion)
Adds an item to the collection.
|
void |
add(JulianDate date,
T value)
Adds an item to the collection.
|
void |
add(JulianDate date,
T value,
TDerivative... derivatives)
Adds an item to the collection.
|
void |
add(JulianDate date,
T value,
TDerivative firstDerivative)
Adds an item to the collection.
|
void |
add(JulianDate date,
T value,
TDerivative firstDerivative,
TDerivative secondDerivative)
Adds an item to the collection.
|
List<TDerivative> |
get(int index)
Gets the list of the specified derivative.
|
int |
getCount()
Gets the number of items in this collection.
|
List<JulianDate> |
getDates()
Gets the list of dates in this collection.
|
List<TDerivative> |
getFirstDerivatives()
Gets the list of first derivatives in the collection.
|
List<Motion2<T,TDerivative>> |
getMotions()
Gets the list of motion instances in this collection.
|
int |
getOrder()
Gets the number of derivatives in this collection.
|
List<TDerivative> |
getSecondDerivatives()
Gets the list of second derivatives in the collection.
|
List<T> |
getValues()
Gets the list of values in the collection.
|
void |
setItem(int index,
JulianDate date,
Motion2<T,TDerivative> motion)
Sets an item at a particular index.
|
void |
setItem(int index,
JulianDate date,
T value)
Sets an item at a particular index.
|
void |
setItem(int index,
JulianDate date,
T value,
TDerivative... derivatives)
Sets an item at a particular index.
|
void |
setItem(int index,
JulianDate date,
T value,
TDerivative firstDerivative)
Sets an item at a particular index.
|
void |
setItem(int index,
JulianDate date,
T value,
TDerivative firstDerivative,
TDerivative secondDerivative)
Sets an item at a particular index.
|
void add(@Nonnull JulianDate date, T value, TDerivative firstDerivative)
date - The date associated with the item.value - The value to add.firstDerivative - The first derivative to add.void add(@Nonnull JulianDate date, T value)
date - The date associated with the item.value - The value to add.void add(@Nonnull JulianDate date, T value, TDerivative firstDerivative, TDerivative secondDerivative)
date - The date associated with the item.value - The value to add.firstDerivative - The first derivative to add.secondDerivative - The second derivative to add.void add(@Nonnull JulianDate date, @Nonnull Motion2<T,TDerivative> motion)
date - The date associated with the item.motion - The item to add.void add(@Nonnull JulianDate date, T value, TDerivative... derivatives)
date - The date associated with the item.value - The value to add.derivatives - The derivatives to add. The first item in the array is the first derivative, the second item is the second derivative, and so on.int getCount()
@Nonnull List<JulianDate> getDates()
@Nonnull List<Motion2<T,TDerivative>> getMotions()
int getOrder()
void setItem(int index,
@Nonnull
JulianDate date,
T value,
TDerivative firstDerivative,
TDerivative secondDerivative)
index - The index of the item to set.date - The new date for the item.value - The new value for the item.firstDerivative - The new first derivative for the item.secondDerivative - The new second derivative for the item.void setItem(int index,
@Nonnull
JulianDate date,
@Nonnull
Motion2<T,TDerivative> motion)
index - The index of the item to set.date - The new date for the item.motion - The new item.void setItem(int index,
@Nonnull
JulianDate date,
T value,
TDerivative... derivatives)
index - The index of the item to set.date - The new date for the item.value - The new value for the item.derivatives - The new derivatives for the item.void setItem(int index,
@Nonnull
JulianDate date,
T value,
TDerivative firstDerivative)
index - The index of the item to set.date - The new date for the item.value - The new value for the item.firstDerivative - The new first derivative for the item.void setItem(int index,
@Nonnull
JulianDate date,
T value)
index - The index of the item to set.date - The new date for the item.value - The new value for the item.@Nonnull List<TDerivative> get(int index)
Specifying an index of 1 retrieves a list of all first
derivatives. Specifying 2 retrieves a list of all second derivatives.
And so on.
index - The derivative list of retrieve.@Nonnull List<TDerivative> getFirstDerivatives()
@Nonnull List<TDerivative> getSecondDerivatives()