ModificationObserver#
- class ansys.sam.sysml2.observer.observer.ModificationObserver(project, connector: ansys.sam.sysml2.api.sysml2_api_connector.SysML2APIConnector)#
Modification observer for SysML elements.
Overview#
Set the new value for transactional mode. |
|
Catch a modification notification. |
|
Catch modification on a list. |
|
Delete function for observer. |
|
Reload of the project. |
|
Disconnect the observer. |
|
Connect the observer. |
Import detail#
from ansys.sam.sysml2.observer.observer import ModificationObserver
Method detail#
- ModificationObserver.set_transactional_mode(state: bool)#
Set the new value for transactional mode.
- Parameters:
- statebool
The new value.
- ModificationObserver.notify(element_id: str, name: str, value: object)#
Catch a modification notification.
- ModificationObserver.list_notify(element_id: str, name: str, list_content: List)#
Catch modification on a list.
- ModificationObserver.delete_element(element_id: str)#
Delete function for observer.
- Parameters:
- element_id
str The ID of the element to delete.
- element_id
- ModificationObserver.reload_project()#
Reload of the project.
- ModificationObserver.stop_observer()#
Disconnect the observer.
- ModificationObserver.start_observer()#
Connect the observer.