public class AggregateEventTrigger extends EventTrigger
Modifier and Type | Field and Description |
---|---|
protected List<EventTrigger> |
_triggers |
Constructor and Description |
---|
AggregateEventTrigger()
Construct an event trigger
|
AggregateEventTrigger(EventTrigger... triggers)
Construct an event trigger and associate the array
of event triggers to be aggregated by this trigger
|
AggregateEventTrigger(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 |
---|---|
void |
add(EventTrigger trigger) |
void |
addAll(EventTrigger... triggers) |
void |
addAll(List<EventTrigger> triggers) |
EventState |
getState(long timestamp)
Retrieve the event state associated with specified invocation
of the event trigger match method.
|
boolean |
match(long timestamp)
Abstract method to 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 "AND(triger1,trigger2,...)".
|
getID
protected final List<EventTrigger> _triggers
public AggregateEventTrigger()
public AggregateEventTrigger(List<EventTrigger> triggers)
triggers
- list of event triggers to addpublic AggregateEventTrigger(EventTrigger... triggers)
triggers
- list of event triggers to addpublic void add(EventTrigger trigger)
trigger
- public void addAll(List<EventTrigger> triggers)
triggers
- public void addAll(EventTrigger... triggers)
triggers
- public EventState getState(long timestamp)
getState
in class EventTrigger
timestamp
- time stamp associated with invocationEventTrigger.getState(long)
public boolean match(long timestamp) throws Exception
EventTrigger
match
in class EventTrigger
Exception
EventTrigger.match(long)
public String toString()
toString
in class Object
Object.toString()
Copyright © 1995-2015 Webtide. All Rights Reserved.