Maven module :un.api : api-common :
Class : un.api.event.DefaultEvent
Extends/Implements : un.api.CObject un.api.event.Event
Subclasses : -

Default event, does not provide additional informations.
Extend this class and append specific properties for the event.
author  Johann Sorel


Variables : source, consumable, trigger, consumed
Functions : DefaultEvent, getSource, isConsumable, isConsumed, consume, getTrigger


protected EventSource source

protected boolean consumable

protected Event trigger

protected boolean consumed



Create a default event,
param  source event source, not null.
param  consumable set to true is event is consumable.
param  trigger source event of this event, can be null.
public void DefaultEvent (EventSource source, boolean consumable, Event trigger)


{@inheritDoc}
public EventSource getSource ()


{@inheritDoc}
public boolean isConsumable ()


{@inheritDoc}
public boolean isConsumed ()


{@inheritDoc}
public void consume ()


{@inheritDoc}
public Event getTrigger ()