public final class CodedEventsList extends Object
This class represents a list of objects CodedEvent
.
One or more lists of coded events are created during propagation when CodingEventDetector
is used, via the
monitorDetector
method.
CodedEvent
Constructor and Description |
---|
CodedEventsList()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(CodedEvent codedEvent)
Add a
CodedEvent to the list. |
Set<CodedEvent> |
getEvents(String code,
String comment,
AbsoluteDate date)
Finds one/more events in the list of
CodedEvent following some criteria.When a comment and a date are available, the method looks for a specific event in the list, otherwise if only the code is given as input, it looks for a list of events with the same code. |
List<CodedEvent> |
getList()
Get the full list of coded events.
|
boolean |
remove(CodedEvent codedEvent)
Remove a
CodedEvent to the list. |
String |
toString() |
public void add(CodedEvent codedEvent)
CodedEvent
to the list.codedEvent
- the element to add.public boolean remove(CodedEvent codedEvent)
CodedEvent
to the list.codedEvent
- the element to remove.public List<CodedEvent> getList()
SortedSet
as a full
list.public Set<CodedEvent> getEvents(String code, String comment, AbsoluteDate date)
CodedEvent
following some criteria.code
- the code of the event to look for in the listcomment
- the comment of the event to look for in the list (it can be null)date
- the date of the event to look for in the list (it can be null)Copyright © 2023 CNES. All rights reserved.