public class Series
extends java.lang.Object
Constructor and Description |
---|
Series(java.lang.String name,
java.lang.String... eventTypes)
definition of a series with a name and the event types belonging to this series
|
Modifier and Type | Method and Description |
---|---|
void |
addEventIfAccepted(Event event)
adds the event to the series if the type of an event is part of this series
|
void |
addEventType(java.lang.String type)
adds type of event to the series
|
java.util.List<TimeAndCount> |
buildTimeAndCountList()
prepares a time-and-count list from the events in this series
|
java.lang.String |
getName()
returns the name of the series
|
public Series(java.lang.String name, java.lang.String... eventTypes)
name
- name of serieseventTypes
- names of event types in this seriespublic java.lang.String getName()
public void addEventType(java.lang.String type)
type
- type of eventpublic void addEventIfAccepted(Event event)
event
- event to be addedpublic java.util.List<TimeAndCount> buildTimeAndCountList()