public function setState($state)
    {
        if (!isset($this->_states[$state])) {
            include_once 'Zend/Search/Exception.php';
            throw new Zend_Search_Exception('State \'' . $state . '\' is not on of the possible FSM states.');
        }

        $this->_currentState = $state;
    }
public function setState($state)
    {
        if (!isset($this->_states[$state])) {
            include_once 'Zend/Search/Exception.php';
            throw new Zend_Search_Exception('State \'' . $state . '\' is not on of the possible FSM states.');
        }

        $this->_currentState = $state;
    }
public function setState ( $ state ) { if ( ! isset ( $ this -> _states [ $ state ] ) ) { include_once 'Zend/Search/Exception.php' ; throw new Zend_Search_Exception ( 'State \'' . $ state . '\' is not on of the possible FSM states.' ) ; } $ this -> _currentState = $ state ; }
Set FSM state.
No any action is invoked

@param  integer|string $state
@throws Zend_Search_Exception
Set FSM state . No any action is invoked