T
- The type of Motion1
that this collection contains. For example, if T
is
Cartesian
, then this collection holds Motion<Cartesian>.public class ImmutableDateMotionCollection1<T> extends Object
Motion1
, 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
Motion1
instance is required to have the same Order
(get
).Modifier and Type | Method and Description |
---|---|
List<T> |
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<T> |
getFirstDerivatives()
Gets the list of first derivatives in the collection.
|
List<Motion1<T>> |
getMotions()
Gets the list of motion instances in this collection.
|
int |
getOrder()
Gets the number of derivatives in this collection.
|
List<T> |
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<T> get(int index)
Specifying an index
of 0 retrieves a list of all
values in the collection. Specifying 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<T> getFirstDerivatives()