bw_timex.helper_classes#
Module Contents#
Classes#
A helper class for the mapping of the same/mapped activity in different (temporal) databases, composed of a list of sets, that hold can hold the set of tuples of (act_id, database). |
|
A dictionary mapping (flow, timestamp) tuples to unique integer IDs. |
|
A dictionary of the form {id1:{database1: id1, database2: id2, ...}, id2: ...} that maps the |
- class bw_timex.helper_classes.SetList[source]#
A helper class for the mapping of the same/mapped activity in different (temporal) databases, composed of a list of sets, that hold can hold the set of tuples of (act_id, database). It is built by adding sets to the list, and returns the matching sets if one calls the an item from a set.
Example: If the class instance is called my_setlist, my_setlist.add(set).
- class bw_timex.helper_classes.TimeMappingDict(start_id=2, *args, **kwargs)[source]#
Bases:
dictA dictionary mapping (flow, timestamp) tuples to unique integer IDs.
Initializes the dictionary with a starting ID.
- class bw_timex.helper_classes.InterDatabaseMapping(*args, **kwargs)[source]#
Bases:
dictA dictionary of the form {id1:{database1: id1, database2: id2, …}, id2: …} that maps the same activity in different databases.
Initialize self. See help(type(self)) for accurate signature.