Package ai.tock.bot.engine.event
Class Event
-
- All Implemented Interfaces:
public abstract class EventThe base class for all events or actions.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringapplicationIdprivate final StringconnectorIdprivate final Id<out Event>idprivate final Instantdateprivate final EventStatestate
-
Method Summary
Modifier and Type Method Description final StringgetApplicationId()final StringgetConnectorId()The TOCK connector id. final Id<out Event>getId()The unique id of the event. final InstantgetDate()The creation date of the event. final EventStategetState()The state of the event. final BooleanhasEntity(String role)Does this event contains specified role entity? final BooleanhasEntityPredefinedValue(String role, String value)Does this event contains specified predefined value entity? -
-
Constructor Detail
-
Event
Event(String applicationId, Id<out Event> id, Instant date, EventState state, Void _deprecatedConstructor)
-
Event
Event(String connectorId, Id<out Event> id, Instant date, EventState state)
-
-
Method Detail
-
getApplicationId
final String getApplicationId()
-
getConnectorId
final String getConnectorId()
The TOCK connector id.
This ID should match the connector identifier in TOCK Studio.
-
getState
final EventState getState()
The state of the event.
-
hasEntityPredefinedValue
final Boolean hasEntityPredefinedValue(String role, String value)
Does this event contains specified predefined value entity?
-
-
-
-