public class OrientationAngleProfileSequence extends StrictLegsSequence<OrientationAngleProfile> implements OrientationAngleProfile
OrientationAngleProfile
. This sequence
can be handled as an StrictLegsSequence
of OrientationAngleProfile
.LEG_NATURE
Constructor and Description |
---|
OrientationAngleProfileSequence()
Constructor with default value for the profiles sequence nature.
|
OrientationAngleProfileSequence(String nature)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
OrientationAngleProfileSequence |
copy(AbsoluteDateInterval newInterval)
Creates a new legs sequence from this one.
|
OrientationAngleProfileSequence |
copy(AbsoluteDateInterval newInterval,
boolean strict)
Creates a new legs sequence from this one.
|
String |
getNature()
Returns the nature of the leg.
|
Double |
getOrientationAngle(PVCoordinatesProvider pvProv,
AbsoluteDate date)
Compute the orientation angle corresponding to an orbital state.
|
AbsoluteDateInterval |
getTimeInterval()
Returns the time interval of the legs sequence.
|
OrientationAngleProfileSequence |
head(AbsoluteDate toT)
Returns a new sequence from the beginning to the given element.
|
OrientationAngleProfileSequence |
head(AbsoluteDate toT,
boolean strict)
Returns a new sequence from the beginning to the given element.
|
OrientationAngleProfileSequence |
sub(AbsoluteDate fromT,
AbsoluteDate toT)
Returns a new sequence extracted.
|
OrientationAngleProfileSequence |
sub(AbsoluteDate fromT,
AbsoluteDate toT,
boolean strict)
Returns a new sequence extracted.
|
OrientationAngleProfileSequence |
sub(AbsoluteDateInterval interval)
Returns a new sequence extracted.
|
OrientationAngleProfileSequence |
sub(AbsoluteDateInterval interval,
boolean strict)
Returns a new sequence extracted.
|
OrientationAngleProfileSequence |
tail(AbsoluteDate fromT)
Returns a new sequence from the given element to the end of the sequence.
|
OrientationAngleProfileSequence |
tail(AbsoluteDate fromT,
boolean strict)
Returns a new sequence from the given element to the end of the sequence.
|
String |
toPrettyString()
Returns a nice
String representation. |
add, addAll, clear, copy, current, first, first, getSet, head, isEmpty, isEmpty, iterator, last, last, next, previous, remove, removeAll, retainAll, simultaneous, simultaneous, size, sub, tail, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
computeSpinByFD, computeSpinDerivativeByFD
computeSpinNumerical
contains, containsAll
equals, hashCode, parallelStream, removeIf, spliterator, stream
public OrientationAngleProfileSequence(String nature)
nature
- nature of the sequencepublic OrientationAngleProfileSequence()
public Double getOrientationAngle(PVCoordinatesProvider pvProv, AbsoluteDate date) throws PatriusException
getOrientationAngle
in interface OrientationAngleProvider
pvProv
- position-velocity provider around current datedate
- datePatriusException
- thrown if the angle cannot be computedpublic String getNature()
public OrientationAngleProfileSequence copy(AbsoluteDateInterval newInterval)
copy
in interface OrientationAngleLeg
copy
in interface OrientationAngleProfile
copy
in interface Leg
copy
in interface LegsSequence<OrientationAngleProfile>
copy
in class StrictLegsSequence<OrientationAngleProfile>
newInterval
- The time interval of the legs sequence to createLegsSequence
valid on provided interval. Boundaries are not included in
the new sequence.public String toPrettyString()
String
representation.toPrettyString
in interface Leg
toPrettyString
in interface LegsSequence<OrientationAngleProfile>
toPrettyString
in interface TimeSequence<OrientationAngleProfile>
toPrettyString
in class StrictLegsSequence<OrientationAngleProfile>
String
representation.public AbsoluteDateInterval getTimeInterval()
Null is returned if the sequence is empty.
Warning: in case of sequences with holes, the sequence in the returned interval will not contain continuous data.
Sequence is supposed to be continuous.getTimeInterval
in interface Leg
getTimeInterval
in interface LegsSequence<OrientationAngleProfile>
getTimeInterval
in class StrictLegsSequence<OrientationAngleProfile>
public OrientationAngleProfileSequence sub(AbsoluteDate fromT, AbsoluteDate toT, boolean strict)
sub
in interface LegsSequence<OrientationAngleProfile>
sub
in class StrictLegsSequence<OrientationAngleProfile>
fromT
- Any element of this sequence.toT
- Any element of this sequence.strict
- true if boundaries shall not be included in the extracted sequence, false otherwise.Sequence
object including all elements from the given one fromT
to the given one.
Elements exactly on the interval boundaries are included only if strict
=
false.public OrientationAngleProfileSequence sub(AbsoluteDate fromT, AbsoluteDate toT)
sub
in interface LegsSequence<OrientationAngleProfile>
fromT
- Any element of this sequence.toT
- Any element of this sequence.Sequence
object including all elements from the given one fromT
to the given one toT
(both included).public OrientationAngleProfileSequence sub(AbsoluteDateInterval interval, boolean strict)
sub
in interface LegsSequence<OrientationAngleProfile>
sub
in class StrictLegsSequence<OrientationAngleProfile>
interval
- interval.strict
- true if boundaries shall not be included in the extracted sequence, false otherwise.Sequence
object including all elements included in the interval
.
Elements exactly on the interval boundaries are included only if strict
=
false.public OrientationAngleProfileSequence sub(AbsoluteDateInterval interval)
sub
in interface LegsSequence<OrientationAngleProfile>
interval
- interval.Sequence
object including all elements included in the interval
.
Elements exactly on the interval boundaries are included.public OrientationAngleProfileSequence head(AbsoluteDate toT, boolean strict)
head
in interface LegsSequence<OrientationAngleProfile>
head
in class StrictLegsSequence<OrientationAngleProfile>
toT
- Any element of this sequence.strict
- true if boundary shall not be included in the extracted sequence, false otherwise.Sequence
object including all elements from the “beginning” to the
given one (included only
if strict
= false).public OrientationAngleProfileSequence head(AbsoluteDate toT)
head
in interface LegsSequence<OrientationAngleProfile>
toT
- Any element of this sequence.Sequence
object including all elements from the “beginning” to the
given one (included).public OrientationAngleProfileSequence tail(AbsoluteDate fromT, boolean strict)
tail
in interface LegsSequence<OrientationAngleProfile>
tail
in class StrictLegsSequence<OrientationAngleProfile>
fromT
- Any element of this sequence.strict
- true if boundary shall not be included in the extracted sequence, false otherwise.Sequence
object including all elements from the given one (included
only
if strict
= false) to the “end” of the sequence.public OrientationAngleProfileSequence tail(AbsoluteDate fromT)
tail
in interface LegsSequence<OrientationAngleProfile>
fromT
- Any element of this sequence.Sequence
object including all elements from the given one (included) to
the “end” of the
sequence.public OrientationAngleProfileSequence copy(AbsoluteDateInterval newInterval, boolean strict)
copy
in interface LegsSequence<OrientationAngleProfile>
copy
in class StrictLegsSequence<OrientationAngleProfile>
newInterval
- The time interval of the legs sequence to createstrict
- true if boundaries shall not be included in the new sequence, false otherwise.LegsSequence
valid on provided intervalCopyright © 2023 CNES. All rights reserved.