public class OrEventTrigger extends EventTrigger
Constructor and Description |
---|
OrEventTrigger(EventTrigger... triggers)
Construct an event trigger and associate the array
of event triggers to be aggregated by this trigger
|
OrEventTrigger(List<EventTrigger> triggers)
Construct an event trigger and associate the list
of event triggers to be aggregated by this trigger
|
Modifier and Type | Method and Description |
---|---|
EventState |
getState(long timestamp)
Retrieve the event state associated with specified invocation
of the event trigger match method.
|
boolean |
match(long timestamp)
Verify if the event trigger conditions are in the
appropriate state for an event to be triggered.
|
String |
toString()
Returns the string representation of this event trigger
in the format "OR(triger1,trigger2,...)".
|
getID
public OrEventTrigger(List<EventTrigger> triggers)
triggers
- list of event triggers to addpublic OrEventTrigger(EventTrigger... triggers)
triggers
- array of event triggers to addpublic boolean match(long timestamp) throws Exception
match
in class EventTrigger
Exception
EventTrigger.match(long)
public EventState getState(long timestamp)
getState
in class EventTrigger
timestamp
- time stamp associated with invocationEventTrigger.getState(long)
public String toString()
toString
in class Object
Object.toString()
Copyright © 1995-2015 Webtide. All Rights Reserved.