public class Timeline extends Object
This class represents the orbital events timeline as well as the associated phenomena when the event triggers a phenomenon.
Constructor and Description |
---|
Timeline(AbsoluteDateInterval interval)
Builds an instance of Timeline from a single time interval.
|
Timeline(CodedEventsLogger logger,
AbsoluteDateInterval interval,
SpacecraftState spacecraftState)
Builds an instance of the timeline from a
CodedEventsLogger , generating the list of detected events and
the list of corresponding phenomena.These events and phenomena are the output of a propagation with events detector; the coherence between events and phenomena should be guaranteed by the detection process during propagation. |
Timeline(Timeline timeline)
Builds an instance of the Timeline from another Timeline.
|
Timeline(Timeline timeline,
AbsoluteDateInterval newInterval)
Builds an instance Timeline from another Timeline with a wider validity time
interval.
|
Modifier and Type | Method and Description |
---|---|
void |
addCodedEvent(CodedEvent event) |
void |
addPhenomenon(Phenomenon phenomenon) |
protected CodedEventsList |
getCodedEvents() |
List<CodedEvent> |
getCodedEventsList() |
AbsoluteDateInterval |
getIntervalOfValidity() |
protected PhenomenaList |
getPhenomena() |
protected List<String> |
getPhenomenaCodes() |
List<String> |
getPhenomenaCodesList() |
List<Phenomenon> |
getPhenomenaList() |
Timeline |
join(Timeline otherTimeline)
Buils a new
Timeline by concatening this with the specified timeline. |
void |
merge(Timeline otherTimeline)
Merges the provided timeline into this.
|
void |
removeCodedEvent(CodedEvent event) |
void |
removeOnlyCodedEvent(CodedEvent event) |
void |
removePhenomenon(Phenomenon phenomenon) |
public Timeline(CodedEventsLogger logger, AbsoluteDateInterval interval, SpacecraftState spacecraftState) throws PatriusException
CodedEventsLogger
, generating the list of detected events and
the list of corresponding phenomena.logger
- the CodedEventsLogger
storing the events and phenomena created during propagation.interval
- the AbsoluteDateInterval
representing the validity interval of the events/phenomena lists.spacecraftState
- a spacecraft state using if there is no event in logger, may be null.PatriusException
- if a problem occurs when g is called when building phenomena.public Timeline(Timeline timeline)
timeline
- the timeline to copypublic Timeline(AbsoluteDateInterval interval)
interval
- the AbsoluteDateInterval
representing the validity interval of the
events/phenomena lists.public Timeline(Timeline timeline, AbsoluteDateInterval newInterval) throws PatriusException
timeline
- the time line to copy.newInterval
- the new validity time interval.PatriusException
- if the new validity interval does not include the one of the timeline.protected PhenomenaList getPhenomena()
protected CodedEventsList getCodedEvents()
protected List<String> getPhenomenaCodes()
public List<Phenomenon> getPhenomenaList()
public List<CodedEvent> getCodedEventsList()
public void removeCodedEvent(CodedEvent event)
event
- : coded event that has to be removed from the listpublic void removeOnlyCodedEvent(CodedEvent event)
event
- : coded event that has to be removed from the listpublic void removePhenomenon(Phenomenon phenomenon)
phenomenon
- : phenomenon that has to be removed from the listpublic void merge(Timeline otherTimeline) throws PatriusException
otherTimeline
- the timeline to be merged.PatriusException
- if the validity time intervals are not strictly equalpublic Timeline join(Timeline otherTimeline) throws PatriusException
Timeline
by concatening this with the specified timeline. To concatenate
two timelines, their validity time intervals must not overlap (an exception is thrown
otherwise). The new timeline stores the phenomena/events of both timelines.otherTimeline
- the timeline to concatenate.PatriusException
- if time intervals overlap.public void addCodedEvent(CodedEvent event)
event
- : event that has to be added to the listpublic void addPhenomenon(Phenomenon phenomenon)
phenomenon
- : phenomenon that has to be added to the listpublic AbsoluteDateInterval getIntervalOfValidity()
Copyright © 2023 CNES. All rights reserved.