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 class ImmutableDateMotionCollection2<T,TDerivative> extends Object
Motion2, each of which is associated with a particular JulianDate.
This is a convenient and efficient way to store time-varying position and velocity, etc. Each
Motion2 instance is required to have the same Order (get).| Modifier and Type | Method and Description |
|---|---|
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.
|
public final int getCount()
public final int getOrder()
public final List<JulianDate> getDates()
public final List<Motion2<T,TDerivative>> getMotions()
public final 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.public final List<TDerivative> getFirstDerivatives()
public final List<TDerivative> getSecondDerivatives()