Inherit from your SizedContainerTimeSeriesInterface a new class, SMTimeSeries. The SM stands for StorageManager. The normal constructor for a time series (which we have not specified to be part of the standard interface) would take times and values lists as arguments. Now we have two possible choices for construction:
init: times and values, and an optional id (the storage manager should autogenerate one if an id is not provided), which then ought to store the time series into a storage manager.
classmethod SMTimeSeries.from_db(id): a method with an id to look up and fetch from the storage manager, having the manager allocate the time series in memory.
Inherit from your SizedContainerTimeSeriesInterface a new class, SMTimeSeries. The SM stands for StorageManager. The normal constructor for a time series (which we have not specified to be part of the standard interface) would take times and values lists as arguments. Now we have two possible choices for construction:
init: times and values, and an optional id (the storage manager should autogenerate one if an id is not provided), which then ought to store the time series into a storage manager.
classmethod SMTimeSeries.from_db(id): a method with an id to look up and fetch from the storage manager, having the manager allocate the time series in memory.