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) None#
Set the new value for transactional mode.
- Parameters:
- statebool
The new value.
- ModificationObserver.notify(element_id: str, name: str, value: object) None#
Catch a modification notification.
- ModificationObserver.list_notify(element_id: str, name: str, list_content: list) None#
Catch modification on a list.