stability_label_algorithm/modules/argumentation/argumentation_theory/argumentation_system.py
def update_literal_name(self, old_literal_name: str, new_literal_name: str) -> None:
        """
        Change the name of a Literal in this ArgumentationSystem. Make sure that all connections are still correct.

        :param old_literal_name: The old name of the Literal.
        :param new_literal_name: The new name of the Literal.
        """
        if old_literal_name not in self.language.keys():
            raise ValueError(old_literal_name + ' was not a literal.')
        if new_literal_name in self.language.keys():
            raise ValueError(new_literal_name + ' already exists. You cannot overwrite an existing literal.')
        if '~' in new_literal_name:
            raise ValueError('A new literal literal name cannot contain the \'~\' character.')

        old_literal = self.language[old_literal_name]
        old_literal_negation = old_literal.negation
        old_literal_negation_name = str(old_literal_negation)

        old_literal.update_literal_name(new_literal_name)
        old_literal_negation.update_literal_name('~' + new_literal_name)

        del self.language[old_literal_name]
        del self.language[old_literal_negation_name]
        self.language[str(old_literal)] = old_literal
        self.language[str(old_literal.negation)] = old_literal.negation

        Change the name of a Literal in this ArgumentationSystem. Make sure that all connections are still correct.

        :param old_literal_name: The old name of the Literal.
        :param new_literal_name: The new name of the Literal.
        
Change the name of a Literal in this ArgumentationSystem. Make sure that all connections are still correct.
Change the name of a Literal in this ArgumentationSystem . Make sure that all connections are still correct .
def update_literal_name(self, old_literal_name: str, new_literal_name: str) -> None:
        if old_literal_name not in self.language.keys():
            raise ValueError(old_literal_name + ' was not a literal.')
        if new_literal_name in self.language.keys():
            raise ValueError(new_literal_name + ' already exists. You cannot overwrite an existing literal.')
        if '~' in new_literal_name:
            raise ValueError('A new literal literal name cannot contain the \'~\' character.')
        old_literal = self.language[old_literal_name]
        old_literal_negation = old_literal.negation
        old_literal_negation_name = str(old_literal_negation)
        old_literal.update_literal_name(new_literal_name)
        old_literal_negation.update_literal_name('~' + new_literal_name)
        del self.language[old_literal_name]
        del self.language[old_literal_negation_name]
        self.language[str(old_literal)] = old_literal
        self.language[str(old_literal.negation)] = old_literal.negation
def update_literal_name ( self , old_literal_name : str , new_literal_name : str ) -> None : if old_literal_name not in self . language . keys ( ) : raise ValueError ( old_literal_name + ' was not a literal.' ) if new_literal_name in self . language . keys ( ) : raise ValueError ( new_literal_name + ' already exists. You cannot overwrite an existing literal.' ) if '~' in new_literal_name : raise ValueError ( 'A new literal literal name cannot contain the \'~\' character.' ) old_literal = self . language [ old_literal_name ] old_literal_negation = old_literal . negation old_literal_negation_name = str ( old_literal_negation ) old_literal . update_literal_name ( new_literal_name ) old_literal_negation . update_literal_name ( '~' + new_literal_name ) del self . language [ old_literal_name ] del self . language [ old_literal_negation_name ] self . language [ str ( old_literal ) ] = old_literal self . language [ str ( old_literal . negation ) ] = old_literal . negation
Change the name of a Literal in this ArgumentationSystem.
Change the name of a Literal in this ArgumentationSystem .
"""
        Change the name of a Literal in this ArgumentationSystem. Make sure that all connections are still correct.

        :param old_literal_name: The old name of the Literal.
        :param new_literal_name: The new name of the Literal.
        """
self
old_literal_name
str
The old name of the Literal.
The old name of the Literal .
new_literal_name
str
The new name of the Literal.
The new name of the Literal .