fr.cnes.sirius.patrius.events.postprocessing
Class Timeline

java.lang.Object
  extended by fr.cnes.sirius.patrius.events.postprocessing.Timeline

public class Timeline
extends Object

Since:
1.1
Version:
$Id: Timeline.java 11379 2014-10-30 16:44:49Z maggiorani $
Author:
Julie Anton
Description :

This class represents the orbital events timeline as well as the associated phenomena when the event triggers a phenomenon.

Concurrency :
not thread-safe
Concurrency comment :
the timeline is not thread safe due to the methods removeCodedEvent(CodedEvent) and removePhenomenon(Phenomenon)

Constructor Summary
Timeline(CodedEventsLogger logger, AbsoluteDateInterval interval)
          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.
 
Method Summary
 void addCodedEvent(CodedEvent event)
           
 void addPhenomenon(Phenomenon phenomenon)
           
protected  CodedEventsList getCodedEvents()
           
 List<CodedEvent> getCodedEventsList()
           
 AbsoluteDateInterval getIntervalOfValidity()
           
protected  PhenomenaList getPhenomena()
           
 List<Phenomenon> getPhenomenaList()
           
 void removeCodedEvent(CodedEvent event)
           
 void removeOnlyCodedEvent(CodedEvent event)
           
 void removePhenomenon(Phenomenon phenomenon)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Timeline

public Timeline(CodedEventsLogger logger,
                AbsoluteDateInterval interval)
         throws OrekitException
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.

Parameters:
logger - the CodedEventsLogger storing the events and phenomena created during propagation.
interval - the AbsoluteDateInterval representing the validity interval of the events/phenomena lists.
Throws:
OrekitException - if a problem occurs when g is called when building phenomena.
Preconditions :
a propagation with events detection should have been performed.

Timeline

public Timeline(Timeline timeline)
Builds an instance of the Timeline from another Timeline.

Parameters:
timeline - the timeline to copy
Method Detail

getPhenomena

protected PhenomenaList getPhenomena()
Returns:
PhenomenaList
Description :
Get the phenomena list.

getCodedEvents

protected CodedEventsList getCodedEvents()
Returns:
CodedEventsList
Description :
Get the coded events list.

getPhenomenaList

public List<Phenomenon> getPhenomenaList()
Returns:
list of phenomena
Description :
Get a copy of the phenomena list.

getCodedEventsList

public List<CodedEvent> getCodedEventsList()
Returns:
list of coded events
Description :
Get a copy of the coded events list

removeCodedEvent

public void removeCodedEvent(CodedEvent event)
Parameters:
event - : coded event that has to be removed from the list
Description :
Remove one coded event from the coded events list (as well as the phenomena list when the event triggers a phenomenon).

removeOnlyCodedEvent

public void removeOnlyCodedEvent(CodedEvent event)
Parameters:
event - : coded event that has to be removed from the list
Description :
Remove one coded event from the coded events list (without removing the associated phenomenon).

removePhenomenon

public void removePhenomenon(Phenomenon phenomenon)
Parameters:
phenomenon - : phenomenon that has to be removed from the list
Description :
Remove one phenomenon from the phenomena list as well as the associated coded events from the coded events list.

addCodedEvent

public void addCodedEvent(CodedEvent event)
Parameters:
event - : event that has to be added to the list
Description :
Add one event to the events list

addPhenomenon

public void addPhenomenon(Phenomenon phenomenon)
Parameters:
phenomenon - : phenomenon that has to be added to the list
Description :
Add one phenomenon to the phenomena list (without adding the ending and starting events to the event list)

getIntervalOfValidity

public AbsoluteDateInterval getIntervalOfValidity()
Returns:
the interval of validity
Description :
Get the interval of validity.


Copyright © 2016 CNES. All Rights Reserved.