public class DefaultEventPattern extends Object implements EventPattern
EventPattern
implementation.ANY, MESSAGE
Constructor and Description |
---|
DefaultEventPattern(MessagePattern messagePattern)
Instantiates an event pattern with a message pattern.
|
DefaultEventPattern(Timestamp timeout)
Instantiates an event pattern with a timeout.
|
DefaultEventPattern(Timestamp timeout,
MessagePattern messagePattern)
Instantiates an event pattern with a timeout and a message pattern.
|
Modifier and Type | Method and Description |
---|---|
boolean |
covers(EventAccess events)
Given an access to the events of the behavior controller, this method
decides whether the event pattern covers one of the current events.
|
Timestamp |
getTimeout()
Returns the timeout of this event pattern.
|
public DefaultEventPattern(Timestamp timeout)
timeout
- the timeout of this event patternpublic DefaultEventPattern(MessagePattern messagePattern)
messagePattern
- the message pattern of this event patternpublic DefaultEventPattern(Timestamp timeout, MessagePattern messagePattern)
timeout
- the timeout of this event patternmessagePattern
- the message pattern of this event patternpublic Timestamp getTimeout()
EventPattern
getTimeout
in interface EventPattern
null
timestamp criterionpublic boolean covers(EventAccess events)
EventPattern
covers
in interface EventPattern
events
- the event accestrue
if at least one event is covered by the
pattern, false
otherwiseCopyright © Aimpulse Intelligent Systems GmbH
All rights reserved.