def add_object(self): args, ok = NewUaObjectDialog.getArgs( self.modeler, "Add Object", self._model_mgr.server_mgr, base_node_type=self._model_mgr.server_mgr.nodes.base_object_type) if ok: self._model_mgr.add_object(*args)
def add_variable_type(self): args, ok = NewUaObjectDialog.getArgs( self.modeler, "Add Variable Type", self._model_mgr.server_mgr, base_node_type=self._model_mgr.server_mgr.get_node( ua.ObjectIds.BaseVariableType)) if ok: self._model_mgr.add_variable_type(*args)
def add_object(self): args, ok = NewUaObjectDialog.getArgs( self.modeler, "Add Object", self._model_mgr.server_mgr, base_node_type=self._model_mgr.server_mgr.nodes.base_object_type) if ok: nodes = self._model_mgr.add_object(*args) # FIXME: in this particular case we may want to navigate recursively to add ref self._add_modelling_rule(nodes)
def add_variable_type(self): args, ok = NewUaObjectDialog.getArgs(self.modeler, "Add Variable Type", self._model_mgr.server_mgr, base_node_type=self._model_mgr.server_mgr.get_node(ua.ObjectIds.BaseVariableType)) if ok: self._model_mgr.add_variable_type(*args)
def add_object(self): args, ok = NewUaObjectDialog.getArgs(self.modeler, "Add Object", self._model_mgr.server_mgr, base_node_type=self._model_mgr.server_mgr.nodes.base_object_type) if ok: nodes = self._model_mgr.add_object(*args) # FIXME: in this particular case we may want to navigate recursively to add ref self._add_modelling_rule(nodes)