Example #1
0
    def remove_core_element(self, model):
        """Remove respective core element of handed scoped variable model

        :param ScopedVariableModel model: Scoped variable model which core element should be removed
        :return:
        """
        assert model.scoped_variable.parent is self.model.state
        gui_helper_state_machine.delete_core_element_of_model(model)
Example #2
0
    def remove_core_element(self, model):
        """Remove respective core element of handed outcome model

        :param OutcomeModel model: Outcome model which core element should be removed
        :return:
        """
        assert model.outcome.parent is self.model.state
        gui_helper_state_machine.delete_core_element_of_model(model)
Example #3
0
    def remove_core_element(self, model):
        """Remove respective core element of handed data flow model

        :param DataFlowModel model: Data Flow model which core element should be removed
        :return:
        """
        assert model.data_flow.parent is self.model.state or model.data_flow.parent is self.model.parent.state
        gui_helper_state_machine.delete_core_element_of_model(model)
Example #4
0
    def remove_core_element(self, model):
        """Remove respective core element of handed transition model

        :param TransitionModel model: Transition model which core element should be removed
        :return:
        """
        assert model.transition.parent is self.model.state or model.transition.parent is self.model.parent.state
        gui_helper_state_machine.delete_core_element_of_model(model)
Example #5
0
 def remove_core_element(self, model):
     assert model.data_port.parent is self.model.state
     gui_helper_state_machine.delete_core_element_of_model(model)