DbRecorderStream

class mss_dataserver.geometry.db_inventory.DbRecorderStream(orm=None, **kwargs)[source]

Bases: mss_dataserver.geometry.inventory.RecorderStream

The database recorder stream.

Parameters

orm (mss_data_server.geometry.databaseFactory.GeomRecorderStream) – The sqlalchemy table mapper class.

Keyword Arguments

**kwargs – The keyword arguments passed to the __init__ method of the parent class mss_dataserver.geoemetry.inventory.RecorderStream.

Properties

assigned_channels

list of Channel: The channels to which the stream is assigned to.

id

int: The database id.

model

str: The model of the parent recorder.

parent_inventory

Inventory: The inventory containing the stream.

producer

str: The producer of the parent recorder.

serial

str: The serial number of the parent recorder.

Methods

__init__([orm])

Initialize the instance.

add_component(serial, model, producer, name, …)

Add a sensor component to the stream.

add_parameter(cur_parameter)

Add a parameter to the recorder_stream.

as_dict([style])

Get a dictionary representation of the instance.

change_sensor_end_time_OLD(sensor, end_time)

DEPRECATED Change the sensor deployment end time

change_sensor_start_time_OLD(sensor, …)

DEPRECATED Change the sensor deployment start time

from_inventory_instance(parent_recorder, …)

Create a DbRecorderStream instance from a mss_data_server.geometry.inventory.RecorderStream instance.

from_sqlalchemy_orm(parent_recorder, orm)

Create a DbRecorderStream instance from a mss_data_server.geometry.databaseFactory.GeomRecorderStream table mapper class.

get_component([start_time, end_time])

Get a component from the stream.

get_free_component_slot([pos])

Get a free time slot for a component.

get_free_parameter_slot([pos])

Get a free time slot for a parameter.

get_parameter([start_time, end_time])

Get parameter for a given timespan.

merge(merge_stream)

Merge a stream.

remove_component_by_instance(component_to_remove)

Remove a component from the stream.

remove_parameter_by_instance(parameter_to_remove)

Remove a parameter.

Inheritence diagram

Inheritance diagram of mss_dataserver.geometry.db_inventory.DbRecorderStream