code: def setState(self, state):
      
      self._position = state['_position']
      self._velocity = state['velocity']
      self._bestPosition = state['bestPosition']
      self._bestResult = state['bestResult']
docs: See comments in base class.