HORNET uses a event-driven plugin framework. This module provides various types of events and methods for validating those events.
Module author: John Paulett <john.paulett -at- vanderbilt.edu>
Utility method for determining if event is a hornet.event.GraphsReady event.
>>> e = GraphsReady(None)
>>> graphs_ready(e)
True
Determines if the event is one of the accepted_types. event should be an instance of hornet.event.Event or instance of a subclass of hornet.event.Event. accepted_types can be a single class or a tuple of classes.
>>> e = GraphsReady(None)
>>> is_accepted_event(e, (GraphsReady,))
True