def setAbortState(*args):
    """Access and changes protected abort_state class data. The returned value representation is an integer ranging from 0 to 1. This approach is a secure method to access and change saved system abort state values.

    Parameters
    ----------
    abort_state : int
        Values for abort state range from 0 for 'System Performance Nominal' to 1 for 'Abort'.
    value : int
        Set values from 0 for 'System Performance Nominal' to 1 for 'Abort'.

    Returns
    -------
    abort_state : int
         Values for abort state range from 0 for 'System Performance Nominal' to 1 for 'Abort'.
    """
    args[0].abort_state = args[1]
    return args[0]
