(self, _model, _machine, *args, **kwargs)
return _machine._process(func)
Executes all transitions that match the current state,
        halting as soon as one successfully completes. More precisely, it prepares a partial
        of the internal ``_trigger`` function, passes this to ``machine._process``.
        It is up to the machine's configuration of the Event whether processing happens queued (sequentially) or
        whether further Events are processed as they occur. NOTE: This should only
        be called by HierarchicalMachine instances.
        Args:
            _model (object): The currently processed model
            _machine (HierarchicalMachine): Since NestedEvents can be used in multiple machine instances, this one
                                            will be used to determine the current state separator and the current scope.
            args and kwargs: Optional positional or named arguments that will
                be passed onto the EventData object, enabling arbitrary state
                information to be passed on to downstream triggered functions.
        Returns: boolean indicating whether or not a transition was
            successfully executed (True if successful, False if not).
Executes all transitions that match the current state,
        halting as soon as one successfully completes. More precisely, it prepares a partial
        of the internal ``_trigger`` function, passes this to ``machine._process``.
        It is up to the machine's configuration of the Event whether processing happens queued (sequentially) or
        whether further Events are processed as they occur. NOTE: This should only
        be called by HierarchicalMachine instances.
        Args:
            _model (object): The currently processed model
            _machine (HierarchicalMachine): Since NestedEvents can be used in multiple machine instances, this one
                                            will be used to determine the current state separator and the current scope.
            args and kwargs: Optional positional or named arguments that will
                be passed onto the EventData object, enabling arbitrary state
                information to be passed on to downstream triggered functions.
        Returns: boolean indicating whether or not a transition was
            successfully executed (True if successful, False if not).
Executes all transitions that match the current state halting as soon as one successfully completes . More precisely it prepares a partial of the internal _trigger function passes this to machine . _process . It is up to the machine s configuration of the Event whether processing happens queued ( sequentially ) or whether further Events are processed as they occur . NOTE : This should only be called by HierarchicalMachine instances . Args : _model ( object ) : The currently processed model _machine ( HierarchicalMachine ) : Since NestedEvents can be used in multiple machine instances this one will be used to determine the current state separator and the current scope . args and kwargs : Optional positional or named arguments that will be passed onto the EventData object enabling arbitrary state information to be passed on to downstream triggered functions . Returns : boolean indicating whether or not a transition was successfully executed ( True if successful False if not ) .
def trigger(self, _model, _machine, *args, **kwargs):
        """ Executes all transitions that match the current state,
        halting as soon as one successfully completes. More precisely, it prepares a partial
        of the internal ``_trigger`` function, passes this to ``machine._process``.
        It is up to the machine's configuration of the Event whether processing happens queued (sequentially) or
        whether further Events are processed as they occur. NOTE: This should only
        be called by HierarchicalMachine instances.
        Args:
            _model (object): The currently processed model
            _machine (HierarchicalMachine): Since NestedEvents can be used in multiple machine instances, this one
                                            will be used to determine the current state separator and the current scope.
            args and kwargs: Optional positional or named arguments that will
                be passed onto the EventData object, enabling arbitrary state
                information to be passed on to downstream triggered functions.
        Returns: boolean indicating whether or not a transition was
            successfully executed (True if successful, False if not).
        """
        # Save the current scope (_machine.scoped, _machine.states, _machine.events) in partial
        # since queued transitions could otherwise loose their scope.
        func = partial(self._trigger, _model, _machine,
                       (_machine.scoped, _machine.states, _machine.events, _machine.prefix_path),
                       *args, **kwargs)
        # pylint: disable=protected-access
        # noinspection PyProtectedMember
        # Machine._process should not be called somewhere else. That's why it should not be exposed
        # to Machine users.
        return _machine._process(func)
def trigger ( self , _model , _machine , * args , * * kwargs ) : # Save the current scope (_machine.scoped, _machine.states, _machine.events) in partial # since queued transitions could otherwise loose their scope. func = partial ( self . _trigger , _model , _machine , ( _machine . scoped , _machine . states , _machine . events , _machine . prefix_path ) , * args , * * kwargs ) # pylint: disable=protected-access # noinspection PyProtectedMember # Machine._process should not be called somewhere else. That's why it should not be exposed # to Machine users. return _machine . _process ( func )