code: def getState(self):
      
      return dict(_position = self._position,
                  position = self.getPosition(),
                  velocity = self._velocity,
                  bestPosition = self._bestPosition,
                  bestResult = self._bestResult)
docs: See comments in base class.