Constructor and Description |
---|
EventTrigger(E event) |
Modifier and Type | Method and Description |
---|---|
void |
addTriggerListener(TriggerListener listener)
Adds the trigger listener.
|
void |
arm()
Arm a trigger.
|
void |
disarm()
Disarm a trigger.
|
boolean |
evaluate(TriggerContext<S,E> context)
Evaluate trigger.
|
E |
getEvent()
Gets the event associated with this trigger.
|
public EventTrigger(E event)
public boolean evaluate(TriggerContext<S,E> context)
Trigger
public void addTriggerListener(TriggerListener listener)
Trigger
addTriggerListener
in interface Trigger<S,E>
listener
- the listenerpublic E getEvent()
Trigger
public void arm()
Trigger
TriggerListener
may receive events.