> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sensor

### *class* compolyx.Sensor(graph, obj, parent=None)

Sensor object for measuring areas, prices, weights, and centers of gravity.

### Attributes

| Name | Description |
| - | - |
| [`Sensor.active`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.active) | Whether the sensor is computed on update or not. |
| [`Sensor.area`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.area) | Area covered by all Entities of the Sensor. |
| [`Sensor.center_of_gravity`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.center_of_gravity) | Center of Gravity over all Entities of the Sensor. |
| [`Sensor.enabled`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.enabled) | Indicates whether the object is enabled. |
| [`Sensor.entities`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.entities) | Entities of the Sensor. |
| [`Sensor.id`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.id) | ID of the object. |
| [`Sensor.is_dict_item`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.is_dict_item) | Indicates whether the object is an item in a dictionary. |
| [`Sensor.is_list_item`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.is_list_item) | Indicates whether the object is an item of a list. |
| [`Sensor.link_path`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.link_path) | Root path of the current node in the tree for links to this object. |
| [`Sensor.locked`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.locked) | Sensor cut was imported and cannot be changed. |
| [`Sensor.modeling_ply_area`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.modeling_ply_area) | Cumulated area of all modeling-plies involved. |
| [`Sensor.name`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.name) | Name of the object. |
| [`Sensor.parent`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.parent) | Parent object in the tree. |
| [`Sensor.price`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.price) | Price over all Entities of the Sensor. |
| [`Sensor.production_ply_area`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.production_ply_area) | Cumulated area of all production-plies involved. |
| [`Sensor.root_path`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.root_path) | Root path of the current node in the tree. |
| [`Sensor.sensor_type`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.sensor_type) | Sensor type. |
| [`Sensor.status`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.status) | Status of the object. |
| [`Sensor.status_changed`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.status_changed) | Boolean flag which is set to true in C++ when up-to-date status of object changes. |
| [`Sensor.uid`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.uid) | UID of the object. |
| [`Sensor.vertex`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.vertex) | Raises an error if the object has been removed from the graph. |
| [`Sensor.weight`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.weight) | Weight over all Entities of the Sensor. |

### Methods

| Name | Description |
| - | - |
| [`Sensor.add_entity`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.add_entity)(entity) | Add entity to sensor. |
| [`Sensor.clear_entities`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.clear_entities)() | Clear all entities of this sensor. |
| [`Sensor.find_parent`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.find_parent)(type) | Steps up the tree and returns the first parent with given type. |
| [`Sensor.obj_exists`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.obj_exists)() | Checks if \_\_obj still references the c++ object (has not been reset to None by self.\_delete) and exists in the graph. |
| [`Sensor.remove_entity`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.remove_entity)(entity) | Remove entity from sensor. |
| [`Sensor.serialize`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.serialize)() | |
| [`Sensor.serialize_name_and_id`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.serialize_name_and_id)() | Serializes the name and ID. |
| [`Sensor.update`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.update)() | |
| [`Sensor.visit`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Sensor.visit)(visitor) | Walk through the tree and let the visitor perform action on every descendant node. |
