public class MetroIIEventBuilder
extends java.lang.Object
Constructor and Description |
---|
MetroIIEventBuilder()
Constructs an event builder.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
atLeastOneNotified(java.lang.Iterable<metroIIcomm.Event.Builder> events)
Checks if at least one event is notified in the event vector.
|
static metroIIcomm.Event.Builder |
newProposedEvent(java.lang.String eventName)
Creates a proposed Metro event.
|
static metroIIcomm.Event.Builder |
newProposedEvent(java.lang.String eventName,
long timeValue,
double resolution)
Creates a proposed Metro event.
|
static java.lang.String |
trimModelName(java.lang.String name)
Trims the substring from the beginning to the first delimiter '.' from a
given string.
|
public static metroIIcomm.Event.Builder newProposedEvent(java.lang.String eventName, long timeValue, double resolution)
eventName
- The name of the eventtimeValue
- The time value of the eventresolution
- The resolution associated with the time valuepublic static metroIIcomm.Event.Builder newProposedEvent(java.lang.String eventName)
eventName
- The name of the eventpublic static java.lang.String trimModelName(java.lang.String name)
name
- The input stringpublic static boolean atLeastOneNotified(java.lang.Iterable<metroIIcomm.Event.Builder> events)
events
- event vector to be checked.