DbSensor

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

Bases: mss_dataserver.geometry.inventory.Sensor

The database sensor.

Parameters

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

Keyword Arguments

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

Properties

id

int: The database id.

Methods

__init__([orm])

Initialize the instance.

add_component(cur_component)

Add a component to the sensor.

from_inventory_instance(parent_inventory, …)

Create a DbSensor instance from a mss_data_server.geometry.inventory.Sensor instance.

from_sqlalchemy_orm(parent_inventory, orm)

Create a DbSensor instance from a mss_data_server.geometry.databaseFactory.GeomSensor table mapper class.

get_component(**kwargs)

Get a component from the sensor.

merge(merge_sensor)

Merge a sensor to the existing.

pop_component(**kwargs)

Remove a component from the sensor.

pop_component_by_instance(component)

Remove a component from the sensor using the component instance.

Inheritence diagram

Inheritance diagram of mss_dataserver.geometry.db_inventory.DbSensor