Class EventModule
java.lang.Object
laas.openrobots.ontology.modules.events.EventModule
- All Implemented Interfaces:
IServiceProvider
This class allows the registration of event by external client through
the
RPC method.
invalid reference
#registerEvent(String, String, Set, IEventConsumer)
- Since:
- 0.6.8
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clearEvent
(String eventId) Removes one event trigger from the model.void
registerEvent
(String type, String triggeringType, String variable, List<String> pattern, IEventConsumer consumer) registerEvent
(String type, String triggeringType, List<String> pattern, IEventConsumer consumer)
-
Constructor Details
-
EventModule
-
-
Method Details
-
registerEvent
@RPCMethod(category="events", desc="registers an event. Expected parameters are: type, triggering type, event pattern.") public UUID registerEvent(String type, String triggeringType, List<String> pattern, IEventConsumer consumer) throws InvalidEventDescriptorException, EventRegistrationException -
registerEvent
@RPCMethod(category="events", desc="registers an event. Expected parameters are: type, triggering type, variable, event pattern.") public UUID registerEvent(String type, String triggeringType, String variable, List<String> pattern, IEventConsumer consumer) throws InvalidEventDescriptorException, EventRegistrationException -
clearEvents
@RPCMethod(category="events", desc="Remove all events associated to the main model.") public void clearEvents() -
clearEvent
@RPCMethod(category="events", desc="Remove one specific event from the main model.") public void clearEvent(String eventId) throws OntologyServerException Removes one event trigger from the model.- Parameters:
eventId
- the string representation of the UUID of the event, as returned by #addEvent- Throws:
OntologyServerException
-