Blueprint changed by Seif Lotfy: Whiteboard set to: Imagine the following event sequence:
open(w), open(z), open(x), close(z), open(y), close(x), close(w), close(y) The two methods I propose are: --- def FindEventsEncapsulatedBy(self, time_range, event_templates, result_event_templates, storage_state, num_events, result_type): if i query this with x i check for all events with x and create transactions based on the open(x) & close(x). everything lying in between them is encapsulated thus the return here will be close(z), open(y) --- def FindEventsEncapsulating(self, time_range, event_templates, result_event_templates, storage_state, num_events, result_type): if i query this with x i check for all events with x it will look for all transactions that have x in them int this case z and w -- Advanced API calls https://blueprints.edge.launchpad.net/zeitgeist/+spec/advanced-api _______________________________________________ Mailing list: https://launchpad.net/~zeitgeist Post to : zeitgeist@lists.launchpad.net Unsubscribe : https://launchpad.net/~zeitgeist More help : https://help.launchpad.net/ListHelp