from_inventory_instance¶
-
classmethod
DbSensorComponent.
from_inventory_instance
(parent_sensor, instance)[source]¶ Create a
DbSensorComponent
instance from amss_data_server.geometry.inventory.SensorComponent
instance.- Parameters
parent_sensor (
mss_data_server.geometry.db_inventory.DbSensor
) – The parent sensor to which the sensor component is related.instance (
mss_data_server.geometry.inventory.SensorComponent
) – The instance used to create theDbSensorComponent
instance.
- Returns
The created sensor component.
- Return type